Our Blog

The latest post from us

2. Increase WordPress Memory Limit

The most common cause of this error is lack of memory available for WordPress to use. To fix this, you need to increase the amount of memory PHP can use on your server.

You can do this by adding the following code to your wp-config.php file.

define( ‘WP_MEMORY_LIMIT’, ‘256M’ );

This code increases the WordPress memory limit to 256MB, which would be enough to fix any memory limit issues.

3. Change Image Editor Library Used by WordPress

WordPress runs on PHP which uses two modules to handle images. These modules are called GD Library and Imagick. WordPress may use either one of them depending on which one available.

However, Imagick is known to often run into memory issues causing the http error during image uploads. To fix this, you can make the GD Library your default image editor.

You can do this by adding this code to your theme’s  functions.php file.

function wpb_image_editor_default_to_gd( $editors ) {
           $gd_editor = ‘WP_Image_Editor_GD’;
           $editors = array_diff( $editors, array( $gd_editor )
            array_unshift( $editors, $gd_editor );
            return $editors;
add_filter( ‘wp_image_editors’, ‘wpb_image_editor_default_to_gd’ );

After adding this code, you can retry uploading files using the media uploader. If this doesn’t solve the issue, then you can remove this code and try the methods below described in this article.

4. Using the .htaccess Method

This method allows you to control how Imagick uses server resources. Many shared hosting providers limit Imagick’s ability to use multiple threads for faster image processing. However, this would result in you seeing the http error when uploading images.

An easy fix is be to add the following code in your .htaccess file:


This code simply limits Imagick to use a single thread to process images.


Getting the HTTP error when uploading images to WordPress is not the best of feelings. We are, however, confident that one of the solutions above will fix this error once and for all.

Have you ever encountered the WordPress HTTP error before and fixed it with a different solution? If so, don’t hesitate to share your experiences in the comment section below!


Fix Image Upload Error

Are you facing image upload issues on your WordPress website? For most beginer, image upload errors can be quite confusing because they can appear without you doing anything different.

Failure to upload images is one of the most common image issues in WordPress. Luckily, it is quite easy to fix, and you can do it yourself.

In this article, we will show you how to easily fix the image upload issue in WordPress. We will also explain what causes this issue, and how you can prevent it in the future.

What Causes HTTP Error During Media Upload in WordPress?

There are a number of things that could lead to a HTTP error when you are trying to upload files using the WordPress media uploader. Basically, WordPress is unable to figure out the cause and that’s why it displays the generic “HTTP error” message.

The frustrating part is that this error message doesn’t give you any clue as to what may have caused it. This means that  you will have to try different solutions to find the cause and fix the error.

Now, let’s take a look at how to troubleshoot and fix the HTTP error during media upload in WordPress.

1. Make sure the HTTP Error is not temporary

This error is sometimes caused by unusual traffic and low server resources, which are automatically fixed on most WordPress hosting servers. First, you should wait a few minutes and then try uploading your image file again.

If that doesn’t work, then you may want to try uploading a different image file. If the other file  uploads successfully, then try saving your original image file to a smaller size and retry uploading.

Lastly, you may want to try saving the file to a different format. For example, change jpeg to png using an image software. After that, retry uploading the file.

If all these steps result in the HTTP error, then this means that the error is not caused by a temporary glitch and definitely needs your immediate attention.

click here to continue >>


Add Categories to custom Post Type

to a Custom Post Type

In this article, we will show you how to add categories to a custom post type in WordPress. We will also show you how to display multiple post types on your category archive page.

The Plugin Method

For our beginner level users, we recommend using Custom Post Type UI plugin to create custom post types.

First you need to install and activate the Custom Post Type Ui plugin. For more details, see our guide on WordPress plugin.

Upon installation, you need to visit CPT UI » Add/Edit Post Types to create a new custom post type or edit an existing custom post type you created with the plugin.

Scroll down on the Advanced Options to the bottom and there you will see the Built in Taxonomies option. Check the box next to categories and save your custom post type.

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

Manually Adding Categories to a Custom Post Type

If you created your custom post type by adding the code in your theme’s functions.php file, then you will have to modify the code to add category as supported taxonomy.

All you need to do is add this line in the arguments for your CPT.

‘taxonomies’ => array( ‘category’ ),

It is likely that you may already have this line in the existing code for your CPT with some other custom taxonomy in it. If you do, then you just need to add a comma after that and add category, like this:

‘taxonomies’ => array(‘topics’, ‘category’ ),

full example code

Here is a full example code where we have created a custom post type called books with support for built-in categories.

function custom_post_type() {

// Set UI labels for Custom Post Type

 $labels = array(
‘name’ => _x( ‘Books’, ‘Post Type General Name’, ‘twentythirteen’ ),
‘singular_name’ => _x( ‘Book’, ‘Post Type Singular Name’, ‘twentythirteen’ ),
‘menu_name’ => __( ‘Books’, ‘twentythirteen’ ),
‘parent_item_colon’ => __( ‘Parent Book’, ‘twentythirteen’ ),
‘all_items’ => __( ‘All Books’, ‘twentythirteen’ ),
‘view_item’ => __( ‘View Book’, ‘twentythirteen’ ),
‘add_new_item’ => __( ‘Add New Book’, ‘twentythirteen’ ),
‘add_new’ => __( ‘Add New’, ‘twentythirteen’ ),
‘edit_item’ => __( ‘Edit Book’, ‘twentythirteen’ ),
‘update_item’ => __( ‘Update Book’, ‘twentythirteen’ ),
‘search_items’ => __( ‘Search Book’, ‘twentythirteen’ ),
‘not_found’ => __( ‘Not Found’, ‘twentythirteen’ ),
‘not_found_in_trash’ => __( ‘Not found in Trash’, ‘twentythirteen’ ),


// Set other options for Custom Post Type

$args = array(
‘label’ => __( ‘books’, ‘twentythirteen’ ),
‘description’ => __( ‘Book news and reviews’, ‘twentythirteen’ ),
‘labels’ => $labels,
‘supports’ => array( ‘title’, ‘editor’, ‘excerpt’, ‘author’, ‘thumbnail’, ‘comments’, ‘revisions’, ‘custom-fields’, ),
‘hierarchical’ => false,
‘public’ => true,
‘show_ui’ => true,
‘show_in_menu’ => true,
‘show_in_nav_menus’ => true,
‘show_in_admin_bar’ => true,
‘menu_position’ => 5,
‘can_export’ => true,
‘has_archive’ => true,
‘exclude_from_search’ => false,
‘publicly_queryable’ => true,
‘capability_type’ => ‘page’,

// This is where we add taxonomies to our CPT

‘taxonomies’ => array( ‘category’ ),


// Registering your Custom Post Type

register_post_type( ‘books’, $args );


/* Hook into the ‘init’ action so that the function
* Containing our post type registration is not
* unnecessarily executed.

add_action( ‘init’, ‘custom_post_type’, 0 );

Don’t forget to replace books with the name of your own custom post type.

That’s all, we hope this article helped you add categories to your custom post type in WordPress


Submit XML Sitemap

Submit XML Sitemap

Now, it’s time to submit this to Google.

Google has two versions of the search console, the old Google Webmaster Tools and the new Google Search Console. We recommend using the new platform but steps for both are below.

Submit your sitemap to Google Webmaster Tools

  1. Sign in to Google Webmaster Tools.
  2. Select you website.
  3. In the left sidebar, click Crawl and then Sitemaps.
  4. Remove outdated or invalid sitemaps like sitemap.xml.
  5. Click the Add/ Test Sitemap button in the top right.
  6. Enter sitemap_index.xml into the text box that appears
  7. Click “Submit”.

Submit your sitemap to Google Search Console

  1. Sign in to Google Search Console.
  2. In the left sidebar, select your website.
  3. Click “Crawl”, then click “Sitemap”.
  4. If this’s first time you’ve ever created or submitted a sitemap, there will be nothing to show.
  5. Click “Add/ Test Sitemap.” A small box will appear with a place to add your sitemap URL. This is where you paste in the section of the URL from your sitemap: yoursitemap_index.xml
  6. Click “Submit”.

Search console will confirm your submission with the message, “Item submitted.” Go ahead and refresh the page. Your newly submitted sitemap will appear.

After a few minutes of processing, Google will provide a full report of how your sitemap is functioning.

That’s it! You’ve successfully generated an XML sitemap, submitted it to Google.


If you know nothing about sitemaps, and need to go through the whole process for the first time, no problem. Walking through the entire process from start to finish may take, at most, twenty minutes. But, the SEO benefits, however, will be enormous.

If you’ve never created an XML for your website, get one made today. You can do it and must utter that it turned out not to be very difficult.

Then, check back here to tell me the kind of SEO boost you’ve experienced!


Create an XML sitemap using Yoast

Yoast is one of the most popular SEO plugins for WordPress. Yoast makes it easy to create and submit an XML sitemap.

We’ll explain how to do it step by step.

Note: In the screenshots below, my WordPress admin might look a little bit different from yours. That shouldn’t keep you from being able to follow each step.

Log in to WordPress admin

First, we’ll to turn on Yoast’s advanced settings. In the left sidebar, it has a “Y” icon, and says “SEO”. Click the “Dashboard” option.

Create XML Sitemap

From the Dashboard, click “Features”. From the Features tab, find “Advanced settings pages”.

Switch the advanced settings to “enabled”. Then, scroll to the bottom and click “Save Changes”.

Great! Now that we’re turned on Yoast’s advanced features. You should see that the Yoast menu in the left sidebar has changed. There are a few additional options.

Create your XML sitemap

It’s very simple to do, but we’ll give you the instructions in a detailed way.

In the Yoast menu, click XML sitemaps. Here is where you setup your XML sitemap functionality.

The first tab “General”. You can leave the settings where they are.

User sitemap tab

If your WordPress site has multiple authors, and you want their author archive URLs to be indexed, you can enable this tab.

If you leave it disabled, it won’t harm the full functionality of the sitemap. We’ve left it disabled here, because the WordPress site we’re using has a single author.

If you’ve changed anything, click “save changes.”

Post Types tab

In this section, you’ll decide which types of posts should be indexed. In most cases, you’ll want to include everything  “in sitemap”. If you prefer to keep some of your content hidden or gated, then leave it off the sitemap.

Note sure what to do? Keep everything “In sitemap”.

Again, click “save changes”.

Excluded Posts tab

Do you have any posts that you know you want to keep off the sitemap? If so, add them here.

If you’ve added any posts to the exclusion list, click “save changes”.

Taxonomies tab

Most likely, you’ll keep the settings here the same. The more tabs you keep “in sitemap”, the fuller and more helpful your XML sitemap will be.

If you do make changes, be sure to click “save changes”.

Okay, your sitemap is ready! Let’s take a look at it.

Go back to the “General tab”

Under the heading “Your XML Sitemap”, click to view your XML sitemap.

That’s your brand new, shiny XML sitemap.


XML Sitemap

When it comes to SEO and marketing, I like quick and easy wins.

We want to share with you one of SEO techniques – creating an XML sitemap.

Even though an XML sitemap is considered a “technical” side of SEO, it’s not hard to make one. And, really, it’s not “technical” either.

In fact, in just a few minutes you could create a really good XML sitemap. You don’t have to know how to code. You just have to know how to click.

It’s free and easy. It’s relatively simple, and it can improve your SEO.

Ready to give it a try?

What is an XML sitemap?

In simple terms, it’s a list of a website’s URLs. That’s why it’s called a sitemap. It maps out how the website is structured and what the website includes. “XML” stands for “Extensible Markup Language”, a way of displaying information on websites.

Why do you need a Sitemap?

Search engines use crawlers to organize and index information on the web. An XML sitemap makes it easy for the crawler to see what’s on your website and index it. Once it does this, your website has a stronger likelihood of improving its rank quickly.

An XML sitemap works, essentially, as a table of contents for your website, allowing the crawler to get the essentials and index your site accordingly. This means that it allows to inform Search Engines about important pages on your website. That increases its visibility to Google, Bing, Yahoo, Baidu, Yandex etc, and ensures indexing of the web pages that might not be discovered otherwise. Those provide additional information about your site to searching engines, complementing their traditional method of crawling the World Wide Wed. Having an XML Sitemap will let Google, Yahoo, Microsoft’s Bing (MSN), and Ask have up-to-date information any time you upload a new map file to your server. Having an XML Sitemap will let Google, Yahoo, Microsoft’s Bing (MSN), and Ask have up-to-date information any time you upload a new map file to your server.

In General

XML Sitemaps are especially helpful. If you happen to have broken links on your website, our Sitemap Generator will scan those and inform you if any are dead, and which specific pages need to be fixed.


WordPress provides revision control on any pages or posts that you create which allow you to go back and see previous edits that you’ve written over in the database. While this can seem like a great thing to have, over toime it can lead to a lot of unessary overhead in your WordPress database.

In this article, we’re going to talk about WordPress revisions and how to disable or limit WordPress post revisions.

WordPress Revisions

Whenever you save a page or post in WordPress it creates a revision. This occurs in both drafts and already published posts that are updated. Revisions can be helpful in case you need to revert back to a previous version of your content. However, they can also hurt the performance of your WordPress site. On large site this can add up very quickly to thousands of rows in your database which are not necessarily needed. And the more rows you have the larger your database in size, which takes up storage space. Follow the steps below on how to delete, limit and disable WordPress revisions for faster performance.

Disable WordPress Revisions

In the steps below, we’ll show you how to completly turn off WordPress revisions for your pages and posts. We’ll be using the WP_POST_REVISIONS setting in your wp-config.php file to accomplish this.

1. Open your wp-config.php file. You will need to add some code. This is typically located in the root of your WordPress site directory and you can access it via FTP.

2. Enter in the following code towards the top of the wp-config.php file:

define(‘WP_POST_REVISIONS’, false);

Note: The code above needs to be inserted above the “ABSPATH” otherwise it won’t work.

It should look something like the following.

Disable WordPress Post Revisions

Limit WordPress Revision

Using the steps below I’ll show you how you can limit the number of revisions that WordPress will store per page or post. By default there is no limit on the amount of revisions so any limit you impose is going to help keep your WordPress database more efficient. Again we’ll be using the WP_POST_REVISIONS setting in your wp-config.php file to make these changes.

In this example we’re going to set our max amount of revisions per page or post to 3. So in total there will be 4 entries in the database per page or post, 1 for the original itself, and then the 3 latest revisions.

1. The steps are the same as disable revisions above. Open your wp-config.php file.

2. The code below needs to be inserted above the “ABSPATH” otherwise it won’t work.

define(‘WP_POST_REVISIONS’, 3);


Hopefully now your WordPress revision won’t be bloating your database.


Integrate Facebook with WordPress

Facebook’s never a bad idea to piggyback off what’s popular. We’ve already discussed some general ways to integrate Facebook with WordPress. But using Facebook for your comments section is another great way to connect the two.

Using the Facebook Comments plugin offers several advantages:

  • Users who are already signed into Facebook can immediately comment.
  • Comments are threaded to easily differentiate between comment chains.
  • No anonymous comments – can improve quality by removing anonymity.
  • Comments are sorted by number of likes.
  • Despite it’s many competitors, Facebook still remains the king when it comes to social media.

In this post, we’ll explore ways to integrate WordPress with Facebook. Let’s get started!

Wp Facebook Login for WordPress

This particular approach on how to integrate WordPress with Facebook is rather interesting. Facebook enables third-party apps to use their login feature, which means that users don’t need to create a new account with your website to log in. All they have to do is authorize the use of their Facebook account info.

To enable the function on your site, you’ll firstly need to obtain a Facebook App ID. Once you have it, follow rest of the steps outlined in the plugin’s official instructions. They’re quite simple, don’t fret!

WordPress Facebook Comments Plugin

Integrate Facebook with WordPress - plugin

Facebook and WordPress comment sections aren’t that different if you take them at face value. However, the former has two distinct advantages over the latter.

First of all, it enables people to comment using their existing accounts, which works well with the Facebook login method we discussed earlier. Secondly, by using Facebook comments, you also get access to their built-in Like function, which makes popular comments rise to the top. That, in turn, could help foster discussion around your posts.

To add this functionality, we recommend using the Facebook Comments WordPress plugin. Aside from enabling the implementation of Facebook comment sections, it also provides you with plenty of customization choices.

To set things up, you’ll need a Facebook App ID. Then you can follow the plugin’s official documentation to get everything else set up.


Integrating WordPress with Facebook can help you improve user experience on your website. It enables users to show how they fell about your content, interact with one other, and even help you promote your Facebook page in the process.


If you want to get your visitors engaged and coming back to your site, a vibrant comments section will go a long way towards achieving your goal. Today, we’ll show you some helpful WordPress comments plugins  which can completely replace the default WordPress commenting system.

WordPress Comments Plugins

The default WordPress comments system is adequate, but doesn’t offer much in the way of added functionality. The following plugins change that by adding some cool new features to your WordPress comments section.

1. Postmatic

One of the major hurdles you’ll encounter with comments sections is engagement. Readers may leave one comment after they finish a post, but they’re unlikely to come back and check that comments section at a later date. That means creating an ongoing discussion is a uphill battle.

By using the Postmatic plugin, you can let readers subscrible to comments via email.

And here’s the unique part – readers can respond to comments directly from their email inbox. No need to force them to come back to your site.

Your readers can also get notifications when you publish new posts and simirlarly comment on fresh posts directly from their email.

In short, Postmatic is a great way to boost engagement by making it easier for your readers to actually comment on your post

2. Postmatic Social Commenting 

If you want an easy way to authenticate users, you can let them fill in their comment information via their social profiles. Postmatic’s Social Commenting plugin lets users click on their social network of choice to automatically authenticate their comment.

Comments Plugins

It’s lightweight and doesn’t require creating actual WordPress accounts – all it does is place a cookie on the commenter to remember them.


If you want to completely overhaul your WordPress comments section ( instead of using WordPress comments plugins). You can turn to a third-party solution. There’s a number of them out there, but FaceBook is the most popular options. We will introduce it to you in the next article.


Control Comments

Control comment

Besides disabling comments altogether, you can also get  more control over comments by adjusting things in the Settings > Discussing panel. 

Let’s have a quick look through the options available:

  • Requiring moderator to approve the comment before it is published: this is not only catches bots and spam, but also helps to prevent a comment from appearing right away on the frontend of your site. It will appear on your dashboard in the comments queue where you’ll have to deal with it.
  • Blacklisting IP addresses, usernames or emails: blacklist known offenders, and even a partial match to the list will be blocked. You can also add a bit of code to .htaccess to block known malicious IPs.
  • Requiring the user to register: Can bring down both spam and the volumn of comments
  • Approving comment authors: Save time by approving comment authors. Subsequent comments will pass through easily.
  • Closing comments on older articles: Specify the number of days after which comments will be stopped. Spammers generally target older posts, so closing comments will cut down on spam.
  • Limiting links: this can thwart spammers who like to leave as many link as possible with their comment.
  • Be notified when you receive comments: If you keep yourself abreast with new comments, you can act swiftly on unwanted ones.

To conclude

Smaller websites can control comments simply by adjusting settings in WordPress or using a simple plugin. Setting the manual WordPress settings aside, you can also use plugins to make the job easier and give you a more “managed” control over comments, so to speak.

Overall, welcoming comments or disabling them – it’s more of an individual preference, weighing the advantages and disadvantages of comments on your blog. In next post, we’ll show you how to enhance the default comments section with some helpful WordPress comments plugin.