Friday, January 10, 2020

11 Things You Should Do When Inheriting a WordPress Site

Recently one of our readers asked what are some of the things we recommend doing immediately after inheriting a WordPress site?

Whether you’re a business owner who recently acquired a new website, or an office assistant who’s inheriting your company’s existing website from another team member, you might be wondering what are the most important next steps.

In this article, we will show you the top things you need to do when inheriting a WordPress site.

Things you need to do when inheriting a WordPress website

1. Get All The Passwords

Managing passwords

When inheriting a WordPress site, the first thing you must do is gather all the username and password information. This includes your web hosting password, FTP password, CDN password, domain management password, email marketing service passwords, and password to all third party premium plugins or services that the website is using.

From our experience, scheduling a video call with the old developer or site owners works best because they can explain everything in detail.

The best way to manage all your website passwords is by using a password manager. We recommend using LastPass because it works with all your devices and allows you to store passwords in group, share them securely, and use stronger passwords.

2. Change All Admin Password and Emails

Once you have received all the passwords, you need to change all of them.

This ensures that the previous developer or site owner cannot modify anything. Another thing you want to do is update all admin contact emails, so only you have the ability to reset passwords in the future.

You can do this by going to Users » All Users page in WordPress admin area and editing all user passwords along with contact details.

Edit all user passwords in WordPress

Next, you need to change the WordPress site admin email address. WordPress uses it to send important website notifications. Simply go to Settings » General page and enter a new email address there.

Change admin email address

3. Take Notes and Familiarize Yourself

take notes

Before you make any other changes to the site, it is important to take notes and familiarize yourself with the website. If you’re not familiar with WordPress, then we recommend that you watch our WordPress 101 videos.

It is very important that you understand the importance and functionality of each WordPress plugin used on the website.

You would also want to review theme settings and the widgets you’re using.

You can take notes of different functionalities, features you would like to change, and more.

Note: please write all these notes down in Google Docs, Dropbox Paper, or somewhere else that you won’t lose it.

This information will help you understand everything. If you need help understanding something, then you can try contacting the previous owner or developer.

4. Setup an Automated Backup Solution

Automated backups

Backups are your first layer of defense against any online mishap. The previous site owner may have their own backup plugins setup which may be storing backup files to one of their remote storage accounts.

You would want to set up your own backups. There are plenty of excellent WordPress backup plugins that you can choose from.

You need to make sure that you set up your backups on a remote location like Google Drive, Dropbox, etc.

You also need to create a complete WordPress backup before making any further changes to your website. This would help you revert back your website in case anything goes wrong.

5. Update User Roles and Permissions

If you are a developer working on a website, then you’ll need to work with your client to assign user roles and permissions to their staff.

Your goal should be to limit the administrator user role to people who actually need to perform admin tasks. These tasks include things like changing the theme, installing new plugins, or adding new users to the website.

If you are working on your own site, then you will need to review user access. Create a new user account for your authors if needed.

If there are older author and editor accounts that you will not be working with, then you need to edit those user accounts and change their email address and password. See our guide on how to disable user accounts without deleting them.

6. Run Security and Performance Scans

WordPress security

Next, you need to make sure that your new WordPress website is secure and performing well.

For security scans, we recommend using Sucuri. It is the best WordPress security plugin on the market and allows you to easily scan your website for malicious code, security threats, and vulnerabilities.

For performance, you can use any of the online website speed test tools. We recommend using IsItWP website speed test tool which is easy to use and gives you a detailed overview of your website speed.

It is also important that you check to see that caching is configured properly.

Many WordPress hosting companies like Bluehost and SiteGround offer built-in caching solutions that you can turn on from your hosting account. You can also use a WordPress caching plugin like WP Rocket to instantly improve your website speed.

If the site is not running a CDN, then you should consider using a CDN service. Although this is not required, we always recommend users to use a CDN. For more details, see our guide on why you should use CDN.

7. Check for Proper Tracking and SEO Integration

Track user analytics

If you have inherited the ownership of a new website, then old website owner may have transferred the Google Analytics property to you.

A lot of website owners simply add the Google Analytics code to their WordPress theme. This code disappears as soon as you update the theme or install a new one.

Make sure that the Google Analytics is properly installed on the website by either using MonsterInsights plugin or by adding the tracking code outside WordPress theme.

Similarly, they may have also transferred Google Search Console property to you as well.

Make sure that your site has XML Sitemaps in place for search console. You may also want to look at Google Search Console reports making sure there are no crawling issues or errors on the site.

8. Implement Version Control and/or Staging Site

Version control

If you’re a developer, then it is highly recommended that you implement version control for the site. It is fairly easy to use GitHub or BitBucket.

If you’re not a developer, then at the very least we recommend setting up a WordPress staging site which ensures that you have a stable testing environment before pushing things live. We recommend this step for all users.

For those who’re scared to set this up, then WP Engine a managed WordPress hosting provider offers a robust staging environment and git version control integration.

Other small business hosting providers like SiteGround and Bluehost are also offering staging features at affordable prices.

9. Run a Website Clean up

Cleanup WordPress

Now that you have familiarized yourself with the project, it is best to clean out all the unnecessary things. Delete all inactive themes and plugins. Delete all user accounts that are not needed.

Login to your WordPress database and optimize the database. Some bad plugins leave their database tables even after they’re deleted. If you notice any of those, then it is best to delete them. See our beginners guide to WordPress database management to safely optimize WordPress database.

10. Review Plugin Settings

Review plugin settings

A typical WordPress website uses several plugins that may still be referring to old owners. If you have taking the ownership of a website, then you would want to change that.

For example, the contact form plugin on the website may still be sending notifications to old email addresses. WordPress SEO plugin may still be pointing to previous owners’ social media profiles.

You can discover some of these things by looking at the website and testing all its features. You can also review plugin settings and update them if needed.

11. Upgrade Your Hosting Service

Web Hosting

After running the website speed test, if your website is still slow despite using caching, then it is time to upgrade your hosting.

If it is a client website, then your performance tests would help you convince the client for the move. If you own the website yourself, then you just need to choose the right move.

We recommend using SiteGround or Bluehost as they are one of the biggest hosting companies and officially recommended WordPress hosting provider.

If your website has outgrown shared hosting, then you may want to consider using a managed WordPress hosting service like WP Engine.

See our guide on how to move WordPress to a new host for step by step instructions to move your website.

We hope that this article offered some insights on what you should do when inheriting a WordPress site. You may also want to see our guide on the must have 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 11 Things You Should Do When Inheriting a WordPress Site appeared first on WPBeginner.


January 10, 2020 at 05:33PM

Thursday, January 9, 2020

How to Setup WooCommerce Conversion Tracking (Step by Step)

Do you want to track conversions on your WooCommerce store? Conversion tracking helps you understand what’s working on your online store and what needs more attention.

It helps you keep track of your best-performing products while also allowing you to see what’s stopping customers from completing a purchase.

In this guide, we’ll show you how to easily setup WooCommerce conversion tracking, step by step.

Setting up conversion tracking on your WooCommerce store

Why Set up WooCommerce Conversion Tracking?

WooCommerce makes it easy to sell anything online. However, once you have set up your WooCommerce store, you would need to learn what works on your website to grow your business.

You will need to learn which products are popular among your users, what they are viewing the most, how many users end up making a purchase, how are they finding your website, and more.

To get all this information, you need to set up conversion tracking on your WooCommerce store. This helps you get access to insights you need to make informed decisions about growing your business.

Conversion tracking helps you unlock key performance indicators including your eCommerce conversion rate, average order value, shopping cart abandonment, cost per acquisition, top referral sources, and more.

Apart from that you also get to learn about:

  • Shopping behavior – It tells you what products users are adding to carts, which products are being abandoned, what pages lead users to a successful purchase, and more.
  • Checkout behavior – Helps you view how users successfully complete a checkout.
  • Product performance – Tells you which products are bringing you most sales.
  • Product list performance – This report allows you to group products and see their performance as a list. This comes in handy when you want to see how different product categories are doing on your store.

That being said, let’s take a look at how to unlock all this useful information by setting up conversion tracking on your store.

Setting up WooCommerce Conversion Tracking

The easiest way to track WooCommerce conversions is by using Google Analytics. It shows you where your visitors are coming from and what they do when they are on your website.

The challenge is that setting up Google Analytics with WooCommerce requires a lot of custom coding, event tracking, etc. The good news is that there are plugins that can make it super easy to setup conversion tracking, and you can do it without writing any code.

For this tutorial, we will be using MonsterInsights. It is the best Google Analytics plugin for WooCommerce, and comes with an eCommerce addon that literally enables all the tracking within few clicks.

See our guide on how to install Google Analytics in WordPress for complete installation instructions.

Once you have installed Google Analytics using MonsterInsights, you can move on to setting up WooCommerce conversion tracking.

Step 1. Turn on Enhanced Ecommerce Tracking in Google Analytics

First, you need to enable enhanced eCommerce tracking in your Google Analytics account. Go to your Google Analytics dashboard and select your website.

From here, you need to click on the Admin button located at the bottom left corner of the screen.

Google analytics admin

Next, you need to click on the ‘Ecommerce settings’ option.

eCommerce settings

After that, you need to turn on ‘Enable eCommerce’ and ‘Enable Enhanced Commerce’ options.

Google Analytics will now turn on the eCommerce reporting feature for your account.

Step 2. Install eCommerce Addon in MonsterInsights

MonsterInsights comes with the eCommerce addon which helps you properly set up WooCommerce conversion tracking in Google Analytics.

First, you need to visit the Insights » Addons page to install and activate the eCommerce addon.

Ecommerce addon

Next, you need to head over to Insights » Settings page and switch to the eCommerce tab. From here, you need to turn on ‘Use Enhanced Ecommerce’ option.

Turn on eCommerce reporting in MonsterInsights

MonsterInsights will automatically detect your eCommerce software. Currently, it supports WooCommerce, Easy Digital Downloads, MemberPress, and LifterLMS.

That’s all, you have successfully setup WooCommerce conversion tracking on your store.

Viewing WooCommerce Conversion Reports

Now that you have setup conversion tracking on your WooCommerce store, you need to give Google Analytics some time to collect data.

After a while, you would be able to view your eCommerce reports in both MonsterInsights and Google Analytics.

Let’s start with your eCommerce reports in MonsterInsights.

Ecommerce Reporting in MonsterInsights

Log in to your WordPress site and go to Insights » Reports page and switch to the eCommerce tab.

MonsterInsights eCommerce reporting overview

At the top, you’ll get your most important conversion metrics including the conversion rate, transactions, revenue, and average order value.

Below that you will see a list of your top products with quantity, sale percentage, and total revenue.

Next, you’ll see your top conversion sources and shopper behavior reports including the number of times products were added and removed from the cart.

Add to cart and abandoned cart reports

That’s not all the data. You can dig down deeper with more advanced reports under your Google Analytics account.

WooCommerce Tracking in Google Analytics

Google Analytics provides even more in-depth reporting for your WooCommerce store.

Simply visit your Google Analytics dashboard and click on Conversions » Ecommerce from the left column.

Google Analytics eCommerce conversion reports

First, the overview report will provide you important numbers such as revenue, conversion rate, transactions, and average order value.

You can then switch to different reports for more in-depth analysis. For example, shopping behavior report will break down user sessions to add to cart, cart abandonment, and sessions that resulted in the checkout.

Shopping behavior

Boost Your WooCommerce Conversions and Increase Sales

Now that you have the data you needed to track your WooCommerce conversions, let’s take a look at how to improve your conversion rates and make more sales.

1. Improve Speed and Performance

According to a StrangeLoop case study, a 1 second delay in page load time can lead to 7% loss in conversions, 11% fewer page views, and 16% decrease in customer satisfaction.

Strangeloop case study

Slower websites create bad user experience which results in lower conversion rates. See our complete step by step guide to improve your WooCommerce speed and performance.

2. Recover Abandoned Cart Sales

On average 60 – 80% of people who “add to cart” do not end up buying. This means if you have an online store, then you’re losing out on a lot of sales.

Luckily, there are several best practices that help you recover some of those abandoned cart sales. See our tips on how to recover abandoned cart sales and increase your conversions.

3. Provide Users Alternatives

If users decide to leave your website without making a purchase, then there is very little chance that they will ever see your website again.

You need to provide users a chance to stay in touch even if they don’t end up making a purchase.

You can do this by creating an email newsletter for your WooCommerce store.

We recommend using Constant Contact or SendinBlue. Both of them are in our list of the best email marketing service for small businesses.

For more techniques, see our guide on how to convert WooCommerce visitors into customers.

We hope this article helped you setup WooCommerce conversion tracking on your eCommerce store. You may also want to see our list of the best WooCommerce plugins that you can install right away.

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 Setup WooCommerce Conversion Tracking (Step by Step) appeared first on WPBeginner.


January 09, 2020 at 04:03PM

Wednesday, January 8, 2020

How to Properly Run a Website Speed Test (8 Best Tools)

Do you want to run a website speed test? Most beginners don’t know where to begin and what to look for in their website speed test.

There are a ton of online website speed test tools that you can use. However, all of them present results in a way that it becomes incomprehensible for non-tech savvy users.

In this article, we’ll show you how to properly run a website speed test and the best tools to run your speed tests.

Running a website speed test with proper tools

Best Tools to Run a Website Speed Test

There are a lot of free and paid website speed test and performance monitoring tools that you can use. Each one of them has some really cool features that distinguish them.

You don’t need to just test your website with one tool. You can use multiple tools and run multiple tests to be thorough.

However, we recommend users to just use these tools to improve your website performance. Trying to achieve a perfect grade or score on these tools is often extremely difficult and quite impossible in most cases for real-world functioning websites.

Your goal should be to improve your page load speed for your users, so they can enjoy a faster and consistent user experience on your website.

Having said that, let’s take a look at the best tools to run a website speed test.

1. IsItWP Website Speed Test Tool

IsItWP Website Speed Test Tool

IsItWP’s free website speed test tool is the most beginner-friendly website speed testing tool. It allows you to quickly check your website performance, run multiple tests, and drill down the results to find out what’s slowing down your website.

You also get improvement suggestions neatly organized. You can click on each category to see the steps you can take to troubleshoot performance issues. The website also offers server uptime monitoring and other useful tools for website owners.

2. Pingdom

Pingdom

Pingdom is one of the most popular website performance monitoring tool. It is easy to use and allows you to select different geographical locations to run a test which is really handy.

The results are presented with an easy to understand overview, which is followed by the detailed report. You get performance improvement suggestions at the top and individual resources as they loaded.

3. Google Pagespeed Insights

Google Pagespeed insights

Google Pagespeed Insights is a website performance monitoring tool created by Google. It gives you website performance reports for both mobile and desktop views. You can switch between these reports and find some issues that are common among both reports and some that Google recommends being fixed in the mobile view.

You also get detailed recommendations for each issue, which is helpful for developers. However, the tool itself is a bit intimidating for beginners and non-developer users.

4. GTmetrix

GTmetrix

GTmetrix is another powerful website speed testing tool. It allows you to test your website using popular tools like pagespeed and YSlow. You can change geographic location and browser by creating an account.

It shows detailed reports with a brief summary of the results. You can switch between the two tools and view recommendations. Clicking on each recommendation will provide you with more details.

5. WebPageTest

WebPageTest

WebPageTest tool is another free online speed test tool that you can use. It is a bit more advanced than some other tools on our list. However, it does allow you to choose a browser and geographic location for your tests.

By default, it runs the test 3 times to get your website speed test results. It shows a detailed view of each result which you can click to expand and view the full report.

6. Load Impact

Load Impact

Load Impact is slightly different than other website speed test tools on this list. It allows you to see how your website slows down when more visitors arrive at the same time.

It is a paid service with a limited free test, which allows you to send 25 virtual users within 3 minutes. The paid version allows you to test larger traffic loads. This helps you test website speed test, while also testing how increased traffic affects your website.

7. Uptrends

Uptrends

Uptrends is another free website speed test tool. It allows you to select a geographic region, browser, and switch between mobile and desktop tests.

Results are simple and easy to understand as it also shows your Google pagespeed score in the summary. You can scroll down for details and comb through your resources to understand the performance issues.

8. Byte Check

Byte Check

Byte Check is another free website response time checker. It is made specifically to check TTFB (time to first byte) measurement, which is the time your website takes to deliver the first byte of data back to user’s browser. It is a highly effective way to test how faster your WordPress hosting server is.

You can use any of the tools mentioned above to check your website speed and performance. However, simply running the tests alone would not help you much.

You’ll need to learn how to run these tests properly and use the data to optimize your website.

How to Properly Run a Website Speed Test

Running website speed tests is not guaranteed to tell you exactly how your website performs.

You see, the internet is like a highway. Sometimes there is more traffic or congestion which may slow you down. Other times, everything is clear and you can run through it much quicker.

There are several other factors involved which would affect the quality and accuracy of your results. It is important to run these tests thoroughly before you start analyzing the data.

Let’s see how to properly run a website speed test to get more accurate results.

1. Run Multiple Tests

There are multiple factors that can affect your test. Even though most website speed test tools run over the cloud at the fastest internet speeds, each test would show you slightly different results.

The most important difference you will notice is the time it took to download the complete webpage. We recommend running at least 3 tests to get a more accurate picture.

Run multiple tests

You can then take out an average result and use it to decide whether or not your website needs improvement.

2. Test from Different Geographic Locations

If most of your customers visit your website from Asia, then testing your website speed using servers located in the USA would not be ideal.

The test results will show you a different user experience than what your actual users are feeling when they visit your website.

Geo locations

This is why you need to use Google Analytics to see where your users are coming from. After that, use that information to select a geographic region for your tests.

For example, if you learned that most of your website users are coming from Europe, then choosing a test server in Germany will give you the closest results.

If your website visitors are from all over the world, then you can run multiple tests to find out how your website performance varies for different regions.

3. Make Sure Your Website Caching is Turned On

Make sure that your website caching is turned on before running the tests. This would allow you to test website caching and how effective it is in improving the performance.

Now the problem is that some caching solutions only store cache when a user requests the page. This means cache takes some time to build and may expire by the time you run the tests.

This is why we recommend WP Rocket. It is the best WordPress caching plugin that lets you setup your WordPress cache with a few clicks and without learning technical stuff.

The best part is that it proactively builds your website cache, which significantly improves your website performance. See our guide on how to set up WordPress cache using WP Rocket for more details.

4. Check the Performance of Your Website Firewall / CDN Service

While WordPress caching plugins can do a lot, they definitely have their limitations. For example, it cannot block DDOS attacks and brute force attempts. It also does nothing against spambots which means your server resources get wasted a lot.

This is where you need Sucuri. It is the best WordPress firewall plugin which improves your server performance by blocking malicious requests.

Now, normally all your website files are served from the same server. You can improve this by adding a CDN service to your website. We recommend using MaxCDN (by StackPath), which is the best CDN solution for beginners.

A CDN service allows you to serve static website files like images, stylesheets, and scripts through a network of servers spread around the globe. This reduces the server load on your website, makes it load faster, and improves user experience for all your users.

Turning on your CDN service and the firewall will improve your test results significantly.

Understanding Website Speed Test Results

The most important parameter that you should look into is the time it takes your website to load.

Page load time

This is the parameter that affects your users the most. If your website takes longer to load, then users may decide to hit the back button, have a bad impression of your brand, and consider your website of low quality.

If your website is taking longer than 2 seconds to load, then look at the drill-down reports. Find out which resources are taking longer to load.

Usually, these are images, stylesheets, scripts loading from third-party websites, video embeds, and so on. You would want to make sure that those images are served from the cache or your CDN service.

Looking at individual resources

You would also want to pay attention to how long your server takes to respond to each request and how much time time it takes to deliver the first byte.

You would also want to make sure that browser compression (also called gzip compression) is working. This reduces the filesizes between your server and user’s browser by compressing them.

If your page has lots of images and videos, then you may want to consider deferred loading techniques also called lazy loading. This allows content to be loaded when a user scrolls down and only loads the content that is visible on the user’s screen.

As always, you definitely want to make sure your images are optimized for web by using an image compression tool.

The second important parameter you would want to test is the TTFB (time to first byte). If your web server is continuously showing a slower time to the first byte, then you may need to talk with your web hosting company.

All top WordPress hosting companies like Bluehost, SiteGround, and WP Engine have their own caching solutions. Turning on your host’s caching solution may significantly improve TTFB results.

We hope this article helped you learn how to properly run a website speed test and the best tools to run your tests. You may also want to follow our step by step WordPress speed and performance guide to boost your website speed.

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 Properly Run a Website Speed Test (8 Best Tools) appeared first on WPBeginner.


January 08, 2020 at 07:06PM

Tuesday, January 7, 2020

How to Use Dynamic Field Population in WordPress to Auto-Fill Forms

Do you want to use dynamic field population in WordPress to auto-fill forms on your website?

Dynamic field population allows you to automatically fill form fields based on user selection, query strings, or field type.

This makes your forms smart, saves users time, deliver a better user experience, and ultimately improves form completion rate.

In this article, we’ll show you how to use dynamic field population in WordPress to auto-fill forms.

Automatically fill form fields in WordPress with Dynamic field population

What is Dynamic Field Population?

Dynamic field population is a technique that allows website owners to automatically fill form fields based on user selection, form type, query strings, or conditional logic.

For example, an eCommerce store can create a form where product field in the form is dymanically populated using existing products in WooCommerce or any other eCommerce software.

Similarly, a real estate website can automatically populate listings, agents, property type fields in their appointment and lead generation forms.

Advanced users and developers can also use URL parameters to dynamically fill out form fields using smart links from email newsletter or other website interactions.

Having said that, let’s take a look at how to easily use the dynamic field population in WordPress.

How to Use Dynamic Field Population in WordPress

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

WPForms is the best WordPress contact form plugin on the market. It allows you to easily create online forms using a simple drag and drop tool.

It also comes with dynamic field population, conditional logic, and advanced form fields. Together, these features allow you to create smarter and interactive forms for your website.

Note: WPForms is co-founded by WPBeginner founder, Syed Balkhi.

Upon activating the plugin, you need to visit the WPForms » Settings page to enter your license key. You can find this information under your account on the WPForms website.

WPForms License key

Next, you need to visit WPForms » Add New to create your first form. You’ll be asked to provide a name for your form and then select a template to start.

Creating a new form

WPForms will now load your form with pre-selected fields. You can click to edit form fields or use drag and drop feature to move them up and down. You can also add and remove form fields with just a click.

Let’s add a new form field to populate it with dynamic choices.

You can add a dropdown, multiple-choice, or a checkbox field to your form to use dynamic choices options. Simply click on a field from the left column to add it to your form.

Add form fields

Next, click to edit the field and then expand the Advanced Optins menu from the left column.

Advanced options

From here, you need to select a dynamic option under Dynamic Choices. WPForms supports post types and taxonomies registered on your WordPress site. For the sake of this tutorial, we’ll select Products post type.

Dynamic choices

WPForms will now automatically load and display the fields in the form preview.

You can now save your form and exit the form builder.

To add the form in a WordPress post or page, simply edit the post or page where you want to add it.

On the post edit screen, add WPForms block to your post edit area. After that select the form you created earlier from the drop down menu.

Adding WPForms block in WordPress

You can now save your post or page and visit your website to see your form with dynamic field values in action.

WPForm preview

Automatically Fill Form Fields Using URL Parameters

WPForms also allows you to dynamically fill form fields using URL parameters. This allows you to create smart links that automatically pass down information to the form and fill it for your users to submit.

First, you need to create a new form or edit an existing form in WPForms. Once you are done creating your form, switch to the settings tab from the left column and then select the ‘General’ tab.

On this screen, you need to check the box to Enable dynamic field population.

Enable dynamic fields

You can now save your form and exit the form builder. Your form is now ready to dynamically populate form fields using URL parameters.

Creating Links with URL Parameters

WPForms accepts dynamic form fields passed through URL parameters in a specific format.

https://ift.tt/2SY0Ctb

Let’s break it down.

  • The part of the URL before the question mark ‘?’ is the URL of the page that has your form. For example, your contact form page.
  • ?wpf – Indicates the start of the WPForm form field parameters.
  • 15 – Is the ID of your form
  • _1 – Next you have the field ID
  • =value – = indicates the start of the value you want to pass to the form followed by the actual field value.

Here is an example of a URL where we are passing a product title as a text field to a feedback form.

https://example.com/contact/?wpf15_2=Vintage%20Flower%20Vase

Adding URL to your post

Notice, how we have used %20 to indicate spaces between words in the product title.

Finding Form and Field IDs in WPForms

In order to create URL parameters, you’ll need to know the form and field IDs. Here is how you can find these values.

Simply edit your form, and you will see the form ID in your browser’s address bar.

Finding form ID in WPForms

Similarly, in order to find the form field ID, you need to just click to edit it. You will see form field properties in the left column along with field ID at the top.

Finding the form field ID

Now, what if you wanted to pass a value to a subfield?

Simply add the subfield identifier after the field ID in your URL like this:

https://example.com/contact/?wpf15_3_city=london

For more details, see WPForms developer documentation which shows more examples to use different parameters for all types of form fields.

You can now use this feature in combination with your CRM software or email marketing service to send smart form links to your users. Most marketing platforms come with their own personalized MERGE tags that you can add in the smart URL to automatically fill personal information in the form.

You can also use dynamic field population feature with other form plugins like Formidable Forms, Gravity Forms, etc. However, we recommend using WPForms because it makes the whole process easy, and we know it well because we built the product.

We hope this article helped you learn how to use the dynamic field population in WordPress to auto-fill forms. You may also want to see our article on how to track and reduce form abandonment 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 Use Dynamic Field Population in WordPress to Auto-Fill Forms appeared first on WPBeginner.


January 07, 2020 at 06:57PM

How to Clean up Your WordPress Media Library (2 Easy Methods)

Do you want to clean up your WordPress media library? WordPress makes several copies of media files that up load, and over time this leads to a ton of files in storage that are not used anywhere on your website.

Cleaning up your WordPress media library saves disk space on your hosting server and reduces backup sizes (both of which will help you save cost).

In this article, we will show you how to easily clean up your WordPress media library step by step.

Cleaning up WordPress media library

Why Clean Up WordPress Media Library?

WordPress creates several copies of each image you upload to your website. WordPress themes and plugins may also request additional image sizes.

Apart from these image sizes, you may also end up uploading a ton of images that are not really used anywhere on your website.

These media files take up disk space on your WordPress hosting server. They also increase your WordPress backup sizes, which means it takes longer to backup, transfer, and restore your website.

If you have been running a WordPress website for some time, then you can benefit from cleaning up the WordPress media library.

That being said, let’s take a look at how to easily clean up the WordPress media library.

For this tutorial, we will cover two different plugins, and you can choose the one that looks easier.

Note: You will be cleaning up unused media files by deleting them forever. This action cannot be undone. Make sure that you have a complete WordPress backup in place before proceeding further.

Method 1. Clean up WordPress Media Library using Media Cleaner

For this method, we will be using the Media Cleaner plugin. It is available as a free plugin with a pro version available with some more features.

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

Upon activation, go to Media » Cleaner page to analyze your WordPress media library. The plugin may ask you to reset itself, during this process it will create a new table in your WordPress database to store data.

After that, you need to click on the Start Scan button to run the media analysis.

Media Cleaner

Media Cleaner will now look for files in your media library and inside your WordPress posts / pages. It will try and find the files that are in your media library but are not used on your website.

This may take a while depending on the size of your media library and the content you have.

Once finished, you’ll see a list of results. It will show you all the media files that are not currently in use on your website.

Media cleaner results

You can select the files that you don’t want to keep and delete them. You can also click on the Delete All button to instantly delete all unused media files.

Clean Up WordPress Media Library using Media Dedupper

For this method, we will be using the Media Dedupper plugin. It is also available as both a free and paid version.

However, we recommend using the pro version because it allows you to prevent deleting duplicate images in the WordPress gallery, Yoast SEO, WooCommerce, and more.

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

Upon activation, you need to visit Media » Manage Duplicates page and click on the Index Media button to analyze your media library.

Manage duplicates

The plugin will start analyzing your media library and will list all the duplicate images. You can then see if a duplicate image is used on your website.

After reviewing the files, you can select all files or specific duplicates. Next, simply select ‘Smart Delete’ from the Bulk actions drop-down menu and then click the Apply button.

Smart delete

Smart Delete feature will make sure that images that are being used on your website are not deleted. It will also merge duplicate images allowing you to reuse media files without reuploading the same file.

Optimizing Your Media Files

Now that you have taken care of the duplicate images on your website, the next step is to optimize your existing media files.

A lot of beginners, directly upload images from their phones and cameras. These high-quality images are often too big in filesize. They take up disk space, increase backup sizes, and affect WordPress speed and performance.

You can use a WordPress image compression plugin to automatically optimize your media files without losing quality. You can also use our tips on how to optimize images for web performance before you upload them on your site (this is much better).

We hope this article helped you learn how to clean up the WordPress media library. You may also want to see our guide on how to clean up your WordPress database.

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 Clean up Your WordPress Media Library (2 Easy Methods) appeared first on WPBeginner.


January 06, 2020 at 05:32PM