Category Archives: Tutorials

How to Create an Online Marketplace using WordPress

Do you want to create an online markeplace using WordPress? Online marketplace websites allow your users to buy and sell items by setting up their own mini stores within your eCommerce website. In this article, we will show you how to easily create an online marketplace using WordPress.

Building an online marketplace using WordPress

What Do You Need to Start an Online Marketplace using WordPress?

First you need to make sure that you are using the right website platform, and since you’re reading this article, you’re in the right place.

There are two types of WordPress available: WordPress.com vs WordPress.org. One is a limited blog hosting service while the other is known as the self-hosted WordPress which you’ve likely heard tons about. See the full comparison between WordPress.com vs WordPress.org.

We recommend using WordPress.org because it gives you the freedom and access to all WordPress features out of the box.

To start an online marketplace using self-hosted WordPress you will need the following:

  • A domain name (For example, wpbeginner.com)
  • Web hosting account (This is where your website’s files are stored)
  • SSL Certificate (To securely accept online payments)
  • WooCommerce (best WordPress eCommerce addon)
  • Online marketplace addon

The entire setup can take up to 40 minutes, and we will walk you through every step one by one.

Ready? Let’s get started.

Step 1. Setting up Your Ecommerce Platform

First step is to buy a domain name and a web hosting account. You don’t just need a web hosting, but you will need a service that specializes in WooCommerce hosting because this is the software that we will be using as our eCommerce platform.

Typically a domain name costs $14.99/year, web hosting 7.99/month, and SSL certificate 69.99/year.

Now this seems like a lot of money if you are just starting out.

Fortunately, Bluehost an officially recommended WordPress and WooCommerce hosting provider has agreed to offer our users free domain + SSL and discount on their cloud WordPress hosting.

Basically, you can get started for $6.95 / month.

→ Click Here to Claim This Exclusive Bluehost Offer ←

Once you have purchased hosting, then follow our step by step tutorial on how to start an online store for complete setup instructions.

You would now have a WordPress website with WooCommerce installed on it. However, by default WooCommerce assumes that your website is a single vendor website, so it is not possible for other users to add their own products to your website.

Let’s change this.

Step 2. Turn Your WooCommerce Site into an Online Marketplace

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

Upon activation, head over to WooCommerce » WC Vendors page to configure marketplace settings.

WC Vendors settings

On this screen, you need to set a commission rate that you will pay to each vendor. This rate could also be overridden for individual products or vendors.

The default settings on the page will work for most sites, but you can review and change them as needed.

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

Next, you need to switch to the products page. On this screen, you can choose which items to hide from vendors when they are adding a product.

Configure products settings for vendors

WC Vendors allows you to setup vendor capabilities and permissions. Head over to the Capabilities tab on the WC Vendors settings page.

WC Vendors capabilities

Next item on the WC Vendors settings page is to setup pages.

The plugin will automatically create pages to use for vendor dashboard, shop settings, and orders page. You can use a different page if you would like by using the shortcodes shown below each page.

Setting up vendor pages

One page that is not automatically created by the plugin is the terms page. These are the terms that a vendor has to agree to when submitting their application.

To create a terms page, you can simply create a new page in WordPress and add the terms and conditions in plain text describing what vendors can sell, how they will get paid, how to settle disputes, etc.

Once you have created a terms page, you can return back to this section and select your newly created page here.

The final item on WC Vendors settings page is the most important one, the Payments. By default, WC Vendors uses PayPal Adaptive Payments to pay vendors.

You will see a link to setup PayPal adaptive payments. After you have set it up, you can choose when you want to pay the vendors.

Scheduling payments

Now that WC Vendors is all set up, let’s setup WooCommerce for a multi-vendor environment.

Step 3. Enable Account Management in WooCommerce

First you need to visit WooCommerce » Settings page and click on the ‘Accounts’ tab. From here you need to check the boxes next to customer registration option.

Enable customer registration in WooCommerce

Don’t forget to save your changes.

Step 4. Setting Up Navigation Menus

Now that your multi-vendor marketplace setup is finished. It is time to make it easy for your users to find their way around your website.

To do that, you need to visit Appearance » Menus page. You will need to add your user account and checkout pages to the navigation menu.

Add to menu

Don’t forget to click on the ‘Save Menu’ button to store your changes. For more detailed instructions, see our guide on how to add navigation menus in WordPress.

If you don’t have a My Account page, then simply create a new page in WordPress and add the following shortcode in the post editor.

[woocommerce_my_account]

Step 5. Testing Your Marketplace Website

Your online marketplace website is now ready for testing. You can visit your website in a new browser window and create a new account by clicking on the My Account link at the top.

Testing your website

From here, both customers and vendors can login to their accounts as well as create a new account.

Register as vendor

Once users create a new account, you will recieve an email notification. If you are unable to recieve email notifications, then take a look at our guide on how to fix WordPress not sending email issue.

You can also view new vendor applications by visiting Users » All Users page. You will see all new vendor requests as ‘pending vendor’, and you can approve or deny applications by clicking the link under their username.

Approve vending vendors

Once approved, these vendors can log in to their accounts and add their products by visiting their vendor dashboard. They can also view their orders and sales reports.

Vendor dashboard

The first thing your vendors need to do is to setup their shop settings by clicking on ‘Store Settings’ link.

Shop settings

They will need to provide their PayPal email address to recieve payments. After that they can enter their shop name and description.

Once a vendor adds a new product, you will get a notification email and see an icon next to the products menu. You can then edit a product, approve it, or delete it.

Pending products

Your shop page will clearly show the products sold by vendor’s shop name.

Sold by vendor

We hope this article helped you learn how to create an online marketplace using WordPress. You may also want to see our pick of the best WooCommerce themes, best WooCommerce plugins, and the ultimate WordPress SEO guide for beginners.

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 Create an Online Marketplace using WordPress appeared first on WPBeginner.

How to Use Shortcodes in your WordPress Sidebar Widgets

Do you want to learn how to use shortcodes in your WordPress sidebar widgets? Shortcodes allow you to do add additional features in your WordPress post content and other areas of your website. In this article, we will show you how to use shortcodes in your WordPress sidebar widgets.

How to use shortcodes in WordPress sidebar widgets

What Are Shortcodes?

Shortcodes allow you to add dynamic items like contact form, tables, and others inside your WordPress content area.

You can also use shortcodes in your widgets to add these dynamic items in your sidebars and other widget-ready area.

Let’s take a look at how to easily add and use shortcodes in your WordPress sidebar widgets.

Method 1: Adding Shortcode in WordPress Sidebar Using Text Widget

First thing you need to do is drag & drop a Text widget to your WordPress sidebar on the Appearance » Widgets screen in your dashboard. After adding the widget, you can simply add your shortcode inside the text edit area of the widget.

Adding shortcode in Text widget

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

You can now visit your website and see the shortcode in action.

Shortcode displayed in sidebar widget

Method 2: Adding Shortcode in WordPress Using Custom HTML Widget

Sometimes you may want to add custom HTML code around your shortcode which may not work so well in the plain text widget. In that case, you will need to add your shortcode using the ‘Custom HTML’ widget.

By default, shortcodes are not allowed to be executed in a custom HTML widget. To change this, you will need to add the following code to your theme’s functions.php file or a site-specific plugin.

add_filter( 'widget_text', 'do_shortcode' );

After that, you can simply add a ‘Custom HTML’ widget to your sidebar and add your shortcode inside it.

Adding shortcode inside Custom HTML widget in WordPress

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

You can now visit your website to see your shortcode in action.

Shortcode added by Custom HTML widget

We hope this article helped you learn how to easily add shortcode to your WordPress sidebar widgets. You may also want to see these essential tips for using shortcodes 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 Shortcodes in your WordPress Sidebar Widgets appeared first on WPBeginner.

How to Display Popular Posts by Day, Week, and Month in WordPress

Do you want to display your most popular posts by day, week, month, or even all-time in WordPress?

Popular posts allow your visitors to quickly discover your top content, which helps you increase user engagement, pageviews, and conversions.

In this article, we will show you how to display popular posts by day, week, month, and all time in WordPress.

Display popular posts by day week month and all time in WordPress

Why Display Popular Posts in WordPress?

When you start a WordPress blog, you don’t have much content, which allows you to display selected posts in a sidebar widget manually.

However, as your website grows, you will notice that older articles on your website don’t get much exposure. By showcasing your top content, you allow new users to quickly discover the best articles on your website. This boosts user engagement on your website and increases your page views.

Now the problem is that if you are showing your all-time popular articles, then a very limited set of articles get repeated exposure. You can diversify it by displaying popular posts by day, week, or month as well.

Let’s take a look at how to easily display popular posts in WordPress by day, week, month, or all time.

Add Popular Posts by Day, Week, and Month in WordPress

The best way to show popular posts in WordPress is using MonsterInsights. It’s the best Analytics plugin for WordPress and helps you set up Google Analytics without editing code.

For this tutorial, we’ll use the MonsterInsights Pro version because it lets you automatically show top posts from Google Analytics.

There is also a MonsterInsights Lite version that’s free and also includes the Popular Posts feature, but does not connect to GA.

First, you’ll need to install and activate the MonsterInsights plugin. If you need help, then please see our guide on how to install a WordPress plugin.

Upon activation, you will be directed toward the MonsterInsights welcome screen. Go ahead and click the ‘Launch the Wizard’ button.

Launch setup wizard

After that, you can follow the onscreen instructions to configure Google Analytics. For more details, please see our guide on how to install Google Analytics in WordPress.

With MonsterInsights, you can also set up a Google Analytics 4 property. This is the new version of Analytics. The previous Universal Analytics version will sunset on July 1, 2023, and you won’t be able to track website data after this date. That’s why now is the best time to switch to Google Analytics 4 and protect your data.

Now that you’ve added Google Analytics to your website, the next step is to go to Insights » Popular Posts from your WordPress dashboard.

MonsterInsights lets you show your top articles within the content, in the sidebar as a widget, and display popular products if you have an online store.

For this tutorial, we’ll use ‘Inline Popular Posts’ and show featured articles within the content of other blog posts.

Popular post in MonsterInsights

The plugin comes with prebuilt themes, and you can see a preview of how your popular posts will appear on the website.

Once you’ve chosen a theme, simply scroll down to see more customization options. For instance, you can change the title color and size, edit the color of the label and background, and more.

Preview of popular post and customization options

Show Popular Posts by Day, Week, Month, and All Time in WordPress

Next, you’ll need to choose how the plugin will determine your popular posts. Let’s see how you can show posts by day, week, month, and all time.

Displaying Popular Posts by Day, Week, and All Time

In MonsterInsights, you can manually select which posts appear in the Popular Posts widget.

This is useful when displaying top content from a specific day or week. Plus, you can also show your all-time best articles anywhere on your website.

Simply select the ‘Curated’ option under Sort By section and then choose the articles you want to feature.

These could be your evergreen content, weekly announcement or news, trending topics from a particular day, and more.

Just begin typing the name of the posts you want to include, and then select them as their name pops up in the field. To continuously display your top posts of all time, you simply need to select them, and as long as ‘Curated’ is chosen, they will appear as popular posts.

Select curated articles to feature

However, if you want to display popular posts by the day or the week, you will have to manually change some of these curated posts so they stay fresh for your audience.

For instance, if you are featuring different WooCommerce products weekly, you will need to choose which posts are listed under ‘Curated’ each week.

Displaying Popular Posts by Month and All Time

In MonsterInsights, you get multiple options to automatically show popular posts by month and all time.

First, you can show your most commented pages from the last 30 days by selecting the ‘Comments’ option. The plugin will randomly rotate blog posts with the highest comments and show them in the popular post widget.

Sort your popular posts

Similarly, MonsterInsights also lets you automatically display popular posts based on social shares using the ‘SharedCount’ option.

It integrates with the SharedCount and helps you display your all-time most shared articles. This way, people can easily find content that’s driving social engagement.

Show popular posts by SharedCount

MonsterInsights also offers an option to show the top 5 posts from Google Analytics in the last 30 days. This way you can show your top-performing content from last month or all-time anywhere on your site.

First, you’ll need to select the ‘Curated’ option under the ‘Sort By’ section.

After that, you can enable the ‘Add Top 5 Posts from Google Analytics’ option under the Automated + Curated section.

Add top 5 posts automatically

To ensure that your data is being fetched from Google Analytics, click the ‘Test Automated Posts’ button under ‘Automated + Curated.’

A popup message will now appear, showing that the popular posts are being fetched correctly. You can click the ‘Close’ button.

Popular post data is correctly fetched

Do note that you’ll need to set up the ‘Post Type’ custom dimensions in MonsterInsights and Google Analytics to use the Automated + Curated feature.

Custom dimensions are additional metrics you can track in Google Analytics. For more details on custom dimensions and how to configure them, you can see our guides on how to enable author tracking in WordPress and the best time to publish a blog.

Insert Popular Posts to Your WordPress Website

Next, you’ll need to select how you’d like to insert the featured articles.

MonsterInsights offers 2 options, including automatic placement and manual placement.

If you select the ‘Automatic’ option, then you can decide after how many words you’d want the popular post widget to appear. There is also an option to include and exclude pages from display featured posts.

Choose placement option

When you’re done, simply click back to the top and click the ‘Save Changes’ button.

This way, your settings will be saved, and MonsterInsights will automatically display popular posts on your site.

Click the Save Changes Button to Store Your New Widget

On the other hand, you can also show popular posts in any blog post by adding the MonsterInsights block or using a shortcode.

First, add a new post or edit an existing one. Once you’re in the content editor, simply click the ‘+’ button and add the ‘Popular Posts’ block.

Select popular posts block

After that, you can see a preview of your featured articles in the content editor.

Once you’re satisfied with the widget’s appearance, you can go ahead and publish your article.

Preview your popular posts

We hope this article helped you display popular posts by day, week, month, and all time in WordPress. You may also want to see our guide on WordPress SEO and the best WooCommerce plugins.

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 Display Popular Posts by Day, Week, and Month in WordPress first appeared on WPBeginner.

How to Create a Micro-Job Website Like Fiverr with WordPress

Recently one of our readers asked if it was possible to create a micro-job website like Fiverr using WordPress? A micro-job website allows users to offer their services on your website. This allows you to charge money for job posting or get a commission when the job is finished. In this article, we will show you how to easily create a micro-job website like fiverr with WordPress without any coding knowledge.

Creatng a fiverr like micro-job site with WordPress

Staring a Micro-Job Website using WordPress

There are plenty of ways to make money online using WordPress. One of them is to build a job board with WordPress.

First you need to make sure is that you are using the right platform. To build a micro-job website, you will need a self-hosted WordPress.org website (see: WordPress.com vs WordPress.org for more details).

To start a WordPress site, you will need the following things:

  • A domain name (This will be your website’s address. For example, wpbeginner.com)
  • A WordPress hosting account (This is where your website’s files are stored)
  • SSL Certificate (You need this to accept online payments)
  • A Micro-Job addon and theme

The set up will take less than 40 minutes, and we will walk you through every step.

Normally a domain name costs $14.99 / year, SSL certificate $69.99 / year, and WordPress hosting would cost you $7.99 / month.

This sounds like a lot of money if you are just starting out.

Luckily, our friends at Bluehost are offering WPBeginner users a free domain, free SSL, and 60% off on WordPress hosting.

Basically, you can get started for as low as $2.75/month.

→ Click Here to Claim This Exclusive Bluehost Offer ←

Bluehost is one of the largest web hosting companies in the world and an officially recommended WordPress hosting provider.

Once you have purchased hosting, head over to our guide on how to make a website for step by step setup instructions.

That being said, now let’s see how to create a micro-job website with WordPress.

Setting up a Micro-Job Website with WordPress

First thing you need to do is install and activate the Microjob Engine theme. For detailed instructions, see our beginner’s guide on how to install a WordPress theme.

Once you have activated the theme, you will be redirected to the theme’s welcome page. On this screen, you will need to enter your license key which you can find under your EngineThemes’ account.

Enter license key

Next, you need to click on the ‘Install Demo’ button to import and setup a demo website. This will allow you to quickly setup the website to look exactly like the demo. You can then replace the content with your own.

MicrojobEngine comes with two skins to choose from. Once you have imported the demo data, you can select one of the skins to use on your website.

Select skin for your micro-job site

Your website is now set up just like the theme demo. You can visit your website to see it in action.

Selecting Payment Methods and Packages

Microjob Engine works with PayPal and 2Checkout out of the box. You can purchase addons to add other payment gateways like Authorize.net, PayU, PayStack, and Stripe.

You can setup your preferred payment gateway by visiting the Engine Settings » Payment Gateways page in your WordPress admin area.

Set up payment metods

Packages Explained

Microjob engine allows you to earn money in two ways:

  1. You can get comission when a job is finished
  2. You can sell packages allowing users to submit gigs for a certain amount.

Setting a payment barrier right from the beginning may prevent some users from signing up, but it will also help keep the spam away.

On the other hand, enabling free job posting will help you attract more freelancers to your website.

You can always change the settings once your website starts getting enough attention from both freelancers and employers.

To set up these options, you need to visit the Engine Settings » Theme Options page and click on the Payment Type tab.

Choose payment model

From here, you can enable or disable free posting. If you disable free posting, then you can add packages that freelancers can purchase to submit their offers.

Changing Branding and Website Content

Next, you would want to change the branding and content to make it your own. You can do this by going to Appearance » Customize page where you can change the theme settings with a live preview.

Customizing your theme

Take your time and go through the different options and adjust them to your liking. Don’t forget to click on the Publish button at the top to save your changes before exiting the customizer.

Testing Your Micro-Job Website

Microjob Engine Preview

Once you have set up your theme, it is time to thoroughly test every corner of your website.

Open your website in a new tab and try to use it like your users. Start by posting an ad, and then as an employer by hiring a service.

Each user on your website whether freelancer or employer will get their own profile page. Freelancer profiles will show their details, bio, recent gigs, and ratings.

User profiles

Each user will also be able to manage their account from a custom dashboard. This is where all their chats, messages, and jobs are displayed.

User account dashboard

You may also want to make sure that you and your users can receive email notifications from your website. Sometimes WordPress sites run into an email deliverability issues. You can check out our guide on how to fix WordPress not sending email issue.

Managing Your Micro-Job Site

Even though, your users (both freelancers and employers) wouldn’t need to visit the WordPress admin area, you will still manage all aspects of your website from WordPress dashboard.

You can see all orders placed on your micro-job site by visiting Engine Settings » Orders.

view all orders

You can also see all completed jobs that need to be verified by visting Jobs Verification page. From here you can approve, keep pending, decline, or verify a job status.

Once approved, the freelancer will be able to withdraw their money.

Managing job verification

To view all withdrawl activity, you need to visit Engine Settings » Money Withdrawl tab. On this page, you will see a list of freelancers who have withdrawn their earnings.

Money Widthdrawal

You can manage all site functions from the admin area of your WordPress site, and you can even peek into conversations between your users.

This helps make sure that freelancers are not insisting clients to use other unverifiable payment methods. It also helps during the dispute resolution between freelancers and employers.

More Resources

Microjob Engine is a powerful app theme with tons of cool features. However as your website grows, it can be quite heavy on your servers. To make sure your site performs well, see our guide on how to improve WordPress speed and performance.

Even then, as your site grows you will run out of shared hosting resources. In that case, you will need to upgrade to a managed WordPress hosting or VPS hosting.

We hope this article helped you learn how to easily create a micro-job site in WordPress. You may also want to see our guide on bringing more traffic to your new WordPress site.

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 Create a Micro-Job Website Like Fiverr with WordPress appeared first on WPBeginner.

How to Fix the WordPress 429 Too Many Requests Error

Are you seeing the 429 too many requests error on your WordPress site? This error can be extremely frustrating because it is hard to figure out what’s causing it. In this article, we will show you how to easily fix the WordPress 429 too many requests error.

How to fix WordPress 429 too many requests error

What Causes WordPress 429 Too Many Requests Error?

The most common reason for the 429 too many requests error is when a user, bot, or a script tries to make too many requests to the servers. It is a measure to prevent DDOS attacks on websites.

However if it is not properly configured, then it may end up preventing search engines or other APIs to run properly. This would cause unexpected behavior on your website.

Causes of 429 error in WordPress

Sometimes the error is caused when a script on your website is making too many requests to another website or service using an API. In that case, the API would respond back with a 429 error code.

That being said, let’s take a look at how to easily troubleshoot and fix 429 too many requests error in WordPress.

Fixing 429 Too Many Requests Error in WordPress

This error can be caused by a number of factors. We will show you multiple ways to troubleshoot and fix the 429 too many request error.

Find and Deactivate Misbehaving Plugin

The most common culprit of 429 error is usually a bad plugin on your website. Plugins can sometimes make subsequent requests to your website which may be rejected by the server with a 429 error code.

First thing you need to do is deactivate all WordPress plugins on your website. You can do this by visiting the plugins page in your WordPress admin area and selecting all plugins. After that, select ‘Deactivate’ under the bulk actions drop box and click apply.

Deactivate all WordPress plugins

If you are unable to access the WordPress admin area, then see our guide on how to deactivate all WordPress plugins via FTP.

Now check your website again to see if you can reproduce the 429 too many requests error again. If you can’t, then this means a plugin was causing this issue.

You can now turn on your plugins one by one and check your website after activating each plugin. This way you will be able to find the plugin causing the error.

Once you find the plugin causing the error, you can replace it with an alternative plugin or try reaching out to the plugin author to let them know about the error.

Switch to a Default WordPress Theme

More and more WordPress themes include functionality that normally comes with plugins. Such themes may also cause 429 error too many requests on your website.

The easiest way to find out is by switching to a default WordPress theme like Twenty Seventeen. If this resolves the 429 error issue, then you can find another WordPress theme or report the problem to the theme developer and they may be able to fix it.

Ask Your Hosting Provider

A lot of times, you will see a 429 too many requests error in third-party services that need access to your website. This could be search engines, crawlers, and other web apps.

If you are seeing the error in Google Search console or any third-party service, then most likely they are sending too many requests to your website. In that case, you need to ask your WordPress hosting provider to not block those requests.

We hope this article helped you fix the WordPress 429 error too many requests on your website. You may also want to see our list of most common WordPress errors and how to fix them.

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 Fix the WordPress 429 Too Many Requests Error appeared first on WPBeginner.

How to Fix the 413 Request Entity Too large Error in WordPress

Are you seeing the 413 Request entity too large error in WordPress? This error usually occurs when you are trying to upload a theme or plugin file in WordPress. In this article, we will show you how to easily fix the 413: request entity too large error in WordPress.

WordPress 413 error - Request entity too large

What Causes WordPress 413 Request Entity Too Large Error?

This error usually happens when you are trying to upload a file that exceeds the maximum file upload limit on your WordPress site.

Your web server will fail to upload the file, and you will see the 413 request entity too large error page.

413 request entity too large error example

Normally, most WordPress hosting companies have their servers configured, so that WordPress users can easily upload large images and other media.

However, sometimes this setting is not high enough to upload large theme or plugin files.

It would also stop you from uploading large files in media library. In that case, you will see a different message, clearly stating that the file size exceeds maximum allowed limit.

File size exceeds maximum upload size limit

That being said, let’s take a look at how to fix the the WordPress 413 request entity too large error.

Fixing 413 Request Entity Too Large Error in WordPress

There are multiple ways to fix the request entity too large error in WordPress. We will cover all these methods, and you can try the one that works best for you.

Method 1. Increase Upload File Size Limit via Functions File

Simply add the following code to your theme’s functions.php file or a site-specific plugin.

@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );

You can increase the values in upload_max_size and post_max_size to be more than the file you are trying to upload. You will also need to increase the max_execution_time to the time you think it would take for the file to upload. If you are unsure, then you can try doubling this value.

Method 2. Increase Upload File Size Limit via .htacces File

For this method, you will need to edit the .htaccess file and add the following code at the bottom:

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300

To learn more about increasing file upload size limit, see our guide on how to increase the maximum file upload size in WordPress.

Method 3. Manually Upload File via FTP

If the 413 error only occurs when you are uploading one particular file, then you may want to consider uploading the file manually via FTP.

If you are trying to upload a WordPress theme, then see our guide on how to install a WordPress theme and jump to the ‘Installing a WordPress theme using FTP’ section.

If you are trying to upload a plugin, then see our guide how to install a WordPress plugin and jump to ‘Manually install a WordPress plugin using FTP’ section.

For other files, see our guide on how to manually upload WordPress files using FTP.

We hope this article helped you learn how to fix the WordPress 413 request entity too large error. You may also want to see our list of the most common WordPress errors and how to fix them.

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 Fix the 413 Request Entity Too large Error in WordPress appeared first on WPBeginner.

How to Use Google Matched Content to Show Related Posts in WordPress

Did you know that you can use Google AdSense to also show related posts in WordPress? Matched Content is a Google AdSense feature that allows you to show related posts in WordPress while also make money by displaying ads alongside. In this article, we will show you how to easily use Google Matched Content to show related posts in WordPress.

Using Google Matched Content to show related posts in WordPress

What is Google AdSense Matched Content?

Google AdSense Matched Content is a native ad unit that allows you to show related posts from your website. You also have the option to monetize this unit with relevant ads that are shown alongside your related posts.

Here’s how the Matched Content unit looks like:

Google AdSense Matched Content Unit

You can customize the look and feel of the widget to match your website layout, and it is 100% responsive (mobile-friendly).

You might be wondering what are the Pros and Cons of using Google Matched Content unit?

Pros:

  • Less Server Resources – By default, WordPress related posts plugins are resource intensive. By using Matched Content widget from Google, you’re offloading the server load to them.
  • Better Related Posts Algorithm – Google’s sophisticated algorithm shows a post that’s more relevant to the person viewing.
  • Monetization – This is another way for you to make money from your blog.

Cons:

  • Powered by Logo – Google displays a powered by link in Matched Content Unit which some might find unattractive.

Now that you know what is Google Matched Content, let’s take a look at how to add it in your WordPress site.

Getting Started with Google Matched Content

First thing you will need to do is sign up with Google AdSense program if you haven’t already done so.

Google AdSense allows you to make money online from your WordPress blog. You can see our guide on how to properly add Google AdSense in WordPress for detailed instructions.

Google Matched Content feature is available for websites meeting a certain traffic requirement.

To see if your website meets the requirement, you need to visit your Google AdSense dashboard and click on Settings » My Sites from the left menu.

If you can see the ‘Matched Content’ option there, then you are good to go. Otherwise, your site or sites do not meet the requirements for matched content.

Matched Content in AdSense

That being said, let’s see how to easily add Google Matched Content to show related posts in WordPress.

Adding Google Matched Content in WordPress

First, you need to login to your Google AdSense account, click on My Ads from the left menu, and then click on the ‘New Ad’ button.

Creating a new ad unit in Google AdSense

Next, you need to select ‘Matched Content’ as your ad type.

Select Google Matched Content

On the next screen, you will see a preview of your Matched Content box with the ad settings. On the right hand side, you will see the option to customize the unit settings.

You will also see the option to monetize the matched content unit with ads, so you can make money. Of course, you can choose not to show ads and only use Matched Content for related posts.

Matched Content unit settings

Once you are done with the settings, simply click on the ‘Save and Get Code’ button.

You need to copy your ad code and paste it in a plain text editor like Notepad or TextEdit because you will need it in the next step.

Displaying Matched Content Related Posts in WordPress

The most effective place to display related posts is below your individual posts. Many WordPress themes already come with a widget area or sidebar that appears below post content and before comments area.

However, if your theme does not have a widget area below single post content, then you can add one by following our guide on how to easily add after post widget area in any WordPress theme.

After that, you need to visit Appearance » Widgets page and drag the ‘Custom HTML’ widget to the after post widget area. Inside the widget, you need to paste your Matched Content ad code that you copied in the previous step.

Add Matched Content code here

Don’t forget to click on the save button to store your widget settings. You can now visit your website to see the Matched Content related posts in action.

Matched Content preview

You can now visit your website to see the Matched Content box in action.

We hope this article helped you learn how to easily add Google Matched Content related posts in WordPress. If you are looking for a different WordPress related posts option, then you may want to check out our list of the best related posts plugins for 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 Google Matched Content to Show Related Posts in WordPress appeared first on WPBeginner.

How to Translate a WordPress Plugin in Your Language

Are you looking for a way to translate a WordPress plugin into your language?

By translating a WordPress plugin into another language, you will make it accessible to a broader audience. This allows users from different countries to use the plugin in their native languages.

In this article, we will show you how to easily translate a WordPress plugin into your language.

Translate a WordPress plugin in your language

Why Translate WordPress Plugins?

By default, WordPress is available in many languages and can be used to easily create a multilingual website using a plugin.

Similarly, most of the top WordPress plugins are also translation-ready. All you have to do is ask the plugin author if you can help by contributing translations in other languages.

By translating the plugin, you can increase its reach and create a larger user base. This can lead to more installs, feedback, and exposure for the plugin.

It can also help you establish yourself in the WordPress community and provide you with new networking opportunities with other developers, translators, and businesses in the industry.

You can even add the translation to your portfolio and demonstrate your skills and contributions to the WordPress community.

That being said, let’s take a look at how to easily translate WordPress plugins in your language. We will cover a few different methods in this post, and you can use the quick links below to jump to the method you want to use:

Method 1: Translate a WordPress Plugin Into Your Language for Everyone

If you want to translate a WordPress plugin in a way that helps other people use the plugin in their languages, then this method is for you.

WordPress.org currently hosts a web-based translation tool that allows anyone to contribute translations for plugins within the WordPress repository.

First, you will need to visit a plugin’s page on the WordPress.org website. Once you are there, just switch to the ‘Development’ tab at the top.

Here, you will see a link asking you to help translate the plugin into your language.

You can simply click on it to start contributing to the plugin translation.

Translate a WordPress plugin

However, if the link isn’t available, then you can visit the Translating WordPress website.

Once there, you will see a list of languages on the screen. From here, find your language and simply click the ‘Contribute Translation’ button under it.

Choose a language for translation

This will take you to a new screen, where you need to switch to the ‘Plugins’ tab.

After that, search for the plugin you want to translate using the search field and then click the ‘Translate Project’ button under it.

Click Translate Project button

This will direct you to the plugin translation page, where you must select the ‘Stable (latest release)’ sub-project from the left column.

If you want to translate the plugin’s development or readme files, then you can choose those sub-projects from the list instead.

Choose stable latest release option

Finally, you will be taken to a new page where you will see the original strings in one column and the translations in another.

Keep in mind that you will need to be logged in to your WordPress.org account to contribute translations.

From here, just click on the ‘Details’ link in the right column to open up the string you want to translate.

Translate plugin

Once you have done that, a text field will open where you can add a translation for the original string.

Once you are done, simply click the ‘Save’ button to submit your translations.

Method 2: Translate a WordPress Plugin for Your Own Website

If you only want to translate a WordPress plugin for your own website, then this method is for you.

First, you will need to install and activate the Loco Translate plugin. For detailed instructions, please see our beginner’s guide on how to install a WordPress plugin.

Upon activation, head over to the Loco Translate » Plugins page from the WordPress admin sidebar.

Here, you will see a list of plugins that are currently installed on your website. Just click on the plugin you want to translate.

Choose plugin to translate

This will take you to a new screen, where you will see a list of languages available for the plugin, along with the translation progress status for each language.

If the language you want to translate the plugin into is listed there, then simply click on the ‘Edit’ link under it.

If not, then you need to click the ‘New language’ button at the top.

Click New Language button

This will direct you to a new page where you can start by selecting a language.

From here, you can pick the ‘WordPress language’ option and then choose your language from the dropdown menu under it.

This option will automatically start using the language file if a user sets the WordPress admin area in this language.

Choose a translation language

If you don’t want to use a WordPress language, then you can select the ‘Custom Language’ option.

Next, you have to choose where you want to store the translation files. By default, Loco Translate will recommend saving the translation files in its own folder.

However, you can easily change that to save the files in WordPress languages or the plugin’s own languages folder.

Once you have done that, just click the ‘Start translating’ button to continue.

Choose translation file location

This will take you to a new screen, where you will see a text source section along with a translation field.

You can now start by adding a translation for the source string and then select the next string to translate.

Once you are done, don’t forget to click the ‘Save’ button at the top to store your settings.

Translate strings

Method 3: Translate a WordPress Plugin on Your Computer

If you want to translate a WordPress plugin on your computer using gettext translation apps, then this method is for you.

Keep in mind that you can also submit these translations to plugin authors so that they can include them in their plugins.

First, you need to download the plugin you want to translate on your computer. Next, double-click the plugin zip file to extract it.

Once you have done that, you need to open the plugin’s folder and then find and click on the ‘languages’ folder.

Choose the languages folder in the plugin folder

You should find a .pot file inside this folder. This is the translation template file that you will need to translate the plugin.

If the plugin doesn’t have a .pot file or a languages folder, then it is most likely not translation-ready.

In that case, you can contact the plugin author and ask if they have any plans for their plugin translation. For more details, please see our guide on how to ask for WordPress support and get it.

Once you have the .pot file, you are ready to translate the plugin into any language.

Locate plugin pot file

Next, you need to download and install the Poedit app on your computer, which is a free translation app for Mac and Windows.

After you have the app installed, go ahead and open it up. This will launch the Poedit home screen, where you must click the ‘Create New’ option.

Choose Create New option

You will now be directed to your computer’s file manager. From here, simply find and select the .pot file for the plugin that you want to translate.

Once you have done that, Poedit will ask you to choose a language for translation from the dropdown menu.

After that, click the ‘OK’ button to continue forward.

Choose a translation language in Poedit

Poedit will now show the translation interface, where you will see the list of strings available.

All you have to do is click on a string to select it and provide a translation in the ‘Translation’ field.

Translate plugin with Poedit

Once you are done translating the plugin, go to File » Save from the menu bar at the top and name your file after the language name and country code.

For example, if you are saving a French translation for the plugin, then you should save the file as ‘fr_FR’ for French and France.

save file

Poedit will save your translation as .po and .mo files.

Now, all you need to do is place these files in your plugin’s languages folder to start using the translated plugin on your website.

We hope this article helped you learn how to translate a WordPress plugin easily. You may also want to see our beginner’s guide on how to translate your WooCommerce store and our top picks for the best WordPress translation plugins.

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 Translate a WordPress Plugin in Your Language first appeared on WPBeginner.

How to Disable the Screen Options Button in WordPress

Do you want to disable the screen options button in WordPress? The screen options button allows you to show and hide elements on different pages through out the WordPress admin area. In this article, we will show you how to disable the screen options button in WordPress.

Disable screen options button in WordPress

Why You May Want to Disable Screen Options Button?

Screen Options button is located on the top right corner of different pages in your WordPress admin area. It allows each logged in user to show and hide items on various sections of the WordPress admin area.

Many WordPress site owners run multi-author blogs. With screen options button, their authors may accidentally uncheck something that is important.

For example, on the posts edit screen users can show / hide change author field, featured image section, and more.

Screen Options settings on post edit screen in WordPress

You can control the admin view for all users by disabling the screen options button. Let’s take a look at how to easily disable screen options button in WordPress.

Method 1: Hiding Screen Options Button Using Plugin

This method is easier and is recommended for all users.

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

Upon activation, you need to visit Settings » Adminimize page to configure plugin settings.

Adminimize Settings

You will see a list of sections. On this page, you need to click on the Global Options link, and it will take you down to a different section tabs. On that tab, you need to once again click on the Global Options tab to expand it.

Section tabs

This will expand the tab, and you will see a bunch of options to show and hide in your WordPress admin area. You need to check the boxes next to ‘Screen Options’.

Deactivate screen options button

The plugin allows you to disable it for all users as well as selected user roles.

Once you are done, don’t forget to click on the update options button to save your settings.

You can now visit any page in the admin area that showed Screen Options button like the dashboard or post/page edit screens, and you will notice that Screen Options button is now disabled.

Adminimize is a really powerful plugin that allows you to completely change the WordPress admin area by selectively showing or hiding different items. For more details, see our article on hiding unnecessary items from WordPress admin area with Adminimize.

Method 2: Manually Disable Screen Options Button in WordPress

This method requires you to add code to your WordPress files. If you haven’t done this before, then please take a look at our guide on how to copy and paste code in WordPress.

You will need to add the following code to your WordPress theme’s functions.php file or a site-specific plugin.

function wpb_remove_screen_options() { 
if(!current_user_can('manage_options')) {
return false;
}
return true; 
}
add_filter('screen_options_show_screen', 'wpb_remove_screen_options');

This code removes the screen options button for all users except administrators.

You can now switch to any other user account that is not an administrator. After that, visit your admin area Dashboard screen, and you will notice that Screen Options button has disappeared.

We hope this article helped you learn how to easily disable screen options button in WordPress. You may also want to see our mega list of most useful WordPress tips, tricks, and hacks for beginners.

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 Disable the Screen Options Button in WordPress appeared first on WPBeginner.

How to Fix WordPress Not Sending Email Issue

One of the most commonly asked questions on WPBeginner is how to fix WordPress not sending email problem. Many of our beginner level users ask us why their contact form plugin is not sending emails, or why they are not seeing any WordPress notifications. In this article, we will show you how to fix WordPress not sending email issue.

Why You Are Not Getting Emails from Your WordPress Site

The most common reason for this is that your WordPress hosting server is not configured to use PHP mail() function.

Even if they would allow it to work, many email service providers use a variety of tools to reduce email spam. These tools often try to detect that an email is originating from the location it claims to be originating from, and often emails sent by WordPress websites fail this test.

In such cases, when an email is sent out from your WordPress site, it never even makes into spam folder of the destination. This is why we recommend not using WordPress to send your email newsletter.

This is also the reason why that we recommend using SMTP to send emails in WordPress. SMTP (Simple Mail Transfer Protocol) is the industry standard for sending emails. Unlike PHP mail function, SMTP uses proper authentication which increases email deliverability.

There are many different SMTP services available, but in this article we will show only two that we recommend: MailGun and Gmail.

Sending Your WordPress Emails Using Mailgun

Mailgun is a popular email service provider. They allow website owners to send large amounts of emails with high deliverability.

As a dedicated email service provider, they spend a lot of money and time on making sure that your email reaches its destination.

While Mailgun is a paid service, it offers first 10,000 emails for free every month. That’s more than enough for most folks who just started their blog or website.

Here is how to setup your WordPress site to use Mailgun for sending emails.

First you need to signup on the Mailgun website. After signing up, you need to click on the “Add your domain” button.

Add your domain to Mailgun

You will now see an add domain page. Here you need to add a subdomain on your WordPress website’s domain name. For example, mail1.yourdomain.com.

You can create a new subdomain on your existing domain name by following the instructions below.

First, you need to visit the cPanel dashboard of your hosting account. Next, click on the subdomains icon under the domains section.

cPanel subdomains

On the next page, you need to enter your subdomain and then select your root domain from the drop down menu.

Enter your subdomain

After that click on the create button, and you will see a success message that your subdomain has been created.

You can now add this subdomain on Mailgun’s add domain page. After you add the domain, Mailgun will show you a few DNS records.

Mailgun DNS records

Switch back to your cPanel dashboard and then click on ‘Advanced DNS Zone Editor’.

DNS zone editor

You will be asked to select the domain for which you want to change the DNS records. Once you select your root domain name, you will see options to add new DNS records.

The first TXT entry will be your subdomain. You need to start by entering the subdomain in the Name field and then select TXT as record type. After that you need to add 14400 in TTL field and copy the value shown on Mailgun domain verification settings page into TXT Data field.

Adding DNS TXT record

Repeat the process to add the other TXT record.

Once you are done, switch back to the cPanel dashboard and click on the MX Entry icon.

MX Entry icon in cPanel

You will be asked to select your root domain, then scroll down to the bottom of the page. There you will see the option to add a new MX Entry.

Enter the priority and destination values and click on create new record button.

You have successfully added your domain to Mailgun. It will need to verify that your domain has proper DNS records. This may take a while because DNS records may take sometime to update.

You can check the status of your domain verification by visiting the Domains page in your Mailgun account.

Mailgun will show active status next to your domain name once it can verify the DNS changes you made.

Mailgun active domains

Once your domain is active, you can setup your WordPress site to start using Mailgun for sending emails.

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

Upon activation, you need to visit Settings » WP Mail SMTP to configure plugin settings. First you need to provide your sender email address and the name you want to use for the sender.

WP Mail SMTP settings

Next, you need to select Mailgun as your mailer and check the box next to set the return path to match the from email address.

Select Mailgun as your mailer

Lastly, you need to provide your Mailgun private API key and the mailgun sub-domain. Click on the links below each field to get this information from your Mailgun account.

API key and domain name

Don’t forget to click on save settings button to store your changes.

That’s all, you have successfully setup your WordPress site to send emails using Mailgun.

You can now click on the ‘Email Test’ tab on plugin’s settings page to send a test email and see if everything is working fine.

Email test

Sending WordPress Emails Using Gmail SMTP Servers

Another alternative is to send your WordPress emails is using Gmail SMTP servers. You can use any regular Gmail account with this method to send out your emails. However, your email deliverability will be much better if you are using Google Apps for Work with your custom email address. See our guide on how to setup a professional email address with Google Apps and Gmail.

Whether you use paid or free Gmail address, rest of the instructions are the same.

First, you will need to install and activate the WP Mail SMTP plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » WP Mail SMTP page to configure plugin settings. First you need to provide your gmail address in the ‘From Email’ field and the name you want to display as sender.

WP Mail SMTP settings for Gmail

Next, you need to scroll down to the mailer option. There are two ways you can use Gmail servers to send WordPress emails.

First, method is to use Gmail APIs to send emails. This method is recommended because it is more secure and reliable. Second method is to use your Gmail account’s SMTP server manually.

We will show you both methods, however we recommend that you use the first method.

Method 1: Setting up Gmail to Send WordPress Emails Using OAuth Protocol

First, you need to select Gmail as your mailer under WP Mail SMTP settings page. Check the box next to set the return path to be the same as sender, not checking this box will make bounced and failed messages to be lost forever.

Select Gmail as Mailer

Next, you will see the option to enter your Client ID, Client Secret, and a URL in ‘Authorized redirect URI’ field.

Creating an App and Generate API Keys for Gmail

To use Gmail’s APIs for sending WordPress emails, you need to create an app and generate an API key. To do that, visit the Google Developers Console website and create a new project.

Create Google Developer Console project

If you don’t see the blue button to create a project, then you can also click on ‘Select a project’ drop down and create a new project.

You’ll be asked to provide a name for your project. Give it a meaningful name so that next time you are here, you can easily recognize it.

Name your project

Click on the create button to continue.

Developer console will now create your project and take you to its dashboard. Google allow developers to access many of their APIs and services. Now that your project is setup, you need to enable the APIs that you will be needing.

Enable APIs

Click on Enable APIs and services button to continue.

This will bring you to the APIs library page. Type Gmail in the search box to quickly find Gmail API and click to select it.

Select Gmail API

You will now see an overview of the API and what it can do. Simply click on the ‘Enable’ button to continue.

Enable Gmail API

Now that your API is enabled, the next step is to create credentials that you can use in your WP Mail SMTP plugin settings.

Click on the create credentials button to continue.

Create credentials

On the next screen, you will need to select ‘Web browser JavaScript’ in ‘Where you’ll be calling the API from’ field. After that click on the ‘User Data’ option.

To continue, click on the ‘What credentials do I need?’ button.

You will now be asked to provide a name for your OAuth client name. You can enter ‘WP Mail SMTP’ here.

Step 2 of API credentials

Under JavaScript origins field, add your website’s domain name. Next, you need to copy and paste the authorized redirect URL from WP Mail SMTP plugin settings.

Click on ‘Create client ID’ button to continue.

Next, you need to enter a name for OAuth consent screen. You can put the plugin’s name here.

API credentials step 3

Click on the continue button and developer console will show your client ID. You can copy it and paste it in WP Mail SMTP plugin’s settings page. However, you will still need client secret key.

Getting client ID

Click on the Done button to move on.

You will now be taken to your project’s credentials page. You will see your recently created credentials listed there. Click on the edit button next to your credentials.

Edit credentials

This will bring you to edit credentials page where you will be able to see your client secret key. You need to copy and paste the key in your plugin’s settings page.

Client secret key

Return back to plugin’s settings page in your WordPress admin area. Now that you have both client ID and client secret keys, you need to click on the save settings button to continue.

Save Api keys

The plugin will now store your settings and reload the page. After that you need to scroll down to the bottom of the settings page and click on the ‘Allow plugin to send emails using your Google account’ button.

Allow plugin to connect

This will take you to your account on Google and you will be asked to give the website permission to send emails on your behalf.

Allow WP Mail SMTP to send emails

After that you will be redirected back to your website where you will see a success message.

You have successfully set up WordPress to use Gmail SMTP servers for sending emails using the OAuth protocol. You can now click on the ‘Email Test’ tab on plugin’s settings page to send a test email and see if everything is working fine.

Email test

Method 2: Setting Gmail to Send WordPress Emails Using SMTP

This method allows WP Mail SMTP to manually connect to Gmail’s SMTP servers for sending WordPress emails.

First, you need to visit Settings &raquo WP Mail SMTP page to configure the plugin settings.

Provide the Gmail address you want to use as From email field and your name as from name field.

Gmail SMTP

Select ‘Other SMTP’ as your mailer and check the box next to return path.

Scroll down to Other SMTP section to configure more settings.

Gmail SMTP settings for WP Mail SMTP

Here is how to fill out the plugin settings:

  • SMTP Host: smtp.gmail.com
  • SMTP Port: 465
  • Encryption: Use SSL encryption
  • Authentication: Turn on authentication
  • Username: Your complete Gmail address, e.g. [email protected] or [email protected]
  • Password: Password of your Gmail account

Click on the save changes button to store your settings.

That’s all, you have successfully setup WP Mail SMTP to use Gmail SMTP servers.

You can now click on the ‘Email Test’ tab on plugin’s settings page to send a test email and see if everything is working fine.

Email test

We hope this article helped you learn how to fix WordPress not sending email issue, You may also want to see our list of the most common WordPress errors and how to fix them.

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 Fix WordPress Not Sending Email Issue appeared first on WPBeginner.