Categories

Featured templates

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

Carey Burns November 21, 2014
Rating: 5.0/5. From 1 vote.
Please wait...

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)

Buy Wordpress Templates
This entry was posted in WordPress Tutorials and tagged custom, number, post, WordPress. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket