- This topic has 7 replies, 2 voices, and was last updated 5 years, 5 months ago by Tom.
September 3, 2015 at 10:46 am #134117stardrive
I have used the threads:
to create a plugin that will allow WP-PageNavi plugin to replace the standard pagination. But, I cannot see your themes standard pagination or the WP-PageNavi plugin pagination anywhere in my site.
Please, where are the standard paginations replaced? Is it in Post Archives in in single post pages?
Also, can’t I add this code:
to functions.php without having to create just a simple plugin?
StyardriveSeptember 4, 2015 at 12:10 am #134204TomLead DeveloperLead Developer
You can add that code to your child functions.php – it will work the same as creating a simple plugin.
Once added, it should display on your website where pagination is needed.September 4, 2015 at 1:12 am #134217stardrive
Thank you, Tom.
I have deleted the plugin and added the code to my child functions.php file
StardriveSeptember 4, 2015 at 9:00 am #134321TomLead DeveloperLead DeveloperSeptember 4, 2015 at 9:17 am #134323stardrive
I am not really sure how to test whether it is working. I guess the WP-PageNavi control is supposed to display on a post archive page when the number of posts per page is exceeded. And, I don’t know the number of posts per page or where it is defined.
May be I am lazy here (LOL)
StardriveSeptember 4, 2015 at 9:56 am #134335TomLead DeveloperLead DeveloperSeptember 4, 2015 at 10:42 am #134363stardrive
Thank you Tom.
I have set the posts per page is in “Settings > Reading”.
I am styling the WP-pagenavi
StardriveSeptember 4, 2015 at 10:54 am #134369
- You must be logged in to reply to this topic.