Classifying posts by Category or Tag is sometimes not enough for you. You may need to use another way to create a series of posts. It will help readers to follow the series more easily. In this article, I will show you how to create a post series in a new way using the Meta Box plugin.

You absolutely can create a series for posts by Category or Tag. But this way has a few drawbacks as follows:

  • In some cases, you may need to create a large number of posts series. If you use categories, creating too many categories will make the posts structure and classification bulky and intricate;
  • If you set up the post permalink to include the category name, your links will be longer and more complicated with many types of links;
  • Category displays in an order which is from the most recent posts to older ones. However, most users need to read from the first post of the series. They’re going to have to scroll down to the bottom to find it. Using series will help you to reverse the post's order from the first to the last. It makes it easy to find posts.

For those reasons, I decided to create the post series in a different way. Using the Meta Box plugin help me to manipulate easily by creating a new taxonomy.

Now, let's see how we do it.

Before Getting Started

You need to install and activate the following two plugins on your WordPress website:

  • Meta Box plugin
  • MB Custom Taxonomy: is a free extension of the Meta Box plugin but requires separate installation. This plugin allows you to create and manage custom taxonomy with an intuitive interface. If you don't want to install a plugin, use this Taxonomy Generator online tool (free).

Both plugins are free. You can download and install them directly from the admin dashboard.

Install Meta Box and MB Custom Taxonomy plugins directly from the admin area
Install Meta Box and MB Custom Taxonomy plugins directly from the admin area

Step 1: Create a New Custom Taxonomy

As mentioned above, I'm going to create a new custom taxonomy so as to serve the creation of post series in which uses the above two MetaBox plugins.

First, in the admin dashboard, go to the menu Meta Box > Taxonomies > Add New.

Create a new Custom Taxonomy

In the edit page of taxonomy, you enter the basic information as follows:

Enter information for Taxonomy
Enter information for Taxonomy

In the Assign To Post Types section, select the post types of the posts that you want to set the series. In this example, I choose Post (i.e the default blog posts).

Remember to save this taxonomy and check it on the post-editing page. At this point, you will see an additional item named Series as shown below:

The Series section appears in the post-editing section
The Series section appears in the post-editing section

Now, if you want the post to belong of any series, just enter that series name. You can create a new series or choose an available one right here.

Step 2: Display Posts in the Series in the Frontend

For example, metabox.io has a post series about Custom Fields like this:

Display posts in series in the frontend

There are two parts on this page:

  1. Briefly display the list of articles with only their titles
  2. Display posts one by one with their titles, photos, and descriptions

All posts are displayed from the oldest to the newest. To do it, I manipulate one by one as follows:

Style the Page Displaying the Series

Create a file named taxonomy-{taxonomy}.php in your theme folder. In which, {taxonomy} is the slug of custom taxonomy that you have created above. Accordingly, my file will be named taxonomy-series.php.

Create a file in the theme folder
Create a file in the theme folder

This file will be used to specify how the series displays on the frontend. If you do the above, the page interface will display the following when you go to the list of posts in a certain series:

Style the page displaying the series

Next, copy the content of the archive.php file in the same folder of your theme into the file that you have just created (the taxonomy-{taxonomy}.php file).

Copy content from Archive.php file
Copy content from Archive.php file

At the same time, add the following code to the taxonomy-{taxonomy}.php file.

if ( have_posts() ) :
    echo ‘<ul class="series-list">’;
    while ( have_posts() ) : the_post();
        echo '<li><a href="'.get_the_permalink().'">'.get_the_title().'</a></li>';
    endwhile;
    echo ‘</ul>’;
endif;
Add code to the taxonomy file
Add code to the taxonomy file

Now, your series has displayed the style of the theme, but with the wrong order (the first posts first, the old posts display later). So next, you need to reverse this order.

The post series is displayed in the wrong order
The post series is displayed in the wrong order

Reverse the Order of Posts in the Series

Add the following code to the functions.php file in the theme folder.

add_action( 'pre_get_posts', 'series_post_order');
function series_post_order($query){
    if(taxonomy_exists('series')):
        $query->set( 'order', 'ASC' );
        $query->set( 'orderby', 'date' );
    endif;
};

Remember to change the above series parameter to the name of the taxonomy that you have just created.

Reorder the posts
Reorder the posts

At last, your post series page will display as follows:

Reverse the order of posts in the series

Final Words

With the MB Taxonomy of Meta Box, creating a series for posts is quite simple, right? However, there are several other ways to create a series of posts that you can refer to. This way is given to make you understand more about the application of Meta Box when it comes to reality.

By the way, let’s read more about the series of posts about the application of Meta Box in specific cases in practice.

Other case studies you might be interested in

  1. Create A Dynamic Landing Page in WordPress Using Custom Field
  2. Create a Filter to Find Hotels by Location
  3. Create an OTA Website Like Booking.com with Meta Box Plugin - P1: Create a Page to Introduce Hotel Rooms
  4. Create an OTA Website Like Booking.com with Meta Box Plugin - P2: Create Filters on the Archive Page
  5. Create an OTA Website Like Booking.com with Meta Box Plugin - P3: Create Filters for Single Hotel Pages
  6. Create Dynamic Favicon in WordPress using Meta Box plugin
  7. Create Posts Series in WordPress Using Meta Box
  8. Display The Latest Products Section - P2 - Using Meta Box and Elementor
  9. Display The Latest Products Section - P3 - Using Meta Box And Oxygen
  10. How to Add Custom Fields for WooCommerce - P2 - Using MB Views
  11. How to Add Custom Fields to Display Banners using Meta Box Plugin
  12. How to Add Guest Authors and Guest Posts - Using Meta Box
  13. How to Add Related Posts - Using Custom Fields
  14. How to Build a Hotel Booking Website Using Meta Box - P1
  15. How to Build a Hotel Booking Website Using Meta Box - P2 - Booking Page in Backend
  16. How to Build a Hotel Booking Website Using Meta Box - P4 - Booking Management Page
  17. How to Build a Hotel Booking Website Using Meta Box – P3 – Booking Page for Customer
  18. How to Create a Classified Ads Website using Meta Box
  19. How to Create a Custom 404 Page in WordPress - P1 - Using Meta Box and Elementor
  20. How to create a FAQs page - P5 - Using Meta Box and Breakdance
  21. How to Create a Product Page - P2 - Using Meta Box and Oxygen
  22. How to Create a Product Page - P3 - Using Meta Box and Bricks
  23. How to Create a Product Page - P4 - Using Meta Box and Elementor
  24. How to Create a Product Page - P5 - Using Meta Box and Gutenberg
  25. How to Create a Product Page - P6 -Using Meta Box and Breakdance
  26. How to Create a Product Page - P7 - Using Meta Box + Kadence
  27. How to Create a Product Page - P8 - Using Meta Box and Brizy
  28. How to Create a Product Page - P9 - Using Meta Box and Divi
  29. How to Create a Product Page using Meta Box Plugin
  30. How to Create a Recipe - P2 - Using Meta Box and Oxygen
  31. How to Create a Recipe - P3 - Using Meta Box and Elementor
  32. How to Create a Recipe - P4 - Using Meta Box and Bricks
  33. How to Create a Recipe - P5 - Using Meta Box and Zion
  34. How to Create a Recipe - P6 - Using Meta Box and Brizy
  35. How to Create a Recipe - P7 - Using Meta Box and Breakdance
  36. How to Create a Recipe - P8 - Using Meta Box and Kadence
  37. How to Create a Recipe - P9 - Using Meta Box and Divi
  38. How to Create a Recipe with Meta Box Plugin
  39. How to Create a Simple Listing - P2 - Using Meta Box and Bricks
  40. How to Create a Simple Listing - P3 - Using Meta Box and Breakdance
  41. How to Create a Simple Listing - P4 - Using Meta Box and Elementor
  42. How to Create a Team Members Page - P1- Using Meta Box and Elementor
  43. How to Create a Team Members Page - P2 - Using Meta Box and Oxygen
  44. How to Create a Team Members Page - P3 - Using Meta Box and Bricks
  45. How to Create a Team Members Page - P4 - Just Meta Box
  46. How to Create a Team Members Page - P6 - using Meta Box and Breakdance
  47. How to Create a Team Members Page - P7 - Using Meta Box and Kadence
  48. How to Create a Video Gallery Page - P2 - Using Meta Box + Bricks
  49. How to Create a Video Gallery Page - P3 - Using Meta Box and Breakdance
  50. How to Create a Video Gallery Page - P4 - Using Meta Box + Elementor
  51. How to Create a Video Gallery Page - P5 - Using MB Views
  52. How to Create a Video Gallery Page - P6 - Using Meta Box and Zion
  53. How to Create a Video Gallery Page Using Meta Box + Oxygen
  54. How to Create ACF Flexible Content Field with Meta Box
  55. How to Create an Auto-Updated Cheat Sheet in WordPress
  56. How to Create an FAQs Page - P1 - Using Meta Box and Elementor
  57. How to create an FAQs page - P2 - Using Meta Box and Oxygen
  58. How to create an FAQs page - P4 - Using Meta Box and Bricks
  59. How to Create an FAQs Page - P6 - Using MB Views
  60. How to Create an FAQs Page - P7 - Using Meta Box and Divi
  61. How to Create an FAQs Page - P8 - Using Meta Box and Kadence
  62. How to Create an FAQs Page - P9 - Using MB Blocks
  63. How to Create an FAQs Page -P3- Using Meta Box
  64. How to Create Buttons with Dynamic Link using Custom Fields
  65. How to Create Category Thumbnails & Featured Images Using Custom Fields
  66. How to Create Download and Preview Buttons - P1 - Using Meta Box and Bricks
  67. How to Create Download and Preview Buttons - P2 - Using Meta Box and Oxygen
  68. How to Create Download and Preview Buttons - P3 - Using MB Views
  69. How to Create Download Buttons in WordPress - Using Custom Fields
  70. How to Create Dynamic Landing Page in WordPress - P1 - Using Meta Box and Elementor
  71. How to Create Dynamic Landing Page in WordPress - P2 - Using Meta Box and Bricks
  72. How to Create Menus for Restaurants - P1 - Using Meta Box and Elementor
  73. How to Create Menus for Restaurants - P2- Using Meta Box and Bricks
  74. How to Create Notification Using Custom HTML Field
  75. How to Create Online Admission Form for School or University
  76. How to Create Online Reservation Form for Restaurants using Meta Box
  77. How to Create Relationships - P1 - Using Meta Box and Oxygen
  78. How to Create Relationships - P2 - Using Meta Box and Bricks
  79. How to Create Relationships - P3 - Using MB Views
  80. How to Create Relationships - P4 - Using Meta Box and Breakdance
  81. How to Create Taxonomy Thumbnails & Featured Images - P2 - Using Meta Box and Oxygen
  82. How to Create Taxonomy Thumbnails & Featured Images - P3 - Using Meta Box and Bricks
  83. How to Create Taxonomy Thumbnails & Featured Images - P4 - Using MB Views
  84. How to Create YouTube Video Timestamps on WordPress Website - P1 - Using MB Views
  85. How To Display All Listings On A Map With Meta Box
  86. How to Display Author Bio in WordPress - P1 - Using Meta Box and Bricks
  87. How to Display Author Bio in WordPress - P2 - Using MB Views
  88. How to Display Dynamic Banners in WordPress - P3 - Using MB Views
  89. How to Display Images from Cloneable Fields - P1 - with Gutenberg
  90. How to Display Images from Cloneable Fields - P2 - Using Meta Box and Oxygen
  91. How to Display Images from Cloneable Fields - P3 - with Elementor
  92. How to Display Images from Cloneable Fields - P4 - with Bricks
  93. How to Display Opening Hours for Restaurants - P1 - Using Meta Box + Gutenberg
  94. How to Display Opening Hours for Restaurants - P2 - Using Meta Box and Oxygen
  95. How to Display Product Variations - P1 - Using Meta Box and Gutenberg
  96. How to Display Product Variations - P2 - Using Meta Box and Oxygen
  97. How to Display Product Variations - P3 - Using Meta Box and Bricks
  98. How to Display the Dynamic Banners - P2 - Using Meta Box and Bricks
  99. How to Display The Latest Products - P5 - Using Meta Box and Bricks

1 thought on “Create Posts Series in WordPress Using Meta Box

  1. How can I query mb_taxonomy from string? like `author_name=admin&category_name=uncategorized&posts_per_page=2` (to make a query for taxonomy meta from OxygenBuilder repeater.)

Leave a Reply

Your email address will not be published. Required fields are marked *