How to list/display all products in a category

Discussion in 'Figero WordPress Theme' started by sworldconsult, Feb 12, 2013.

Thread Status:
Not open for further replies.
  1. sworldconsult

    sworldconsult Member

    Joined:
    Dec 28, 2012
    Messages:
    33
    Likes Received:
    0
    Hello,
    I am using categories to list and display products (using blog template as indicated in user guide). But when I click on a category only a maximum of 10 products are listed. The remaining products do not appear anywhere and there is not page numbering like this (<Prev 1 2 3 4 Next>) at the bottom to allow you to navigate between pages of the same category.
    How can this be resolved please?
    Thanks.
     
  2. Nitesh

    Nitesh Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    5,165
    Likes Received:
    160
    For this go to
    Settings > Reading and increase blog post display value as shown in image.

    [​IMG]
     
  3. sworldconsult

    sworldconsult Member

    Joined:
    Dec 28, 2012
    Messages:
    33
    Likes Received:
    0
    Hi, I have increased the value and all product are now displayed. However the page is now too long.
    Is there a way to set a limit in the number of product to be displayed on one page, but at the same time allowing the visitor to view the remaining products on the "Next" page or "Previous" page using a pagination menu like this: <Prev 1 2 3 4 Next> ?
     
  4. Harmeet

    Harmeet Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    360
    Likes Received:
    15
    Hello,

    You can do that with the help of plugin. You can get the plugin from "Wordpress.org".
     
  5. sworldconsult

    sworldconsult Member

    Joined:
    Dec 28, 2012
    Messages:
    33
    Likes Received:
    0
    I decided to go for the WP-Paginate plug-in and it does not appear to work.
    To use this plug-in with Figero theme, what are the exact previous_posts_link() and next_posts_link() code blocks that I should replace as indicated in the installation, and in which files please?
     
  6. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    After installing the WP-Paginate plugin,
    Go to blog.php present in your theme directory and replace current code

    Code:
    <span class="nav-previous">
                                        <?php next_posts_link(__('&larr; Older posts', 'figero')); ?>
                                    </span> <span class="nav-next">
                                <?php previous_posts_link(__('Newer posts &rarr;', 'figero')); ?>
                                    </span>
    with

    Code:
    <?php if(function_exists('wp_paginate')) {
        wp_paginate();
    } ?>
    Sending image for reference

    [​IMG]


    Use same process for single.php also.
     
  7. sworldconsult

    sworldconsult Member

    Joined:
    Dec 28, 2012
    Messages:
    33
    Likes Received:
    0
    Hi, I made the changes in both blog.php and single.php as suggested... but still not working. I still have the old pagination "<- Older Posts" and "Newer Posts ->" at the bottom of the page as well as at the bottom of the Posts.
     

    Attached Files:

  8. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Please provide the following information listed below.

    Thread Link:
    Your Website URL:
    WordPress Username:
    WordPress Password:

    Send this information on our email at [email protected]
     
  9. sworldconsult

    sworldconsult Member

    Joined:
    Dec 28, 2012
    Messages:
    33
    Likes Received:
    0
    Details sent to support email address.
     
  10. Gourav

    Gourav Support Staff

    Joined:
    Oct 19, 2012
    Messages:
    7,728
    Likes Received:
    207
    Support mail sent.
     
  11. sworldconsult

    sworldconsult Member

    Joined:
    Dec 28, 2012
    Messages:
    33
    Likes Received:
    0
    Thanks guys for fixing the issue.
     
Thread Status:
Not open for further replies.

Share This Page