In WordPress, when delete a post or comment, it goes into trash. By default, trashed posts and comments remain in your database for 30 days giving you enough time to restore them if needed. After 30 days, WordPress automatically deletes all trash content permanently. In this article, we will show you how to limit or disable automatic WordPress empty trash feature.
What is Trash in WordPress?
When you delete a post, page, or a comment in WordPress, it is marked as trash.
You can see the trashed posts or comments by clicking on the Trash link when viewing posts, pages, or comments.
By default, these items will remain there for 30 days. After that, WordPress will automatically delete them permanently.
You can override the automatic process by going to trash and deleting the items manually by clicking on the delete permanently link.
But what if you don’t want WordPress to delete items from trash? Or maybe you want WordPress to automatically delete items sooner or later than 30 days.
Let’s take a look at how to limit or disable automatic WordPress empty trash feature.
Stopping WordPress from Automatically Emptying Trash
Do you want to stop WordPress from automatically deleting items from trash? Here is what you need to do.
Simply add this little code snippet in your theme’s functions.php file or a site-specific plugin.
This code simply removes the action that deletes trashed items when their time is up.
Now when you send an item to trash, it will remain there until you go to trash and manually empty the trash.
Changing When to Empty Trash in WordPress
As we mentioned earlier, WordPress automatically empty trash after 30 days. You can change this to any number of days you want.
Simply add the following line of code in your wp-config.php file just before the line that says ‘That’s all, stop editing! Happy blogging.’
define('EMPTY_TRASH_DAYS', 7);
This line changes the trash emptying schedule to 7 days. You can change 7 to any number of days that you want.
Disabling The Trash Feature in WordPress
We don’t recommend disabling the trash functionality in WordPress. It is a great feature that comes in handy when you accidentally delete a post, page, or a comment.
However, if you really feel that you don’t need this functionality, and you would rather delete things permanently, then here is what you need to do.
Simply add this line of code in your wp-config.php file just before the line that says ‘That’s all, stop editing! Happy blogging.’
define('EMPTY_TRASH_DAYS', 0);
Adding this line will disable the WordPress trash feature completely. On your posts and pages, custom post types, and comments pages, you will see Delete Permanently link instead of Trash.
That’s all, we hope this article helped you learn how to limit or disable automatic empty trash feature in WordPress. You may also want to see our list of 21 plugins to efficiently manage WordPress multi-author blogs.
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.
Are you looking for the best WordPress SEO plugin? If you are, then you have likely narrowed your choice down to the two most popular WordPress SEO plugins: Yoast SEO and All in One SEO Pack. At WPBeginner, we’re often asked which one is better? In this article, we will compare Yoast SEO vs All in One SEO Pack to find out which one is the best WordPress SEO plugin.
About Our Contenders
Both All in One SEO Pack and Yoast SEO plugins have devout userbase, and they are among the most popular and most used WordPress plugins of all time.
All in One SEO Pack was created in 2007 by Michael Torbert and Steve Mortiboy. Since then it has earned a massive user base and has become one of the most downloaded WordPress plugins of all time.
Yoast SEO, started out as WordPress SEO by Yoast in 2010. It was created by Joost de Valk. With persistent and continuous improvements in the plugin, it soon became the major rival of All in One SEO. .
These are both excellent plugins and offer all the must have features you need to get maximum SEO benefits on your WordPress site.
Having said that, let’s compare Yoast SEO vs All in One SEO to find out which one of them is the best WordPress SEO plugin.
Installation and Setup
It takes a lot of training and practice to understand and successfully implement the concepts of SEO into websites. A WordPress SEO plugin should make it easy for beginners to setup SEO best practices without any special skills.
Let’s see how these two plugins stack up when it comes to installing and setting up basic SEO settings on WordPress websites.
Yoast SEO
First thing you need to do is install and activate the Yoast SEO plugin. For more details, see our step by step guide on how to install a WordPress plugin.
Upon activation, users can go to SEO » Dashboard page and launch the configuration wizard under the General tab.
This will bring up a step by step wizard which will walk you through the setup process. This allows beginners to get started quickly without feeling overwhelmed by complex jargon and options.
Yoast SEO is a powerful plugin, and it has a lot of options that you need to go through one by one. We have made this easy for you, take a look at our guide on how to install and setup Yoast SEO plugin in WordPress.
The settings section of Yoast SEO is neatly divided into pages where each page has different tabs for respective settings.
This makes it easy for users to locate an option in the settings.
On screen help is available on all pages of Yoast SEO settings. Just click the purple Help button on the top, and it will expand to show video or text about the options on the page.
Neatly organized settings, configuration wizard for beginners, and on screen help options make it super easy for beginners to setup Yoast SEO on their WordPress site.
All in On SEO Pack
First, you need to install and activate All in One SEO Pack plugin. For more details, see our step by step guide on how to install a WordPress plugin.
Upon activation, you will find the All in One SEO menu item just below the Dashboard. Clicking on it will take you to plugin’s settings page.
All in One SEO Pack, has all the settings on a single page. This makes it look a bit overwhelming, but some users may find this approach easier and faster than the multi-page settings of Yoast SEO.
The settings page is divided into different sections. Each section deals with the settings of a particular area or feature, for example: homepage settings, title settings, display settings, etc.
There is a help icon next to each option. Clicking on the icon shows a short description and sometimes a link to additional documentation. This makes it easy for beginners to understand what they are doing.
Here is our user’s guide for All in One SEO Pack, which will help you properly setup the plugin.
Once you have carefully gone through general settings, you are ready to use All in One SEO on your WordPress site.
Conclusion:
Both Yoast SEO and All in One SEO has a lot of options. This makes the setup look a bit intimidating. Both plugins try their best to simplify things and make it easier for users to setup their SEO settings. We feel that Yoast SEO does a slightly better job than All in One SEO with their multi-page and tabbed settings.
Winner: Yoast SEO
Day to Day SEO Tasks
SEO is an ongoing process, and each new post or page you add to your website has its own SEO score. This means, you will be using your SEO plugin to optimize your content for search engines as you add it. See our guide on how to optimize your WordPress blog posts for SEO.
Let’s see how our contenders stack up when it comes to performing day to day SEO tasks on your WordPress site.
Yoast SEO
Yoast SEO comes with a powerful content analysis tool that helps you optimize every single post or page on your website.
Just below the post editor, you will find Yoast SEO metabox with a snippet preview, focus keyword field, and content analysis.
The snippet preview shows how your site’s title and description will look in search engines. Yoast SEO automatically uses your post title as title and excerpt as description, but we recommend you to change it by clicking on the edit snippet button.
Entering focus keyword in Yoast SEO will allow the plugin to analyze your content for that particular keyword.
The analysis is shown in the content analysis area, where Yoast SEO will make suggestions on how you can improve your posts SEO score.
The Yoast SEO meta box has two more sections. You can click on the gear icon to switch to the advanced view.
The advanced view is something that most beginners should never use unless you know what you are doing. It allows you to stop search engines from following or indexing the post/page.
Second, is the social icon that displays the social settings for your post.
This is where you can set an article image for Facebook and Twitter. You can leave description and title bank because Yoast SEO will use your main title and description in the open graph meta tags.
All in One SEO Pack
All in One SEO comes with a similar metabox to edit SEO settings on a post by post basis. Simply edit a post and below the post editor you will find the All in One SEO meta box.
Unlike Yoast SEO, this meta box is very simple. You can edit the title and description, but there is no content analysis or SEO scoring.
All in One SEO does offer advanced tools for each post which allow you to control indexing and following by search engines. It even has an option that turns off All in One SEO for that particular post or page.
For social features, you will need to enable Social Meta addon by visiting All in One SEO » Features Manager page.
Enabling this addon will add a Social Settings tab in All in One SEO meta box below post editor. This addon allows you to set custom images and descriptions to be used by Facebook and Twitter.
Conclusion
Both plugins make it easy to edit SEO settings on a post by post basis. All in One SEO Pack takes a lean and clean approach allowing users to add additional fields if they want to.
Yoast on the other hand goes with decisions over options approach and add the features they believe is essential for all sites.
However, we feel that content analysis, focus keyword, and SEO scoring gives Yoast SEO a big advantage.
Winner: Yoast SEO
Additional Tools and Features
On page SEO is a comprehensive process that’s why both of these plugins come with additional tools and features aside from just meta tags.
These features are there to eliminate the need to install several other SEO plugins and give you a true all-in-one solution.
Yoast SEO
Yoast SEO comes with a comprehensive set of features that cover most aspects of on-site optimization. Some of these tools are:
XML Sitemaps
Breadcrumb Navigation
Open Graph Meta Tags
Importing Data from Google Webmaster Tools
Built-in robots.txt and .htaccess editor
Import/Export SEO data
All in One SEO Pack
All in One SEO also comes with tons of features but some of them are not activated by default. You will need to visit All in One SEO » Features Manager to activate them.
XML Sitemap
Robots.txt
File Editor
Bad Bot Blocker
Open Graph Meta Tags
Import and Export SEO Data
Performance Manager
Conclusion
Both plugins offer nearly the same set of tools and features. All in One SEO does not have breadcrumbs navigation and importing data from Google Search Console features. However, not having these two features wouldn’t have any drastic impact on your site’s SEO.
We also like how All in One SEO allows you to activate functionality only when needed.
Winner: Tie
Support and Addons
Even though both plugins are fairly easy to use and come with extensive free documentation, your free support options are very limited.
Let’s see how both plugins handle professional support and addons.
Yoast SEO
The basic free Yoast SEO plugin comes with no support, and you use it at your own risk. While you can ask questions at WordPress.org support forums and find help from other users, you are not guaranteed an official response from team Yoast.
For professional support, you will need to buy Yoast SEO premium. Pricing for a single site license is $69, and it goes up as you add more sites.
The premium license also comes with some additional features like multiple focus keywords, and a redirect manager.
Yoast SEO also offers some paid addon plugins available for niche sites with specific SEO needs. These addon plugins are:
Video SEO
Local SEO
News SEO
All in One SEO Pack
The free version of All in One SEO comes with no support. The All in One SEO Pack Pro version comes with one year of professional support.
License for the pro version costs $97 per year for one site. WPBeginner users can get $20 OFF using our All in One SEO Pro Coupon.
The pro version of All in One SEO is usually one major version ahead of the free plugin. It also comes with extra features like support for WooCommerce products, category SEO options, video XML sitemap, etc.
Conclusion
Yoast SEO license is cheaper if you need it for just one site. However, prices go up as you add more sites. On the other hand, a single license of All in One SEO can be used on unlimited sites.
Winner: All in One SEO Pack
Our Verdict
All in One SEO and Yoast SEO are both great plugins so any comparison between the two plugins has to be very close.
We personally use Yoast SEO on all of our websites and find it to be the best WordPress SEO plugin. It has more features to offer like importing data from webmaster tools, breadcrumb navigation, Your Info section, social features, etc.
But the best feature is content analysis which we think helps a lot of beginners understand how they should write post titles, descriptions, and use keywords in their content.
We hope this comparison of Yoast SEO vs All in One SEO Pack helped find the best WordPress SEO plugin for your site. You may also want to see our list of 9 best WordPress SEO plugins and tools that you should use.
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.
Beginner users often ask us what are widgets and how to use widgets in WordPress. Widgets allow you to add different functionality and features to your WordPress sidebars without writing any code. In this article, we will show you how to add and use Widgets in WordPress along with sharing Widget examples.
What are Widgets? Why You Need to Use Widgets in WordPress?
Widgets are tiny blocks of specific functionality that you can place in your WordPress sidebars (also known as widget-ready-areas). For beginners, this is an easy way to add things like galleries, quotes, popular posts, facebook like boxes, and other dynamic items on their WordPress site.
Widgets can be found on Appearance » Widgets page in your WordPress admin area.
You will see the widgets that you can add under the list of available widgets.
On your right hand, you will find the designated areas on your WordPress site where you can place these widgets. These designated areas are defined by your WordPress theme. They are called sidebars or widget-ready areas.
If you don’t see a specific widget you’re looking for, then it can likely be added with a plugin (more on this later).
Adding Widget to a Sidebar in WordPress
There are multiple ways to add widgets to sidebars available in your WordPress theme. The easiest one is to simply drag and drop them to your sidebar.
You can also click on a widget title from the list of available widget. WordPress will show you the list of sidebars where you can add this widget.
Simply select the sidebar where you want to add the widget, and then click on Add widget button to add it.
There is also an accessibility mode for users who need it. To enable accessibility mode, you need to click on the Screen Options button at the top right corner of the screen.
It will display a fly down menu with a link to enable accessibility mode for widgets screen. Clicking on it will change the user interface of the widgets screen.
Each available widget will now have a simple ‘Add’ button. clicking on the button will take you to an accessible screen where you can easily select the sidebar.
For detailed instructions see our guide on how to add WordPress widgets in accessibility mode.
The widgets page is not the only way to add widgets to your WordPress site. You can also add widgets using the live preview by visiting Appearance » Customize.
It’s important to note that not all of your widget-ready areas and sidebars will appear in the customizer. This is why we recommend using the Appearance » Widgets screen to add widgets in WordPress.
How to Remove a Widget in WordPress?
Removing a widget in WordPress is just as simple as adding them. Visit the Appearance » Widgets page.
Look for the widget that you want to remove in your sidebars and click on the widget title to expand it.
Below the widget settings, you will find the link to delete the widget. Deleting a widget will remove it from your sidebar and will also delete widget settings like title or any options that you selected.
Some widgets are too simple and don’t have many options in their settings while others have many options and settings. If you would like to remove a widget without losing the settings, then you need to drag and drop it to the inactive widgets section.
Deleting or sending a widget to inactive widgets does not remove it from the list of available widgets. You can always add a widget again from the list of available widgets or inactive widgets.
What Kind of Widgets are Available for WordPress?
A default WordPress installation comes with some built-in widgets like recent posts, recent comments, archives, search, etc.
Many WordPress themes and plugins come with their own plugins.
For example, Envira Gallery plugin allows you to create beautiful image galleries in your WordPress posts and pages. But it also comes with an Envira Gallery widget, which you can add to a sidebar to display image galleries in WordPress.
Similarly, countless other themes and plugins add widgets, so their users can add things to their WordPress sidebars without writing any code or html.
There are hundreds of WordPress plugins that just add widgets for you to use in your sidebar. See our list of the 25 most useful WordPress widgets for your site.
What Else You Can do With WordPress Widgets?
Widgets are an incredibly powerful and flexible tool in WordPress. WordPress developers have been using them in many innovative ways.
As a WordPress site owner, you can take advantage of that to add almost anything imaginable to your WordPress site. Get started with our 12 WordPress sidebar tricks to get maximum results.
If you are comfortable with code, then you may want to learn how to create a custom WordPress widget of your own.
That’s all, we hope this article helped you learn how to add and use widgets in WordPress. You may also want to see our guide on how to display different sidebar for each post and page 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.
Do you want to add your LinkedIn profile on your WordPress site? LinkedIn is a social network of professionals which helps you connect with other professionals and influencers in your industry. In this article, we will show you how to easily add LinkedIn Profile to WordPress.
Method 1: Adding LinkedIn Profile to WordPress with Official Plugins
Just like Facebook social plugins, LinkedIn also offers several plugins that allow you to add LinkedIn features to your WordPress site.
First you need to visit the official LinkedIn Member Profile plugin page.
If you are not already signed in, then click on sign in with LinkedIn button.
For logged in users, it will automatically display your member profile in the preview. You can choose how you want to show your profile and show or hide connections .
Once you are satisfied with the preview, you can click on the Get Code button. Member profile generator will show you a code snippet.
You can copy and paste this code snippet in a any post, page, or a sidebar widget on your WordPress site.
Method 2: Adding LinkedIn Profile to WordPress Using a Plugin
This method requires creating a LinkedIn app to use with a WordPress plugin. If the first method doesn’t work for you, then you can try this one.
First thing you need to do is install and activate the WP LinkedIn plugin. For more details, see our step by step guide on how to install a WordPress plugin.
Upon activation, you need to visit Settings » LinkedIn page to configure plugin settings.
Before you can use the plugin, you need to create a LinkedIn app to get the Client ID and Client secret API keys.
You need to visit LinkedIn Developer’s website and click on create application button.
This will bring you to the application form for creating a new app. First you need to provide company name, a name for your application, and description.
You will also need to upload a logo for your application. You can use your blog’s logo or any other image, just make sure that the image is in square shape with same width and height.
After that you need to add your website address, business email, and a phone number. Check the terms box and click on the submit button.
LinkedIn will now create your app, and it will redirect you to the app Dashboard. You will find your client ID and client secret keys there.
You still need to add the redirect URL to your app’s settings which you can find by scrolling down a little to OAuth 2.0 section. Copy and paste the redirect URL shown on plugin’s settings page and then click on the add button.
Don’t forget to click on the Update button to store your app settings.
Now you can copy the client ID and Secret Keys and paste them on the plugin’s settings page. After that, click on the save changes button to store your plugin settings.
WP LinkedIn comes with built-in widgets and shortcodes to add different LinkedIn features to your WordPress site.
You can go to Appearance » Widgets, and you will find LinkedIn Profile widget in the list of available widgets. Simply drag and drop it to a sidebar where you want to display your LinkedIn Profile.
You can also display your LinkedIn profile using [li_profile] shortcode anywhere on your WordPress site.
We hope this guide helped you learn how to easily add your LinkedIn profile to WordPress. You may also want to see our list of 10 LinkedIn WordPress plugins to win new customers.
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.
Recently, one of our users asked us how to change the ‘Reply’ text in WordPress comments. By default, most WordPress sites have a reply button below comments so that users can respond to a comment. In this article, we will show you how to easily change the “Reply” text in WordPress comments.
Why Change The Reply Text in WordPress Comments?
Comments are an easy way to boost user engagement. There is a lot you can do to improve WordPress comments.
For example, you can style your comment layout, change comment form style, comment text field to bottom, etc.
The reply link below a comment is like a call to action. Just like any other call for actions on your website, language, colors, size, and placement can all compel users to click.
By changing the simple boring reply to something more interesting, you can make it more prominent and attractive.
Let’s see how to easily change ‘Reply’ text in WordPress comments.
Changing ‘Reply’ Text in WordPress Comments
For this tutorial, you will need to add some code to your WordPress files. If you have not done it before, then you may want to take a look at our beginner’s guide to pasting snippets from the web into WordPress.
You need to add the following code to your theme’s functions.php file or in a site-specific plugin.
function wpb_comment_reply_text( $link ) {
$link = str_replace( 'Reply', 'Change to This Text', $link );
return $link;
}
add_filter( 'comment_reply_link', 'wpb_comment_reply_text' );
Don’t forget to replace ‘Change to This Text’ in the code with whatever text you want to use.
That’s all, you can now view any post with comments on your website, and you will find the text you added instead of ‘Reply’.
We hope this article helped you change the “Reply” Text in WordPress. You may also want to try these 11 ways to get more comments on your 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.