Tag - Posts

How to Embed PDF, Spreadsheet, and others in WordPress Blog Posts


Do you want to embed PDF, spreadsheet, and other types of documents in your WordPress blog posts?

WordPress comes with a powerful content editor and allows you to easily embed videos, tweets, audio, and other media formats using the embed blocks.

You can also upload other type of files that users can download. However, it is not possible to embed files like PDF, spreadsheet, and other documents in your blog posts.

In this article, we’ll show you how to embed PDF, spreadsheet, powerpoint, and other documents in your WordPress blog posts.

Embedding PDF, Spreadsheet and Others in WordPress Blog Posts

To help you navigate this guide, we have created the table of contents here.

  1. Adding PDF in WordPress Blog Posts without Plugin
  2. Embedding PDF in WordPress Posts Using the PDF Viewer Plugin
  3. Embedding Spreadsheets, and Other Types of Documents in WordPress
  4. How to Embed SlideShare Presentations in WordPress Posts
  5. Embedding Google Docs, Sheets, and Others in WordPress Posts

Now, let’s get started with the guide.

Adding PDF in WordPress Blog Posts without Plugin

By default, WordPress doesn’t offer full embed option for PDF documents; however, you can add them as links in your blog posts.

This option is useful if you don’t want to add a plugin to your website.

Simply add the File block to your WordPress post or page and then upload your PDF file.

Add file block

Once you have uploaded the PDF file, WordPress will display the file name with a download button. You can edit the file name and download button text.

Download PDF link

You also have the option to show or hide the download button and choose whether it links to the file itself or the attachment page.

You can use this method to upload Microsoft Word documents, Excel spreadsheets, and PowerPoint presentations to your website.

While this method is easier and straight-forward, it does not embed the documents which means users have to download the file to view it, and this may not be very user friendly depending on the use-case.

Let’s take a look at some other ways to embed documents in WordPress.

Embedding PDF in WordPress Posts Using Embed PDF Viewer Plugin

As shown above, displaying the PDF files as links will lead your website visitors away from your site.

In this method, we will cover how to easily embed the document in your WordPress posts and pages.

First, you need to install and activate the Embed PDF Viewer plugin. For detailed instructions, see our step by step guide on how to install a WordPress plugin.

Once the plugin is activated, simply create a new post or edit an existing one to embed a PDF document.

In the WordPress post edit screen, click on the Add New Block icon, and select the PDF block under Embeds section.

Choose PDF Embed Block in WordPress Post Editor

After that, you can upload a new PDF file to your post, select one from your media library or insert from URL.

PDF Block Added in WordPress Editor

Once you select the file, you can see the PDF file embedded in your blog post. You can also resize the embed area and add additional CSS from the block options on the left side.

PDF Embedded in WordPress Post Editor

Once you’re done with customization, simply save your post and preview it on your live website. Here’s how it appeared on our demo website.

PDF Embedded in WordPress Post Preview

Embedding Microsoft Word, Spreadsheet, and Other Documents in WordPress

The plugin mentioned above only lets you embed PDF files into your WordPress site.

If you want to embed more document types like Microsoft Word, Excel spreadsheet, PowerPoint presentation, etc, then you need to use another plugin.

First, you need to install and activate the Embed Any Document plugin on your website.

Next, create a new post or open an existing one to embed a document. Once done, add the Document block under the Embeds section.

Add Document Block in WordPress Editor

After that, you need to click on the Add Document button.

Add Document Option in WordPress Post Editor

Next, you can upload a document or add from a URL. The paid plugin users can also attach documents from Google Drive, Dropbox, and Box.

Add Document Options

Once you choose the document to embed, you will see the options to customize the embed. You need to review them and click the Insert button.

Add Spreadsheet Advanced Options

Once done, you can see the document embedded in your post. You can also review the document display options again from the block options panel on the left side.

Spreadsheet Embedded in WordPress Editor

Save your post and preview it on your live website. Here’s how the embedded spreadsheet looked on our demo website.

Spreadsheet Embedded in WordPress Preview

Embedding SlideShare Presentations in WordPress Posts

Unlike PDF and other documents, WordPress allows you to easily embed content from third-party services into your website.

It has built-in embed options for YouTube videos, Tweets, Facebook updates, SlideShare presentations, and many more.

Best of all, the new WordPress block editor includes separate embed blocks for them.

To embed a SlideShare presentation in your WordPress blog post, create a new post, or edit an existing one. Next, click on the Add New Block icon and add the SlideShare block in your post edit area.

Add SlideShare Embed Block in WordPress Post Editor

Next, you need to visit the SlideShare website and copy the link of a SlideShare presentation that you want to embed.

Once done, paste the link in the embed SlideShare block and click on the Embed button.

Embed SlideShare URL in WordPress Post

After that, you can see the SlideShare presentation embedded in your blog post. You can review the block options on the left side, and save your post.

SlideShare Presentation Added in WordPress Editor

Once done, you can preview the embedded SlideShare presentation live on your website. Here’s how it looked on our demo website.

SlideShare Presentation Added in WordPress - Preview

How to Embed Google Docs, Sheets, and Others in WordPress

In the above examples, we have covered how to add PDF and other documents from your local computer. However many users nowadays use Google Drive to create and store documents (specially small business owners).

Similar to Microsoft Word, Excel Sheets, and PowerPoint presentations, Google Drive also lets you create Docs, Sheets, Presentations, and other online documents.

If you have created documents in Google Drive, then you can easily embed these files in your WordPress posts by using the iFrame method.

To embed a Google doc in WordPress, you need to open the document in your browser first. After that, go to the File menu and click on the “Publish to the web” option.

Publish to the Web Option in Google Doc

After that, a new popup window will appear. You need to select the Embed option and then click on the Publish button.

Click Publish to Find the Embed Code for Google Doc

Once done, it will provide you an iFrame embed code. Go ahead and copy the code.

Embed a Google Doc Code

Next, you need to create a new post or edit an existing one to embed the Google doc. In your post editor, add the Custom HTML block to insert the embed code.

Add Custom HTML Block in WordPress Post

Once the Custom HTML block is added in your post edit area, paste the embed code that you copied before.

Google Doc Embed Code Added in WordPress Post

You may need to add height and width parameters to the embed code. Simply add the parameters to the iframe code like this:

<iframe src="https://docs.google.com/document/d/e/2PACX-1vQXyRM7bAOY2Em38yYkFKDlFwMp7tlofsdfdgeGDFg4lVkv_9HB_5WbGLwfMScaGQmDf34mIH/pub?embedded=true" width="550" height="600"></iframe>

After that, you can save your post and then preview it on your live website. Here is how it appeared on our demo website.

Google Doc Embedded in WordPress Post -preview

You can now use this method to embed other documents from your Google Drive account to WordPress.

We hope this article helped you to learn how to embed PDF, spreadsheet, and other documents in WordPress posts. You may also want to see our guide on how to manage, track, and control file downloads in WordPress.

If you want to restrict files and content to logged in users only, then you need to use a WordPress membership plugin to create a membership website.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Embed PDF, Spreadsheet, and others in WordPress Blog Posts appeared first on WPBeginner.



Source link

How to Embed Actual Tweets in WordPress Blog Posts


Do you want to embed individual tweets in your WordPress blog posts? Embedding Tweets in your blog posts allows you to easily quote tweets inside your posts as well as make them more engaging.

You may have seen many popular blogs and news websites embedding tweets from organizations and individuals in their articles.

It makes the quotes more authentic while allowing your users to follow the full conversations for more information.

In this article, we will show you how to easily embed tweets in WordPress blog posts and pages.

How to Easily Embed Tweets in WordPress Blog Posts

Embedding Actual Tweets in WordPress Posts – Step by Step

WordPress makes it easy to embed third-party services in your blog posts. This includes YouTube videos, Facebook updates, Tweets, and many more items.

This feature uses a method called oEmbed. Basically, you can just add the URL of a third-party website, and WordPress will request an embed code from them.

You can only add whitelisted oEmbed services in WordPress, and Twitter is one of those services.

The new WordPress block editor has added even more user-friendly options to embed tweets in WordPress.

It comes with a built-in Twitter embed block to let you easily insert tweets in your posts and pages.

Let’s take a look at how to embed tweets in WordPress blog posts.

First, you need to go to Twitter and find the tweet that you want to embed.

Next, click on the down arrow icon on the right, and then select ‘Copy link to Tweet’ option.

Copy Link to Tweet

After that, you will see ‘Link copied.’ message on the top. Now you need to paste the link in your WordPress editor.

Tweet Link Copied

Create a new post or open an existing post from your WordPress dashboard, and then click ‘Add New Block’ button. Next, you will need to choose the ‘Twitter’ block under ‘Embeds’ section.

Add Twitter Embed Block in WordPress Editor

You’ll now see the Twitter Embed block added into the post edit area. You need to paste the Twitter URL that you copied earlier in the block settings.

Embed Twitter in WordPress Post Editor

WordPress will now automatically fetch and display the actual tweet in your post content.

Actual Tweet Embedded in WordPress Post

You can save your post or publish it to see a live preview.

This is how it looked on our demo website.

Actual Tweet Embedded in WordPress Blog Post Preview

Pro Tip: You can also paste the Tweet URL in a paragraph block and WordPress will automatically convert it into a Twitter embed block.

Auto embed tweets by just pasting the URL

How to Embed Tweets in Classic WordPress Editor

If you are still using the old WordPress classic editor, then you will need to copy and paste the tweet link directly in the post editor.

Unlike the block editor, the classic editor is a single text box for your whole content.

That’s why you need to paste the tweet URL in a separate line in the editor.

Add Twitter URL in Classic WordPress Editor

Once done, it will immediately load the actual tweet in your post editor.

Tweet Embedded in Classic WordPress Editor

Now you can save and preview your post.

That’s it! It’s pretty simple and quick.

We hope this article helped you to learn how to embed actual tweet in WordPress blog posts. You may also want to see our guide on how to easily embed videos in WordPress blog posts.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.



Source link

Blog SEO: 11 Tips to Optimize Your Blog Posts for SEO (like a Pro)


Many of our readers have asked us to share tips on how to optimize blogs posts for SEO, so they can get better search rankings.

The best time to optimize your blog content for SEO is when you are creating it, but you can always go back and improve your old articles as well.

Blog SEO is important because it helps you consistently get more traffic to your website. There are many things you can do to optimize your blog posts for SEO.

In this article, we will share our best blog SEO tips to help you optimize your blog posts for SEO like a pro. These are the tips that we use on our own blogs, which gets millions of visitors from search engines.

Tips to optimize your blog posts for SEO

1. Plan Your Content with Proper Keyword Research

Many beginners just use their best guesses to write about topics they feel that their users would be interested in.

You don’t need to rely on blind guesses, especially when you can do keyword research to find out exactly what your users are looking for.

Keyword research is a technique used by content creators and SEO experts. It helps you discover topics your users are interested in based on the search engine data.

Plan your content with keyword research

You can then use these keywords to plan your content strategy. This will ensure that you write about topics that people are actually looking for, and it’s a great way to find new blog post ideas.

We recommend using keyword research tools like SEMRush or Ahrefs. They offer in-depth keyword data, competition analysis, keyword position tracking, and tons of other useful features.

For detailed instructions, see our article on how to do keyword research for your blog posts.

2. Find Semantic Keywords for Your Focus Keyword

After you have done your keyword research and discovered keyword ideas, it is time to pick one that has the highest search volume and low competition.

This will be your focus keyword. It is the search phrase that your users are most likely to look for.

If you are using the Yoast SEO plugin, then you can set the focus keyword in your article’s SEO settings. This would allow you to see how effectively you have used it in your article.

Setting focus keyword in Yoast SEO

Next, you need to find out the Latent Semantic Indexing (LSI) keywords. These are the searches related to your focus keyword.

The easiest way to find them is to simply enter your focus keyword in Google Search and scroll down to the bottom of results. There you’ll find them listed as ‘related searches’.

Related keywords

You need to incorporate as many of these keywords in your content, so you can have the most complete content for users.

It’s very important that you don’t try to stuff them in your content. This would look odd to your users and search engines are pretty good at detecting keyword stuffing.

3. Write an Effective Blog Post Title

The title of your blog post is extremely important for search rankings.

A good blog post title makes your article more relevant to the search query. More importantly, it motivates users to actually click on your article when they see it in search results.

You can make your blog post title more SEO friendly by using your focus keyword in the title.

Focus keyword in blog post title

Aside from adding your focus keyword, we also recommend making your headline catchy and click-worthy. That’s because click through rate (CTR) plays an important role in SEO.

There are several formulas to write effective headlines. The one that still works is called EMV or emotional marketing value.

This formula recommends using power words that trigger specific emotional responses in your audience. There are online tools like EMV headline Analyzer which help you calculate your title’s EMV score.

For more tips, see this article on headlines that went viral and how to copy their success in your own articles.

4. Make Internal Linking a Habit

Once you have blogged for a while, you will have enough content that you would want users to read. With internal linking, you can send new readers to check out your older relevant posts.

Internal linking is a great way to develop a contextual relationship between your new and old posts. It also allows you to pass relevant link juice to your older articles.

WordPress makes it easy to search for your old posts right inside the post editor. Simply select the text that you want to link and then click on the link button.

Internal linking

A text pop-up will appear below your selected words. You can start typing to search for the older articles that you want to link here.

Making internal linking a habit will make sure that your on-page SEO is good, and that your older articles continue to get new links.

Often beginners make the mistake of doing 1-way internal linking where they link to older posts from new articles. You can and should also go back to edit older posts to link to your new articles for maximum benefits.

5. Add Images and Videos to Your Blog Posts

Add images and videos to your blog posts

Search engines often rank engaging content higher in search results. Images and videos are far more engaging than plain text.

You want to make sure that your blog posts contain images between paragraphs.

When adding images, you want to be careful about image copyrights. Often beginners copy images from other sites to use on their site, and this can get you in legal trouble if you do so without proper permissions.

Don’t worry, there are plenty of places where you can find royalty free images to use in your blog posts. You can also use your own original photographs or use websites like Canva to create engaging graphics.

Make sure that you optimize your images for SEO. See our tutorial on how to optimize images for search engines for detailed instructions.

Videos are even more engaging than images. You can convert your blog posts into videos by creating slideshows, vlogs, or experiment with other formats.

However, you should never directly upload videos to your blog posts. WordPress is not optimized to serve videos, and your shared hosting service can’t handle them.

We recommend uploading your videos to YouTube. It is the second most popular search engine, and the second largest social media platform right after Facebook.

See our article on how to embed videos in WordPress for more details.

6. Add a Meta Description to Your Blog Post

The meta description is an HTML meta tag that you can add to any page. Its purpose is to provide a short description of your article for search engines and other crawlers.

Some SEO experts believe that the meta description tag on a page has become irrelevant. However, many others would disagree. At WPBeginner, we recommend using the meta description for all of your posts.

A good meta description can explain a lot more about an article. Social media websites like Facebook, Twitter, and LinkedIn also display it when your articles are shared on those platforms.

Meta description shown on Twitter

Since now you know that people are going to be reading your meta descriptions, you want to make sure that it’s helpful.

You also want to make sure that you at least mention your focus keyword once in the meta description for search purposes. The character limit for Meta Description is 155 characters.

Try to stay within that limit or your meta description will be truncated after 155 characters. You also want to make sure that you use the focus keyword earlier in the meta description rather than later.

To add meta description, you need to scroll down to the Yoast SEO meta box on your post edit screen.

Adding meta description for your blog posts in Yoast SEO

7. Make Your Articles Easier to Read

Readability is an important factor considered by search engines. Articles that are easier to read often rank higher than articles that are not user friendly.

Computer and mobile screens are still not an optimal platform for reading.

This is why most users just scan through articles. In fact, studies found that users spend less than a second to decide whether they want to stay on a page or leave.

That’s a very short time for you to convince the user to stay and scroll through. By improving readability, you can make it possible for your users to quickly scan an article.

You can improve readability by using shorter sentences, smaller paragraphs, punctuation, headings, and bulleted lists. We recommend adding white space around text and use images to make your text look easier on eyes.

You can use tools like Grammarly, which allows you to check grammar, punctuation, and spelling on the fly. It also gives suggestions to improve the readability of your articles.

Yoast SEO plugin also comes with a built-in readability checker. It shows the flesch reading score of your article under ‘Readability analysis’ tab.

Readability score

For more on this topic, see our article on how to improve the readability score of your blog posts.

8. Use Categories and Tags to Organize Content

Categories and tags help you sort your content not only for yourself, but for the readers and search engines.

The problem is that many WordPress beginners often end up using them incorrectly.

If you think about your website as a book, then categories would be the table of contents and tags will be the index part of the book.

Categories are used to divide your content into major topics discussed on your blog. Tags, on the other hand, are the topics discussed in an individual blog post.

To learn more, see our beginner’s guide on using categories and tags for maximum SEO benefit.

9. Aim to Be The Featured Snippet in The Search Result

Google has been trying to answer user questions as quickly as possible. As part of this effort, they have introduced the featured result or answer box.

Answer box in search results

This is the highlighted search result that appears on the top. Google generates a custom snippet from the article’s content highlighting the part that their algorithms believe to be the answer of user’s query.

According to research conducted by Advanced Web Ranking, Answer boxes secure almost 32.3% CTR. This makes them immensely important for your SEO strategy.

There is no specific set of instructions provided by Google regarding how they would pick the featured snippet. Their recommendation is to improve your content and make sure that it offers the information users are seeking.

However at WPBeginner, we have created helpful tips based on our research that will help you appear in Google answer boxes with your blog posts.

10. Make Your Blog Posts Comprehensive

Search engines love articles that cover a topic with great detail. This is why we asked you to gather the semantically related keywords (LSI Keywords) as part of your content planning step.

These related keywords give you an idea of different variations of user searches regarding that particular topic. By covering those keywords in your article, you would be able to make it more comprehensive, informative, and useful.

You should use headings and subheadings to include those keywords and try to cover as much ground as you could.

Aside from LSI keywords, another tip to create complete content is to type your desired keyword and then switch to Image Search. You will see topic bubbles with a variety of keywords.

Blog SEO - Image Search Complete Content Tip

We recommend including these when creating your content, so you can have the most comprehensive content.

11. Optimize Older Blog Posts

Many beginners tend to forget about a blog post after they have published it. In fact, you are not done optimizing your blog post for SEO once it is published.

Here are some things that you need to do after publishing your blog post:

  • Promote it on social media – Promote your blog post across your social media profiles. You can even automate this task by using IFTTT to share your content.
  • Add internal links – Once you have published a post, you can go back to relevant old articles and add a link to your new blog post. This gives your new articles link juice while also allowing users to discover it more easily.
  • Track search rankings – You have optimized a post for SEO, but how do you keep track of its search rankings? See our guide on how to track search rankings for your blog posts for instructions.

We recommend optimizing old posts on a regular basis, so you can continue to improve your rankings.

We hope this article helped you optimize your blog posts for SEO like a pro. Need more tips to promote your content? See our article on how to get more traffic to your blog posts.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post Blog SEO: 11 Tips to Optimize Your Blog Posts for SEO (like a Pro) appeared first on WPBeginner.



Source link

How to Bulk Schedule Posts in WordPress


Recently one of our users asked us how to bulk schedule posts to be published automatically in WordPress.

Scheduling a post in WordPress is extremely easy, but what if you wanted to quickly schedule multiple drafts at once? Bulk scheduling comes in handy when you have several articles waiting to be published.

In this article, we will show you how to easily bulk schedule posts in WordPress.

Bulk Schedule Posts in WordPress

When Do You Need to Bulk Schedule WordPress Posts?

If you are the single author creating and managing content on your blog, then you can easily schedule your blog posts by using the default post scheduling feature in WordPress.

But if you need to edit and schedule a lot of posts from several authors, then it can get a bit time-consuming.

The native WordPress scheduling feature requires you to open each post individually to schedule and then save.

Whereas a bulk schedule option can you let schedule multiple posts at once which will save you time that you can spend on increasing traffic and growing your blog.

With that said, let’s take a look at how to easily bulk schedule posts in WordPress step by step.

Bulk Scheduling WordPress Posts (Step by Step Guide)

First thing you need to do is install and activate the Auto Post Scheduler plugin. For detailed instructions, see our guide on how to install a WordPress plugin easily.

Upon activation, you need to visit Settings » Auto Post Scheduler page to set up automatic bulk scheduling.

Auto Post Scheduler Settings in WordPress

On the top, you will see the Auto Post Scheduler’s status which is disabled by default and an ‘Enable Auto Post Scheduler’ button. You can enable auto scheduling by clicking on the button, but it will enable the default plugin settings.

This is why we recommend reviewing and updating the plugin options before enabling the scheduler.

First, you need to set the auto post interval time. By default, it is set to 24 hours which means that your drafts will be automatically published in the time interval of 24 hours.

You can leave it unchanged if you want to publish one article each day. If you wish to publish two articles, you can set it to 12 hours.

Auto Post Scheduler Time Interval Option

Next, you will see the ‘Restart on Publish’ option. You can check this option if you want the plugin to republish your already published posts. This setting basically allows you to recycle your old content and make your blog look fresh.

After that, the ‘Start Scheduling Delay’ option lets you set a time delay before the first scheduled post goes live. It is set 0 seconds by default which means that your first scheduled post will be immediately published after the Scheduler is enabled.

Auto Post Scheduler Post Delay Option

Next, ‘Limit check to these Post Type(s)’ lets you choose which post types you want to schedule automatically. There is a ‘Post’ selected by default. If you want to enable auto scheduling for your pages as well, then you can add them to the selection by clicking on them with Shift key pressed on your keyboard.

Choose Post Types to Schedule

Similarly, you can also select which categories to include in auto scheduling. All categories are added by default. However, you may want to exclude the ‘Uncategorized’ category. To do so, you need to select the other categories by clicking on them with Shift key on your keyboard pressed.

Choose Categories to schedule your WordPress posts

After that, you will see ‘Limit check to posts from these Authors’ option. You can include all or exclude any of them by selecting the ones you want to include. All authors are included by default.

Choose Authors to Schedule Posts in WordPress

You can also limit check to posts with the keyword search. If you want to exclude posts containing specific keywords, you can prepend the keywords with a hyphen and enter in the field.

Another useful feature is ‘Limit checks on certain Day(s) to’ which lets you set in which hours the posts can be published. You will need to enter time range in 24-hour format.

For example, if you want to publish your posts within 9 AM to 9 PM on Mondays, you need to enter 0900-2100 in the field for Mondays.

Limit check on certain days to schedule posts

If these fields are left blank, all times of the day will be used.

After that, you can choose on which days you don’t want to schedule posts.

Select Eligible Posts to Schedule

Next, you can choose the eligible post statuses. You can select posts with Draft status, Pending status or Published.

Below that, there are more settings you can use to recycle or republish your old posts. They are useful if you want to update your old posts with a new published date.

Once you review all the settings, click the ‘Update options’ button at the bottom.

Update Auto Post Scheduler Options

Now that you have updated your scheduling options, you can go to the top and click the ‘Enable Auto Post Scheduler’ button.

Enable Auto Post Scheduler in WordPress

That’s all! The plugin will automatically schedule all your eligible posts for future. You don’t need to open the posts manually to schedule.

However, the automatic scheduling can sometimes slow down high traffic websites because it uses the WordPress WP-Cron for scheduling. You can solve that by setting Cron checks on a schedule or by using a WordPress caching plugin.

We hope this article helped you to learn how to schedule WordPress posts in bulk. You may also want to see our guide on how to fix the missed schedule post errors in WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Bulk Schedule Posts in WordPress appeared first on WPBeginner.



Source link

4 Easy Ways to Re-Order Blog Posts in WordPress (Step by Step)


Do you want to change the order of your blog posts in WordPress?

By default, WordPress displays your blog posts in reverse chronological order (newer posts first), but sometimes you may need to move specific posts up or down.

While it may feel like there is no way to do this in WordPress, you’ll be surprised to learn how easily you can change post order using multiple ways.

In this article, we will show you 4 different ways to re-order blog posts in WordPress. You can pick a solution that looks easier and fits your needs.

Ways to easily re-order blog posts in WordPress

Why Re-order Blog Posts in WordPress?

If you are just starting a blog, then you will not need to re-order your blog posts right away. However as your content grows, you may want to explore different ways to promote content across your website.

One of them is to make specific posts more prominently displayed on the front page, blog page, recent posts, or archive pages.

Now the problem is that WordPress normally displays your blog posts in a reverse chronological order. There is no option to simply just move a post up and down.

Does this mean you cannot bring your older articles to the front page? Or remove a newer article from the recent posts?

No, not at all.

There are multiple workarounds that let you do just that. Depending on your needs, you can choose the method that suits your requirements.

Let’s take a look at some of the ways you can easily re-order blog posts on your WordPress site.

1. Change Post’s Published Date

This is the easiest method and allows you to re-order posts using the built-in WordPress functionality.

As you know that WordPress displays posts based on their publish date in reverse chronological order (newer posts first). Changing a post’s publish date will also change where it appears in the list.

Reorder posts by changing published date

For example, if you wanted to bring an older post up, you would have to change its date to be newer. Similarly if you wanted to move a post down, then you can change its date to be older.

Simply edit the post you want to reorder and on the post edit screen click on the publish date under the Document panel.

Change publish date for a blog post

This will bring up a date and time popup where you can change the post’s published date and time. After you have changed the date/time, click on the ‘Update’ button to save your changes.

You need to select a date relevant to other posts.

For example, if you wanted to display an older post before another post that was published on 8 March, then you need to change the post’s publish date to 9 March.

Post moved up

2. Use Post Types Order Plugin (Drag and Drop Option)

If you want to re-order posts but don’t want to change their publish dates, then this method is for you.

First, you need to install and activate the Post Types Order plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » Post Types Order page to change plugin’s settings.

Post Types Order settings

From here, you need to select the post types where you want to enable the plugin. After that, simply click on the ‘Save settings’ button to store your changes.

Now you can just go to Posts » All Posts page and simply drag and drop posts to re-order them.

Reorder blog posts by drag and drop

3. Use Sticky Posts Feature in WordPress

Many users just want to reorder blog posts to highlight a blog post as featured content. WordPress comes with a default feature to achieve that, and it’s called Sticky posts.

Sticky posts feature allows you to highlight a post on top of all other posts on your blog page.

Simply edit the blog post that you want to pin to the top. On the post edit screen, check the box next to ‘Stick to the Front Page’ option under ‘Document’ panel.

Make a post sticky in WordPress

After that, click on the ‘Update’ button to save your changes.

You can now visit your website, and you will see the selected post pinned to the top. Depending on your theme, your sticky post will be highlighted differently.

Sticky post highlighted in WordPress

4. Modify WordPress Query using Code (Advanced)

This method requires you to add code to your WordPress site. If you haven’t done this before, then see our guide on how to copy and paste the code in WordPress.

If you are an advanced user and want to customize the post order, then you can modify the default WordPress query.

For example, take a look at this code snippet. It allows you to display posts in chronological order (older posts first).

//function to modify default WordPress query
function wpb_custom_query( $query ) 

// Make sure we only modify the main query on the homepage	
	if( $query->is_main_query() && ! is_admin() && $query->is_home() ) 

 	 	// Set parameters to modify the query
 		$query->set( 'orderby', 'date' );
		$query->set( 'order', 'DESC' );
	


// Hook our custom query function to the pre_get_posts 
add_action( 'pre_get_posts', 'wpb_custom_query' );

This code simply modifies the orderby and order parameters in the default WordPress query.

However, this code may sometimes not work as expected due to some plugins or theme already modifying the default query. To fix that, you can use the supress_filters parameter like this:

//function to modify default WordPress query
function wpb_custom_query( $query ) 

// Make sure we only modify the main query on the homepage	
	if( $query->is_main_query() && ! is_admin() && $query->is_home() ) 

 	 	// Set parameters to modify the query
 		$query->set( 'orderby', 'date' );
		$query->set( 'order', 'DESC' );
		$query->set( 'suppress_filters', 'true' );
	


// Hook our custom query function to the pre_get_posts 
add_action( 'pre_get_posts', 'wpb_custom_query' );

The oderby parameter comes with many options. See the full list of options on the WP Query codex page.

We hope this article helped you learn easy ways to re-order blog posts in WordPress. You may also want to see our ultimate list of most wanted WordPress tips and tricks that you can use on your blog.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post 4 Easy Ways to Re-Order Blog Posts in WordPress (Step by Step) appeared first on WPBeginner.



Source link

What is the Difference Between Posts vs. Pages in WordPress


Often WordPress beginners get confused between posts and pages. By default, WordPress comes with two content types: posts and pages.

As a beginner, you are probably wondering what’s the difference between posts vs pages? They seem to look similar in the WordPress dashboard as well as on the website.

Readers often ask us: Why do I need both? When should I use posts? When should I use pages?

In this article, we will explain the difference between posts vs. pages in WordPress.

WordPress Posts vs. Pages - What's the difference

What are Posts in WordPress?

Posts are blog content listed in a reverse chronological order (newest content on top). You will see posts listed on your blog page.

If you are using WordPress as a blog, then you will end up using posts for the majority of your website’s content.

You can add and edit your WordPress posts from the ‘Posts’ menu in your dashboard. Here is how Add New Post screen looks.

New WordPress Post Screen

Due to their reverse chronological order, your posts are meant to be timely. Older posts are archived based on month and year.

As the posts gets older, the user has to dig deeper to find them. You have the option to organize your posts based on categories and tags.

WordPress Post Categories Tags

Because WordPress posts are published with time and date in mind, they are syndicated through the RSS feeds. This allows your readers to be notified of the most recent post update via RSS feeds.

Bloggers can use the RSS feeds to deliver email broadcasts through services like Constant Contact, Aweber or MailChimp. You can create a daily and weekly newsletter for your audience to subscribe to.

The very timely nature of posts make it extremely social. You can use one of the many social sharing plugins to allow your users to share your posts in social media networks like Facebook, Twitter, LinkedIn, Pinterest etc.

Posts encourage conversation. They have a built-in comment feature that allows users to comment on a particular topic. By default, comments, pingbacks, and trackbacks are enabled.

WordPress Post Comments Enabled

You can go to your Settings » Discussion to turn off comments on older posts if you like.

WordPress posts usually have the name of the author and published/updated date.

The best example of a WordPress post may be this article which you are reading now. Go to the top, and you can see the post category ‘Beginner’s Guide’ above the article title. Below the title, there is the last updated date, author’s name, and social share buttons.

WordPress Post Example WPBeginner Blog

After the main article content, there is the comments section. You cannot usually find these on a page.

Now that you know what are posts, let’s take a look at pages and how they are different.

What are Pages in WordPress?

Pages are static “one-off” type content such as your about page, privacy policy, contact page, etc. While the WordPress database stores the published date of the page, pages are timeless entities.

For example, your about page is not suppose to expire. Sure you can go back and make updates to it, but chances are you will not have about page 2012, about page 2013 etc. Because there is no time and date tied to pages, they are not included in your RSS feeds by default.

You can add and edit pages in WordPress from ‘Pages’ menu in your dashboard. Here is how Add New Page screen looks like:

Add New Page WordPress Screen

Pages are not meant to be social in most cases thus do not include social sharing buttons. For example, you probably don’t want others to tweet your privacy policy page in most cases.

Similarly, pages also don’t include comments. You don’t want users to comment on your contact page or your legal disclaimers page. There is an option to enable comments, however, it is disabled by default for your WordPress pages.

Comment Options in WordPress Pages

Unlike posts, pages are hierarchical by nature. For example, you can have subpages or child pages within a page. You can easily turn a page into subpage by choosing a parent page from Page Attributes when editing a page.

Page Attributes WordPress

A key example of this in action would be our Blueprint page. This feature allows you to organize your pages together, and even assign a custom template to them.

WordPress by default comes with a feature that allows you create custom page templates using your theme. This allows developers to customize the look of each page when necessary.

In most themes, post and pages look the same. But when you are using your page to create a landing page or a gallery page, then the custom page templates feature comes in very handy.

Pages also have this archaic feature called ‘Order’ which lets you customize the order of pages by assigning a number value to it. However, this feature is extended by plugins like Simple Page Ordering that allows you to drag & drop the order of pages.

WordPress Pages vs. Posts (Key Differences)

To summarize, following are the key differences between posts vs pages in WordPress.

  • Posts are timely vs. Pages are timeless.
  • Posts are social vs. Pages are NOT.
  • Posts are organized using categories and tags vs. Pages are hierarchical and can be organized as child and parent pages.
  • Posts are included in RSS feed vs. Pages are not.
  • Posts have author and published date vs Pages do not.

The differences we listed above may have exceptions. You can use plugins to extend the functionality of both content types.

Despite these differences, there are some similarities between pages and posts in WordPress.

First, they are both used for publishing content. You can add text, images, forms, etc. to both posts and pages. There is featured image meta-field in both pages and posts.

You can build a website without ever using posts or blogging features of WordPress. You can also make a business website with pages and a separate blog section for your news, announcements, and other articles.

Frequently Asked Questions

Following are some of the most frequently asked questions we have heard from our users about posts vs. pages, and how to properly use them in WordPress.

1. How Many Posts and/or Pages Can I Have?

You can have as many posts and/or pages that you want. There is no limit on the number of posts or pages that can be created.

2. Are there any SEO advantages to one or the other?

Search engines like content to be organized. Timeless content is considered to be more important; however, there is a lot of priority given to the latest timely content.

In short, there may be a difference, but as a beginner, you do not need to worry about it. Focus on making your site organized for the user. To learn more, see our complete WordPress SEO guide for beginners.

3. Which pages I should create on my website or blog?

It really depends on what kind of blog or website you are making. However, you may want to see our list of important pages for all websites.

4. Can I switch posts to pages and vice versa?

Many beginners accidentally add content to posts when they actually wanted to create pages. Similarly, some new bloggers may end up saving blog posts as pages.

If you have just started out, then you can easily fix that by using the post type switcher plugin. For more details see our article on how to switch post types in WordPress.

5. Are there other content types in WordPress besides posts and pages?

Yes, there are. However, these other default content types include attachments, revisions, and navigation menus which are normally not used the same way as posts and pages.

WordPress also allows developers to create their own custom post types. This feature is used by plugins to create additional content types in WordPress. For example, if you are running a WooCommerce store, then you will see a ‘Products’ post type in your WordPress admin area.

We hope this article helped you learn the difference between pages and posts in WordPress and how to use them. You may also want to see our list of important things to do after installing WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post What is the Difference Between Posts vs. Pages in WordPress appeared first on WPBeginner.



Source link

How to Change the Number of Posts Displayed On Your WordPress Blog


Do you want to change the number of posts displayed on your WordPress blog page? By default, all WordPress archive pages show a maximum of 10 posts per page.

However, you can change them easily from your dashboard settings and show as many articles as you like.

In this article, we will show you how to easily change the number of posts displayed on your WordPress blog page with just 2 simple steps.

Change the Number of Posts Displayed on Your WordPress Blog Page

The first thing you need to do is login to your WordPress dashboard and go to Settings » Reading page. Next, you need to change the value of ‘Blog pages show at most’ option to any number of posts you want to display.

Change Number of Posts on Your Blog Page in WordPress

Don’t forget to click on the ‘Save Changes’ button to store your settings.

Now your WordPress blog and archive pages will show the number of posts that you want to display.

How Many Posts Should I Display on My Blog Page?

Usually, bloggers display 10 posts per page as set by default. It seems an appropriate number to show from the user-experience and SEO (Search Engine Optimization) perspective.

You can display as many posts as you like, but we do not recommend choosing a number higher than 10 especially when you are not showing excerpts.

Mainly because the more posts you display on a page, the bigger the page size will be, which makes it slower to load.

On WPBeginner’s Blog and Archive pages, we show 10 posts with an excerpt and the featured image. This makes it easier for our users to browse the archives quickly, and it offers a better user experience.

We hope this article helped you change the number of posts displayed on your blog page. You may also want to see our guide on how to schedule your posts in WordPress to be published at a future time.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.



Source link

How to Remove Author Name from WordPress Posts (2 Easy Ways)


Do you want to remove the author name from your WordPress blog posts? Normally, blog posts are supposed to show author name with other meta-data like date and category.

However, some blog owners may not want to display the author name next to their blog posts.

By default, WordPress does not have an option to remove author name, and you must select an author to publish a post.

In this article, we will show you two ways to easily remove author name from your WordPress posts. We will also discuss the pros and cons of each approach.

Remove author name from WordPress posts

Why Would You Want to Remove Author Name?

Author name is an important type of metadata added to your WordPress posts by default. It allows your readers to learn about authors who create content on your blog.

However, there are times when you may want to hide the author name.

For example: if multiple staff members in your team collaborate on each blog post, then it may seem unfair to credit a single staff member for the work.

In another scenario, you may have several contributors/freelance writers who occasionally write articles, but you want to keep a consistent style and voice for your blog.

With that said, let’s take a look at solutions for easily removing author name from WordPress posts while still allowing multiple authors to work in the background.

Method 1: Manually Remove Author Name from WordPress Posts

Your WordPress theme decides when and how to display the author name in your blog posts. Themes use multiple approaches to do that which makes it harder for a plugin to provide a generic solution for removing author names.

You will need to edit some code to prevent your theme from displaying the author name. If you are uncomfortable editing code, then try the second method instead.

The first method requires you to edit WordPress theme files. If you haven’t done this before, then please take a look at our guide on how to copy and paste the code in WordPress.

Note: Make sure that you create backup of your theme or child theme before making any changes. If something goes wrong, then this will help you easily revert changes.

WordPress themes use different variations of code to display the author name. You will need to locate the code responsible for showing the author’s name in your theme files and delete it.

Most common locations to find this code are single.php, content.php, archive.php, and index.php files.

In many cases, you will not be able to find the code that outputs author name. Instead, you will find a template tag defined in the functions.php file or template-tags.php file.

For example, the default Twenty Nineteen theme uses the function twentynineteen_posted_by to display author name. This function is defined in template-tags.php file and uses the following code:


function twentynineteen_posted_by() 
		printf(
			/* translators: 1: SVG icon. 2: post author, only visible to screen readers. 3: author link. */
			'<span class="byline">%1$s<span class="screen-reader-text">%2$s</span><span class="author vcard"><a class="url fn n" href="%3$s">%4$s</a></span></span>',
			twentynineteen_get_icon_svg( 'person', 16 ),
			__( 'Posted by', 'twentynineteen' ),
			esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
			esc_html( get_the_author() )
		);
	
endif;

Once you have located the code that outputs the author name, you need to delete it.

For example, you have to delete the code from the second line to the ninth line in the above code. After that, the remaining code will look like below.


function twentynineteen_posted_by() 

endif;

Don’t forget to save your changes after deleting the author name code. Then, upload the files back to your website.

You can now visit your website to see your changes in action:

Author Name Removed in WordPress Post Demo

This method hides the author name on all your posts; however, the author archive pages will remain intact. An author archive page is where WordPress creates a list of all articles written by a specific user.

You can find author archive page on a URL like this:

https://example.com/author/samsmith/

This URL is discoverable by search engines, which means you may still get traffic to those pages.

You can disable the author archives easily using the Yoast SEO plugin. Once you install and activate the plugin, go to SEO » Search Appearance your dashboard and then click the ‘Archives’ tab.

Now you can see the author archive settings. You can toggle Author Archives switch and disable author archives on your site.

Yoast SEO Author Archive Settings

Doing so will disable author archives and hide author-sitemap.xml file created by the Yoast SEO plugin.

Method 2: Create a Generic Author Name for Publishing WordPress Posts

This method does not remove the author name, but it can be used as a workaround.

You will create a generic author name and use it for all your past and future articles. You will need to change the author name before publishing each post.

Note: This method is irreversible. If you do this and want to revert, then you will have to edit each post and assign it to the original author manually.

That being said, let’s get started.

First add a new author to your WordPress site and give it a generic username such as editorialteam.

Add new user

Next, you need to visit Users » All Users page and click on the ‘Edit’ link below the username you just added.

Edit user

On the user profile screen, scroll down to the ‘Nickname’ option and enter the name you want to be displayed (for example, Editorial Team).

After that, click on the drop down menu next to ‘Display name publicly as’ option and select the nickname you just entered.

Select display name

You can also add a generic bio and even create a gravatar for that user account.

Now go to Posts » All Posts page and click on the screen options menu at the top. Enter 999 for number of items to display.

Show all posts on screen

This will allow you to quickly edit and change author name for a large number of posts.

You need to select all posts using the checkbox and then select edit under the bulk actions drop down menu. After that click on the ‘Apply’ button to continue.

Select all posts for bulk editing

WordPress will now show you the bulk editing options. You need to change the author to the generic author name you added earlier and then click on the Update button.

Bulk change author name

WordPress will now update all selected posts and change author name. Remember, this process may take some time depending on how fast your WordPress hosting is.

If you have more than 999 posts, then you will need to go to page 2 and repeat the process.

That’s all. You can now visit your website to see it in action.

Editorial Team as Author Name

Our Recommendation

Removing author name using the coding method gets the job done, but it is not the best solution. For example, if you are not using a child theme, then a theme update will override your changes.

This is why we recommend the second method to create a generic author name.

Doing so allows you to use the built-in WordPress functionality and does not require you to edit any code. It will not remove author name or archives but will make them generic. It will also help to ensure consistency of authorship on your site.

If you are good with coding, then you can also use a combination of both approaches. You can create a generic author name to publish all your blog posts, and then hard-code author profile in a WordPress child-theme.

We use a similar approach at WPBeginner. You can see ‘Editorial Staff’ as the author for all blog posts including this one you are reading right now.

Generic Author Name on WPBeginner Article

You can also see that in the author info box at the bottom of the article.

Generic Author Info Box in WPBeginner Article

If you want to add an author info box like this, then take a look at the best free author bio box plugins.

We hope this article helped you learn how to remove author name from WordPress posts. You may also want to see our list of 30 effective ways to monetize your website.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.



Source link

How to Add Multi-Column Content in WordPress Posts (No HTML Required)


Do you want to add multi-column content in your WordPress posts? Columns can be used to create engaging layouts for your posts and pages.

Traditional print media, like newspapers and magazines, have been using multi-column layouts since the very early days of printing. Their goal was to make it easier for users to read the smaller text while utilizing the available space economically.

Single column layouts are more commonly used on the web. However, multi-column grids are still useful for highlighting content and making it easier to scan and read.

In this article, we’ll show you how to easily add multi-column content in your WordPress posts without writing any HTML code.

Add Multi-Column Content in WordPress Posts and Pages

Adding Multi-Column Content in WordPress – The Easy Way

Creating multi-column content aka grid column content in WordPress is now easy because it comes as a default feature. The new WordPress Block Editor Gutenberg includes a columns block.

To add a multi-column layout, you need to create a new post or edit an existing one. Once you’re in the post edit area, click on the ‘Add’ icon on the top to add a block.

Next, you need to select the ‘Columns’ block located under ‘Layout Elements’ tab.

Add Columns Block in Your WordPress post

You will now see the mouse cursor jumping on the left column and a text placeholder will appear on the right column.

Columns block WordPress in WordPress added to post

As you can see in the above screenshot, the Columns block seems just an empty area at first. If you mouse over to the left, you can see the block border highlighted.

You will also be able to see the block settings on the right column of the post edit screen.

Columns Block WordPress - 2 Columns

By default, the columns block will adds two columns. You can increase the number of columns you want to add from the block settings on the right. It allows you to add up to six columns in a single row.

Add more columns to your Columns

Simply click on a column and start typing to add content. You can use the tab key on your keyboard for switching to the next column.

Add Text in Your WordPress Columns

Adding Media and Other Content in Your Columns

In addition to the text content, you can also add images and embed videos in WordPress columns.

The columns block allows you to add blocks inside each column. Simply take the mouse to a column, and you will notice the ‘Add new block’ icon inside it. You can also add a block by typing / and then the block name.

Add new block in WordPress columns

Your selected block will now appear inside the column. You can now go ahead and add content to it.

Image Block Added to WordPress

Here’s how your new column may look in the default Twenty Nineteen theme. In this example, we are using three columns and the last column contains an image.

3 Columns in WordPress Post - Preview

If you only want to add an image and some text next to it, then you can also use the ‘Media and Text’ block instead of columns. This particular block is made specifically for showing media like images and videos next to some text.

Add Media and Text Block in WordPress

Adding Multiple Columns in Old WordPress Classic Editor

In case you haven’t upgraded your WordPress to Gutenberg and still using the Classic Editor, then you’ll need to install a separate plugin for creating a grid column layout.

First, install and activate the Lightweight Grid Columns plugin. For detailed instructions, follow our step by step guide on how to install a plugin in WordPress.

Upon activation, you can create a new post or open an old post to edit. Next, click on the ‘Add Columns’ button from the visual editor toolbar.

Add Columns Icon Lightweight Grid Columns Plugin

Now you will see a popup window to add your first column. You can choose how much area your column can cover, in desktops, tablets, and mobile devices differently.

For example, if you set the desktop grid percentage 50%, your column will cover the half row.

Grid Width Percent - Lightweight Grid Columns

There’re plenty of options to set your column width, from 5% to 100% in the interval of 5. You can choose one by clicking the dropdown.

Column Width Options - Grid Percentages

After that, you need to add your column content in the ‘Content’ box and then click the “OK” button to insert it into your post.

Add Content to Your Column  - Lightweight Grid Columns Plugin

The plugin will now generate the required shortcode with your content and add it to your post editor.

Shortcode and Content Added to WordPress Column

Now that your first column is added, you can repeat the process to add more columns. For the last column in row, don’t forget to check the box ‘Last column in row’.

Shortcode and Content for 2 Columns in WordPress

After that, you can save your post and preview it. Here’s how it looked on our test site using Twenty Seventeen theme.

Two WordPresss Columns in Twenty Seventeen Theme

We hope this article helped you learn how to add columns in your WordPress posts and pages. You may also want to see our simple guide on how to easily align images in WordPress posts.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Add Multi-Column Content in WordPress Posts (No HTML Required) appeared first on WPBeginner.



Source link

How to Easily Embed Videos in WordPress Blog Posts


Do you want to embed videos in your WordPress blog posts? Videos bring life to your website, and they are a great way to increase user engagement.

WordPress makes it super easy to embed videos from video hosting sites like YouTube, Vimeo, Facebook, Twitter, and many others.

In this beginner’s guide, we will show you how to easily embed videos in WordPress blog posts, pages, and sidebar widgets.

How to easily embed videos in WordPress

How to Embed Videos in WordPress Blog Posts and Pages

WordPress comes with a great feature called auto-embeds which allows your website to automatically get the embed code from popular video hosting services like YouTube, Vimeo, etc.

All you need to do is paste the video URL into the WordPress editor.

For example, you can copy the YouTube URL for a video that you want to embed.

Next, edit the WordPress post or page where you want to add the video, and simply paste the URL in the content area.

Embedding video in WordPress post editor

As soon as you paste the video URL, WordPress will fetch the embed code and display the YouTube video inside the content editor.

You can now save your post and click on the preview button to see the embedded video in your blog post.

Video embedded in a WordPress blog post

Wasn’t that easy?

After you have added the video, you can change its settings from the block toolbar and settings column on the right.

Video block toolbar and settings

You can adjust the video width, make it full-width, change alignment, and more. You can also add a caption and preserve the video’s aspect ratio on mobile devices.

WordPress can only do auto-embeds for white-listed video services. For other websites, you will still have to obtain the embed code and then paste it in your blog posts.

Here is a list of white-listed video services for auto embeds in WordPress:

  • Amazon
  • Animoto
  • Cloudup
  • CollegeHumor
  • Crowdsignal
  • Dailymotion
  • Facebook
  • Flickr
  • Hulu
  • Imgur
  • Instagram
  • Issuu
  • Kickstarter
  • Meetup.com
  • Mixcloud
  • Reddit
  • ReverbNation
  • Screencast
  • Scribd
  • Slideshare
  • SmugMug
  • Someecards
  • SoundCloud
  • Speaker Deck
  • Spotify
  • TED
  • Tumblr
  • Twitter
  • VideoPress
  • Vimeo
  • WordPress.tv
  • YouTube

If you want to add a video from a website outside this list, then you will need the full HTML embed code for the video.

Simply copy the HTML code provided by the video website and paste it inside a ‘Custom HTML’ block in the editor.

Add a custom embed code in WordPress

Embed Videos in WordPress Using Old Classic Editor

If you are still using the old WordPress classic editor, then you can embed the videos the same way.

Simply copy the URL from a video hosting service like YouTube, and paste it in the editor. If you are using the visual editor, then you will see a preview of the video.

Emedding video in old WordPress editor

However, you will not be able to use the width adjustment and other options that you can use in the new WordPress block editor.

How to Embed Videos in WordPress Sidebar Widgets

Just like a WordPress page or post, you can also embed videos in WordPress sidebar widgets.

Simply go to Appearance » Widgets page and add the ‘Text’ widget to a sidebar. See our article on how to add and use widgets in WordPress.

Inside the widget settings, you need to paste the video URL in the content area. WordPress will automatically fetch the embed code and display the video preview.

Embed videos in WordPress sidebar widget

Don’t forget to click on the ‘Save’ button to store your widget settings.

You can now visit your website to see the video embed in the WordPress sidebar widget.

Why can’t I upload the videos to WordPress?

Well you can, but we do not recommend you to do so.

Most small blogs use shared WordPress hosting accounts, and videos can take up a lot of server resources. If your video got tons of traffic, then your website is more likely to crash.

Secondly, you are missing out the traffic from YouTube users.

YouTube is not only the biggest video hosting site, but it is also the world’s second most popular search engine, and the second most popular social network right after Facebook.

If you don’t want to upload your videos to YouTube, then you can try Vimeo or DailyMotion. See our comparison of YouTube vs Vimeo to see which platform is better for your needs.

For more on this topic, take a look at our article on why you should never upload a video to WordPress.

WordPress Video Embed Plugins

By default, you don’t need to use a plugin to embed videos in WordPress. However, you may want to use plugins to improve video viewing experience on your website.

Following are a few plugins that you may want to try.

1. YouTube Subscribe Bar

YouTube Subscribe Bar in action

YouTube Subscribe Bar shows a YouTube subscribe button below your YouTube video embeds in WordPress. It also fetches your YouTube subscriber count to add social proof and encourage more users to subscribe.

We first created it to promote WPBeginner’s YouTube channel on this website. Many of our users asked us to share how we did this, so we decided to release it as a free plugin.

2. Envira Gallery

A video gallery in WordPress

By default, WordPress does not come with embedded video gallery feature. If you wanted to show a video gallery on a page, then you’ll need a plugin to do that.

Envira Gallery is one of the best photo gallery plugins for WordPress. It also comes with a videos addon which allows you to create beautiful video galleries with lightbox popup support.

3. Lazy Load for Videos

Lazy load videos in WordPress

Video embeds load scripts from external websites, which has a small impact on page load speed and performance.

Lazy Load for Videos solves this problem by only loading the video image on page load. It loads embed code only when the user clicks on the play button. See our tutorial on how to add lazy load for videos in WordPress.

We hope this article helped you learn how to easily embed videos in WordPress blog posts. You may also want to see our list of the must have WordPress plugins for all websites.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Easily Embed Videos in WordPress Blog Posts appeared first on WPBeginner.



Source link