If this tutorial is not what you were looking for, you still have any questions, suggestions or concerns - feel free to let us know. Please help us to serve you better!

Your Name

Your Email

Your Message (required)

captcha

Featured templates

CherryFramework 3. How to change number of custom posts per page (based on page templates)

Our Support team is ready to present you a new tutorial that will show you how to change number of custom posts per page.

WordPress. How to change number of custom posts per page (based on page templates)

We will work with the testimonials page, it currently has 3 testimonials:

WordPress.How_to_change_number_of_custom_posts_per_page_1

  1. Find file wp-content/themes/CherryFramework/loop/loop-testi.php.

  2. Copy this file to themeXXXXX directory saving the folders structure. If there is no “loop” folder, create folder themeXXXXX/loop (where XXXXX is your theme number).

  3. Once the folder is created, copy the file to it:

    WordPress.How_to_change_number_of_custom_posts_per_page_2

  4. Open file wp-content/themes/themeXXXXX/loop/loop-testi.php for editing. Find the following part:

     
    		  $args = array( 
              'post_type' => 'testi', 
              'showposts' => 4, 
              'paged' => $paged, 
              'suppress_filters' => $suppress_filters 
               ); 
    		  
  5. Change the number of posts in this code and save your changes:

    WordPress.How_to_change_number_of_custom_posts_per_page_3

  6. Check the site, the page displays the number of posts you specified in the file:

    WordPress.How_to_change_number_of_custom_posts_per_page_4

Feel free to check the detailed video tutorial below:

WordPress. How to change number of custom posts per page (based on page templates)