-
AuthorPosts
-
October 10, 2014 at 5:09 am #122864
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?
October 10, 2014 at 5:19 am #122870Sorry, 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 😛
October 10, 2014 at 11:36 am #123128Thanks 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.
October 10, 2014 at 9:03 pm #123355This reply has been marked as private.October 11, 2014 at 9:48 pm #123651Hi 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.phpAnd _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!
October 12, 2014 at 1:57 am #123677Hi 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.
October 12, 2014 at 2:06 am #123678Last question, _index.php only uses pagenavi(). In which file is the pagenavi() function declared?
October 13, 2014 at 2:46 am #124016Hi 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.
October 17, 2015 at 11:35 am #629301Hi 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.
October 17, 2015 at 12:11 pm #629340Hi @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!
October 17, 2015 at 12:25 pm #629345Thanks so much for clarifying 🙂
October 17, 2015 at 12:44 pm #629374 -
AuthorPosts