Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi. I have the update 2.3.2 and I can’t select two or more category filters at the same time. If I select just one category the plugin works fine but when I select a second category (to show two categories at the same time) the results never shown

    example here:

    Hi. I have the update 2.3.2 and I can’t select two or more category filters at the same time. If I select just one category the plugin works fine but when I select a second category (to show two categories at the same time) the results never shown

    example here:

    Hi Rustarius. I have the same problem
    http://www.enmovimiento.com.ve/nuestros-patrocinantes/

    Thread Starter enMovimiento

    (@enmovimiento)

    Ok Maeve. Thanks for your quick reply

    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, I’ve the catalogue at carreras > clubes

    Thread Starter enMovimiento

    (@enmovimiento)

    Hello again.. The conflict between the WP Catalogue and my Theme was that the number of “posts per page” configurated in my theme options was linked with the “products per page” in the plugin. The conflict persist, but I got a solution, I put in my theme functions.php the code below and now I change the number of “posts per page” manually in that code.

    <?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', 12 );
    
        return $query;
    }
    ?>

    Now to change the “products per page” I do it with the WP Catalogue options. And to change the number of “posts per page” I do it with the code above.

    Thread Starter enMovimiento

    (@enmovimiento)

    I realize that the number of Products per page configurated in the WP Catalogue Settings, for some reason my Theme (Brezponsive by ThemePacific) use that value to show that same quantity of posts in my Home Page. What can I do? I really want to buy the Pro version

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