WordPress

  • How to Create a Custom Post Types Archive Page in WordPress

    ,

    ·

    Placeholder Icon

    To create a custom post type archive page in WordPress, you need to create a new template file for your post type and use the wp_query class to query and display the posts in your post type. First, you need to create a new template file for your post type. This template file will be…

    Read More

  • How to List All Authors From Your Blog in WordPress

    ,

    ·

    Placeholder Icon

    To list all authors from your blog in WordPress, you can use the wp_list_authors() function. This function displays a list of all the users who have published posts on your WordPress site. Here is an example of how to use the wp_list_authors() function in a WordPress template file: In this example, the wp_list_authors() function is…

    Read More

  • How To Redirect 404 Pages To Homepage in WordPress

    ,

    ·

    Placeholder Icon

    404 pages, also known as “error pages,” are pages that are displayed by a web server when a user attempts to access a page that does not exist. This can happen for a number of reasons, such as if the user has mistyped the URL, if the page has been moved or deleted, or if…

    Read More

  • How to Add Scripts and Stylesheets in WordPress

    ,

    ·

    Placeholder Icon

    WordPress provides wp_enqueue_script and wp_enqueue_style function to add Scripts and Stylesheets in a systematic way. If you’re wondering why you should use these functions when you can simply load them in header or footer, here’s why – by adding JavaScripts that way, you increase the chance of conflicting with other scripts. Also, If we add our…

    Read More

  • How to Load jQuery in WordPress Footer

    ,

    ·

    Placeholder Icon

    By default, WordPress includes jQuery library with every installation. WordPress registers the jQuery library to load in header. But site performance wise, this is not always good. So, here we’ll see how we can load the jQuery in footer of our WordPress site. We can do this using a little snippet in our functions.php file. Let’s do…

    Read More

  • How To Add Multiple Custom Post Types Under One Menu Section In WordPress

    ,

    ·

    Placeholder Icon

    Custom Post Types are awesome! They make it insanely easy to add and manage contents. Whether you’re developing a theme or creating a WordPress site, there’s a very good chance that you’ll end up creating few custom post types. I always do. Recently, I developed a custom theme and as usual I added few custom…

    Read More

  • How To Fix: WordPress Memory Exhausted Error – Increase PHP Memory

    ,

    ·

    Placeholder Icon

    If you are seeing a “WordPress memory exhausted” error on your WordPress site, it means that your site is trying to use more memory than it is allowed to. This can happen for various reasons, such as running complex plugins or themes, or having a large number of users accessing your site at the same…

    Read More