Title: Bug with reading settings
Last modified: August 21, 2016

---

# Bug with reading settings

 *  [sophie30](https://wordpress.org/support/users/sophie30/)
 * (@sophie30)
 * [12 years ago](https://wordpress.org/support/topic/bug-with-reading-settings/)
 * Hi,
 * I have a trouble with your plugin, when I active it, it’s impossible to change
   the number of posts show at most on blog page (option we can change on reading
   settings).
    When I desactive the plugin, it works fine. I have the same problem
   with all themes installed on my website.
 * Thanks for your help.
 * [https://wordpress.org/plugins/wp-catalogue/](https://wordpress.org/plugins/wp-catalogue/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Maeve Lander](https://wordpress.org/support/users/enigmaweb/)
 * (@enigmaweb)
 * [12 years ago](https://wordpress.org/support/topic/bug-with-reading-settings/#post-4913473)
 * Please make sure you are using latest version of the plugin, because this pagination
   bug was fixed some time ago… Let me know how you go.
 * Thanks
 *  Thread Starter [sophie30](https://wordpress.org/support/users/sophie30/)
 * (@sophie30)
 * [12 years ago](https://wordpress.org/support/topic/bug-with-reading-settings/#post-4913491)
 * Hi,
 * It’s 1.7.1 version. Isn’t it the latest version ?
 *  Thread Starter [sophie30](https://wordpress.org/support/users/sophie30/)
 * (@sophie30)
 * [12 years ago](https://wordpress.org/support/topic/bug-with-reading-settings/#post-4913578)
 * I use the 1.7.1 version but the problem is here again…Can you help me please??
 * Thanks
 *  [enMovimiento](https://wordpress.org/support/users/enmovimiento/)
 * (@enmovimiento)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/bug-with-reading-settings/#post-4913629)
 * Hi. I can help you, I had the same problem days ago. The issue is that you can’t
   change the number of posts to show in the home page or in the category page when
   the plugin is activated. Here is the bug: For some reason in the WP Catalogue
   Settings, the number that you put in the field “pagination” (products per page)
   is linked to the max number of posts to show in your home page, I really don’t
   know why, but that is the problem.
    Make a try and put a number in **WP Catalogue
   Settings > pagination**, and you’ll see the same number in **Settings > Reading
   > Blog pages show at most**.. :S
 * **The “Temporary” Solution.**
    I don’t know about your coding skills, I don’t
   have too much knowledges about coding, but I found a temporary solution and it
   works for me, while the author find a better solution.
 * You just must to copy and paste the codes below at the end of functions.php file
   of your theme (tell me if you don’t know how to do it, it’s very easy).
 *     ```
       <?php
       add_action( 'pre_get_posts',  'change_posts_number_home_page'  );
       function change_posts_number_home_page( $query ) {
   
           if ( is_home() )
               $query->set( 'posts_per_page', ZZZZZ );
           return $query;
       }
       ?>
       <?php
       add_action( 'pre_get_posts',  'change_number_posts_per_category'  );
       function change_number_posts_per_category( $query ) {
   
           if ( !is_home() ) {
               $query->set( 'posts_per_page', XXXXX );
           return $query;
       }}
       ?>
       ```
   
 * (change the ZZZZZ for the number of posts that you want to show in your home 
   page, and XXXXX for the number of posts that you want to show in your categories
   pages).
 * I really hope that this can helph you, it works for me. Just look at my site 
   [enMovimiento](http://www.enmovimiento.com.ve), I’ve the catalogue at carreras
   > clubes

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Bug with reading settings’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-catalogue_adaa98.svg)
 * [WP Catalogue](https://wordpress.org/plugins/wp-catalogue/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-catalogue/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-catalogue/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-catalogue/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-catalogue/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-catalogue/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [enMovimiento](https://wordpress.org/support/users/enmovimiento/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/bug-with-reading-settings/#post-4913629)
 * Status: not resolved