Tag - Easy

How to Bulk Delete WordPress Posts (2 Easy Solutions)


Do you want to bulk delete WordPress posts? WordPress makes it super easy to manage posts from the admin area. However, if you want to delete a lot of posts then selecting and deleting them may take some time. In this article, we will show you two quick and easy solutions to bulk delete WordPress posts from your blog.

Bulk delete WordPress posts with two easy methods

Method 1. Bulk Delete WordPress Posts without Plugin

This method is easier and is recommended for all users. It uses the built-in WordPress functionality to quickly select a large number of posts and delete them.

First, you need to visit Posts » All Posts page. From here you can click on the bulk select box on top to select all posts displayed on the page.

Select all posts

If you don’t want to delete all of the selected posts, then you can now go ahead and uncheck those posts. Otherwise, you can click on the ‘Bulk Options’ drop-down menu and select ‘Move to Trash’ option.

Move to trash option

Next, you need to click on the ‘Apply’ button to delete selected posts.

WordPress will now move the selected posts to trash.

Using this default method, you can only select 20 posts at a time. What if you wanted to delete hundreds of posts?

Simply click on the ‘Screen Options‘ button at the top right corner of the screen. This will bring a pull-down menu where you need to change the ‘Number of items per page’ to any number you want.

Change the number of posts to be displayed

Next, click on the Apply button and WordPress will display the number of posts you selected earlier. You can now go ahead and bulk delete posts as described above.

Note: Deleted posts will be moved to WordPress trash and will remain there for 30 days. After that, they will be permanently deleted from your WordPress database.

Bulk Delete Posts by Specific Author or Category

Now let’s suppose you want to delete posts filed under a specific category / tag or written by a specific author? You can simply click on the author, category, or tag links to display posts associated with them.

Display posts by author, category, or tag

For example, clicking on the ‘News’ category will show you the list of posts filed under that category. You can then select the posts and move them to trash by using the Bulk Options menu.

Method 2: Bulk Delete WordPress Posts using a Plugin

The default bulk delete options are quite adequate for most users. However, there are some cases where you may need more options to quickly select specific posts and then bulk delete them.

For example, if you want to delete posts filed within last few days or posts older than a certain number of days?

Luckily, there is a plugin that lets you bulk delete posts using advanced filters.

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

Upon activation, go to Bulk WP » Bulk Delete Posts page in your WordPress admin area to delete posts. The plugin offers multiple ways to filter and select posts that you want to delete.

Bulk WP Settings

You can filter posts by duration, select posts published in last x days, delete them instantly without sending to trash, and even schedule to delete later.

As you scroll down further in the settings screen, you will find more options to select and delete posts by categories, custom taxonomies, custom post types, and more.

Sort and select posts by category

Bulk Delete can also be used to bulk delete comments, pages, users, and custom fields.

We hope this article helped you learn how to easily bulk delete WordPress posts using these two methods. You may also want to see our list of the best WordPress plugins for business 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 Bulk Delete WordPress Posts (2 Easy Solutions) appeared first on WPBeginner.





Source link

Read more...

How to Clone a WordPress Site in 7 Easy Steps


Generally speaking, cloning is considered an unethical practice. However, when you think of cloning in terms of making a duplicate WordPress site, a whole new world of completely ethical possibilities can open up for your business. In this article, we will show you how to easily clone a WordPress site in 7 easy steps.

Cloning a WordPress website step by step

What is Cloning, and Why Use It?

The idea behind cloning a WordPress site is simple: you make an exact copy or duplicate of one WordPress site and apply it to another site.

You might be wondering, are there any good reasons to actually do this? Absolutely!

One practical scenario is when you are moving a WordPress site to a new web host or a new domain name. Cloning a site will save you hours of work.

Another possible use is when you are developing a site for a client on your local server. Once the project is done, you can duplicate the WordPress site and move it to your client’s live server.

Lastly, you can clone a live WordPress site to your local server for testing and development purposes.

Cloning a WordPress site is not that difficult at all. If you can point and click, then you can create a duplicate site in minutes.

Here’s a 7 step guide on how to easily clone a WordPress site, even if you’re a beginner!

Step 1. Cloning WordPress using Duplicator Plugin

For this article, we will be using the Duplicator plugin. It is a powerful WordPress backup and migration plugin built for beginners and professionals alike.

The first thing you need to do is install and activate the Duplicator plugin. For more details, see our step by step guide on how to install a WordPress plugin.

The plugin works out of the box, and you can start using it without configuring any settings.

Step 2. Creating a WordPress Backup Using Duplicator

Duplicator allows you to clone your WordPress site by creating a backup and then unpacking it on a new location.

Let’s go ahead and create a WordPress backup package.

First, you need to visit the Duplicator » Packages page and click on the ‘Create New’ button at the top.

Creating new package in Duplicator

This will begin the Duplicator wizard where you need to click on the next button to continue.

Duplicator wizard

Duplicator will now scan your website to check if everything is in order to run the plugin. If the plugin finds an issue, then you will see a warning here.

Pre-package scan

If everything is marked good, then you can go ahead and click on the ‘Build’ button to continue. Duplicator will now backup your WordPress database, images, templates, plugins, and all other files in a single downloadable package.

Step 3. Preparing to Clone Your WordPress Site

Once Duplicator has finished the backup process, you will see a link to download the archive which contains backup files and an installer script.

Packaging finished

You need to click on the ‘One-click Download’ link to download both files to your computer.

Both of these files are extremely important to properly clone your WordPress site on the new location.

Step 4. Upload Archive and Installer to the New Location

Now that you have a complete backup of your site along with the Duplicator installer file, the next step is to upload them to the new location.

This new location can be a live website, or a site on your local server. If it is a site on your local server, then you just need to copy and paste the files into a subfolder inside your htdocs or www folder, like this:

C:wampwwwmynewsite

If it is a live site on a different WordPress host, then you need to upload these files to the root directory using an FTP client.

No matter where you are copying the files, you need to make sure that the folder is completely empty and has no other files or folders inside it except installer.php file and your backup zip file.

Upload backup files and installer

Step 5. Running The Import Script

Now that all your files are in place, you need to run the Duplicator installer script.

Simply visit the new website in a web browser and add installer.php at the end of the URL.

http://example.com/installer.php

Don’t forget to replace example.com with your own domain name or the localhost address of your new site.

You will now see the Duplicator installer script on the screen. It will automatically look for the backup files and basic configuration settings. If everything looks good, then go ahead and check the terms and notices checkbox. After that, you can click on the next button to continue.

Running installer script

On the next screen, Duplicator will ask you to enter database information. This is the database you want to use for your new cloned WordPress site.

Enter your database information

Don’t forget to click on the ‘Test Database’ button to make sure that the database information you entered is correct.

After that, click on the next button to continue.

Duplicator will now import your database and files. Next, it will ask you to update settings for the new site.

New data

It will automatically detect the changes and fill in the URL, Path, and Title fields for you. You can just click on the ‘Next’ button to continue.

Duplicator will now finish the installation, and you will see the admin login button. Clicking on it will take you to the new cloned site’s WordPress admin area.

Step 6. Test Your Cloned Site

You can now go ahead and test your cloned WordPress site. We recommend testing both the admin area and front end of your website to make sure that all your data is there, and the website is working as intended.

If you run across any issues, then take a look at our guide on how to fix common WordPress errors.

Step 7. Delete Temporary Files

Once you are satisfied that everything is imported correctly, you can go ahead and delete the installation files created by the Duplicator plugin.

On your cloned WordPress site, go to Duplicator » Tools page and then click on ‘Remove Installation Files’ button.

Remove installation files

That’s it, you have successfully cloned a WordPress site.

Final Thoughts

As you can see, cloning a WordPress site is not very hard as long as you are duplicating your own website. If you want to copy someone else’s WordPress site, then that’s actually illegal unless you have their explicit written permission.

There are definitely other ways to clone a WordPress site such as doing it manually which doesn’t even require WordPress admin access, but we believe there are no benefits to that unless you’re dealing with a really large website.

For majority of use-cases where you have to duplicate a WordPress site, we recommend using the above method because it’s the easiest and most comprehensive.

We hope this article helped you easily clone your WordPress site. You may also want to see our ultimate step by step guide to improve WordPress speed and performance.

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 Clone a WordPress Site in 7 Easy Steps appeared first on WPBeginner.





Source link

Read more...

How to Test a WordPress Site in Different Browsers (Easy Way)


Do you want to test your WordPress site in different browsers? Cross Browser Testing is extremely important when changing WordPress themes or implementing a new design because it helps you make sure that your website looks good on all different browsers, screen sizes, operating systems, and mobile devices. In this article, we will show you how to easily test a WordPress site in different browsers.

Testing your WordPress site in different browsers

What is Cross Browser Testing?

Cross Browser Testing is a process of testing websites across multiple browsers, operating systems, screen sizes, and mobile devices to ensure that your website works correctly on all different web browsers.

Why Test a WordPress Site in Different Browsers?

Google Chrome is the most popular web browser in the world with 65% market share on desktop computers and 57% on mobile devices. However, other browsers like Firefox, Microsoft Edge, Safari, and Opera are still widely used by hundreds of millions of users across the world.

Due to a wide range of browsers, operating systems, and devices, cross browser testing has become an important part of building a website. Cross-browser testing helps you provide a consistent web experience to all your users across different browsers, devices, and platforms.

While all popular browsers behave nearly identical when rendering web pages, they all use different code which means they may handle website elements differently from time to time.

As a website owner, this means that your website may look different across browsers. Since these are not common WordPress errors that are visible to everyone, you may go months without ever knowing about the issue until someone reports it.

This is why it’s considered best practice to test your WordPress site across different browsers on multiple platforms and screen sizes, so you can make sure that your website offers the same user experience to all your users.

Now most people do not have access wide range of devices to test a website. Even if you manage to borrow multiple devices from friends, it will be a lot of work to manually switch back and forth. Luckily there are cross browser testing tools that can help automate the process with just one-click.

But before we share the list of best cross browser testing tools for WordPress, it’s important to know which browsers are popular among your users, so you can direct your focus accordingly.

How to Find Which Browsers Your Website Visitors Use?

Considering the number of available operating systems, browsers, and browser version combinations, cross browser testing can be a tedious task for small business owners.

However if you know the popular browsers, operating systems, and devices that your website visitors use, then you can make the process considerably easier on yourself. Depending on your specific stats, you may be able to get away with testing only few popular combinations.

You can find out which browsers, operating systems, and devices are popular among your users by using Google Analytics.

Simply login to your Google Analytics account and go to Audience » Technology report. From here you can find out information about browsers, OS, screen sizes, used by your website visitors.

Google Analytics technology overview

Once you have this list, you can focus on the top combinations and avoid the rest.

If you are just starting a blog or do not have Google Analytics, then we recommend that you install MonsterInsights immediately to properly setup Google Analytics. Once installed, you can either choose to wait a few weeks to collect data or proceed with testing your website across all browsers.

Best Cross Browser Testing Tools for WordPress

Cross browser testing tools make it easy for you to test your WordPress site across multiple browsers, operating systems, and devices. With just a few clicks, you can automatically test your website across different browsers.

Below is the list of top cross browser testing tools for WordPress sites:

1. Browsershots

Browsershots

Browsershots is an open source tool that allows you to test your website with several browsers on different operating systems. The best part about this tool is that it’s free. The down-side is that it does not include Microsoft Edge or Internet Explorer. It also does not include mobile device support.

To use Browsershots, simply enter your website URL and then select the browsers you want to test. Browsers are listed in three columns for Linux, Windows, and Mac OS.

After submitting your request, you will have to wait a while as it runs the tests and generates a screenshot. Once finished, you’ll be able to see the screenshots on the same page. You can now go ahead and click on a screenshot to expand it.

Note: BrowserShots takes screenshots of a website which means it is not live-testing. You may not be able to see if your website works as intended during the tests. For that, you’ll need tools that run live tests in actual browsers.

2. CrossBrowserTesting

CrossBrowserTesting

CrossBrowserTesting is an easy to use and highly powerful cross-browser testing tool with both live testing and screenshots features. This is the tool that we use here at Awesome Motive to test our websites like WPBeginner and our premium WordPress plugins.

It is a paid service, but they do offer a free trial account with 100 minutes to test out the product.

After creating your trial account, go to the ‘Live Test’ tab where you can select an operating system and browser. It will load your website URL in the actual browser appearing live on your screen.

If you’d like to quickly get multiple screen grabs at once, then click on the ‘Screenshots’ tab and run a new screenshots test. CrossBrowserTesting tool will automatically fetch screenshots on Mac, Windows, iPad, and Nexus 6P mobile phone running Chrome, Firefox, Safari, Microsoft Edge web browsers.

It also mentions layout differences below each screenshot which you can click to compare the layout with the base layout. You can also compare different layouts side-by-side or download all screenshots to your computer.

The free account is a bit limited in terms of browsers and operating systems combinations that you can run. However, it covers most popular browsers on top mobile and desktop platforms.

Pricing: Starts from $29 per month billed annually.

3. BrowserStack

BrowserStack

BrowserStack is a paid cross-browser and cross-platform testing tool for mobile apps and websites. They also offer a limited free trial account which gives you a 30-minute access to test their platform.

It comes with both live testing and screenshots features. You can select the platform you want to test and then select a browser. BrowserStack will load the virtual emulator with an actual browser window. You can simply enter the URL you want to test to start the test.

The results are pretty accurate and the speed is quite satisfying. However, you will have to still perform the tests manually by opening up each browser.

Pricing: Starts from $29 / month billed annually.

How to Analyze Cross Browser Test Screenshots?

Now that you have learned the easiest way to test your WordPress site in different browsers, the next part is to analyze your results and see if there is something broken that needs fixing.

If you are running a responsive WordPress theme with good quality code behind it, then most of your screenshots will look pretty much the same.

However, in some cases, website elements may look slightly different from one browser to another. If this difference is minor and doesn’t impact user experience, aesthetics, or functionality, then you can ignore it.

On the other hand, if a difference is too noticeable, affects user experience, looks unpleasant, or prevents users from using your website as intended, then it needs your attention.

In most cross-browser tests, you will discover CSS issues with your theme. This can be fixed using Inspect Tool to find out which CSS rules need to be updated. After that, you can add custom CSS to fix those issues.

If you’re unable to fix the issues, then you can always hire a WordPress developer to help you fix them.

We hope this article helped you learn how to easily test a WordPress site in different browsers. You may also want to see our ultimate step by step guide on improving WordPress speed and performance.

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

Read more...