Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #122864

    Lincoln B
    Participant

    Hey guys,

    I need Pagination assistance.

    Firstly, loving X. It’s a great theme. Easy to use and read through.

    Created my own Child Theme with Renew. Yes I have followed your Customization Best Practices as well as WordPress’s.

    Everything is working fine. However, archive page is only listing Reading Settings max posts as could be expected.

    Where’s the function/code to paginate the Archive page?

    I’ve done a fairly extensive search and can’t figure it out.

    Please can you point me to the code I need to insert in my view?

    #122870

    Lincoln B
    Participant

    Sorry, I should have mentioned.

    I have created pagination using the paginate_links() function for now. However, it doesn’t look as sexy as when X is handling.

    paginate_links() just posts numbered list of links whereas on the posts archive page it’s a nice CSS formatted bulleted list. I want that!

    Please help me make my pagination X theme sexy 😛

    #123128

    Cousett
    Member

    Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL as stated on the forum entrance page. This is to ensure that we can provide you with a tailored answer to your situation. Once you have have provided us with your URL, we will be happy to assist you with everything.

    #123355

    Lincoln B
    Participant
    This reply has been marked as private.
    #123651

    Rad
    Moderator

    Hi Lincoln,

    X paging uses pagenavi(); which is already formatted with theme styles. You can find it at /wp-content/themes/x/framework/views/global/_index.php

    And _index.php is the template used for index, archive, and search pages. So you should be getting a nice paging on archive pages.

    If you’re using different template, then just add <?php pagenavi(); ?> at the end of <?php endwhile; ?>

    And your site isn’t accessable 🙂

    Cheers!

    #123677

    Lincoln B
    Participant

    Hi and thanks for your reply,

    The pagenavi(); function works great!

    As I said, the site is still in development and will be up later this week.

    I had taken down the maintenance page the day after posting the link. However, I didn’t receive a reply that day and couldn’t just leave it up for everyone to see yet.

    It should be up tomorrow if you want to look at it.

    #123678

    Lincoln B
    Participant

    Last question, _index.php only uses pagenavi(). In which file is the pagenavi() function declared?

    #124016

    Paul R
    Moderator

    Hi Lincoln,

    pagenavi function is located in x\framework\functions\global\pagination.php

    If you want to modify it.

    Copy the entire block of Pagination (entire pagenavi function )

    into your child theme’s functions.php then modify it there.

    Hope that helps.

    #629301

    strobley
    Participant

    Hi Themeco,

    Just reading this, am I correct in understanding X uses WP-PageNavi as what seems to be described in this thread?

    https://wordpress.org/plugins/wp-pagenavi/

    Assuming it does – there is no at all reason to install the WP-PageNavi plugin – correct?

    Also which WP-PageNavi version is used with X 4.1.1, the current – WP-PageNavi 2.88 ?

    Many thanks.

    #629340

    Thai
    Moderator

    Hi @strobley,

    The pagenavi() function is from X Theme. You can find it at x/framework/views/global/pagination.php. It’s totally different to WP-PageNavi plugin.

    Regards!

    #629345

    strobley
    Participant

    Thanks so much for clarifying 🙂

    #629374

    Thai
    Moderator

    You’re most welcome @strobley!