Community Forums › Forums › Archived Forums › Design Tips and Tricks › adding support for WP-PageNavi
Tagged: navigation, pagenavi
- This topic has 10 replies, 6 voices, and was last updated 10 years, 8 months ago by JenniB.
-
AuthorPosts
-
March 11, 2013 at 12:48 am #25426jdingmanMember
I'm looking at adding WP-PageNavi to my theme, Metro.
After doing some research on it, both on these forums and on Google, I couldn't find anything on how to use WP-PageNavi.
Does anyone have any thoughts on how I can use it?
Blogging at jonathan.vc
March 11, 2013 at 8:57 am #25454Brian BournMemberGenesis already has similar numeric paging available on the the theme settings page.
Bourn Creative | bourncreative.com | Twitter
March 11, 2013 at 10:15 am #25460jdingmanMemberHi Brian.
You're kinda missing the point of the thread. I'm trying to get PageNavi to work and override Genesis' built-in. I want more flexibility than that Genesis offers out of the box.
Blogging at jonathan.vc
March 11, 2013 at 6:36 pm #25549jdingmanMemberIt's also not shown in the stock demo here - http://demo.studiopress.com/metro/
Which makes me believe it didn't come with the theme to begin with.
Blogging at jonathan.vc
March 11, 2013 at 10:09 pm #25574Bill MurrayMemberAre you referring to numeric pagination as shown at the bottom here:
http://metro.wpperform.com/templates/blog/
?
If so, that does come standard with Genesis. In fact, as far as I know, Genesis does everything that WP-PageNavi does. Re-read Brian's comment. He was pointing you in the right direction.
Web: https://wpperform.com or Twitter: @wpperform
We do managed WordPress hosting.
March 11, 2013 at 10:10 pm #25576jdingmanMemberI asked Brian Gardner directly on Twitter today.
His response was that Metro has a custom homepage and the homepage does not come with pagination. Rather, it's available only at the category level.
I just like having pagination on the homepage, not just category pages. But that's where my disconnect was.
Thanks guys.
Blogging at jonathan.vc
April 12, 2013 at 12:43 am #34929StuartMemberHi guys, I need to ask about this too, but for perhaps a slightly different reason.
I am using the Metro theme for our church website, and for sermons want to use the Sermon Manager plugin. However, in order to use pagination with sermon manager (according to the plugin creator) I have to use WP-PageNavi. So I installed PageNavi, and it shows the navigation at the bottom of the page, but when I click on any of the pages, it just reloads to page 1.
According to the PageNavi developer (http://scribu.net/wordpress/wp-pagenavi/right-way-to-use-query_posts.html), “Most of the time, your theme is just using query_posts() wrong.” I submitted a ticket to Genesis support, but apparently "you would have to unhook for Genesis Nav, then rehook for the new navigation" and, "I'm very sorry, but we're not able to provide assistance with this through the support desk, as it involves customization to your theme's code."
Now, I realise that it's kinda dumb for a plugin to have to require the installation of another plugin simply for navigation to work. However, that's the way it is, and it's not exactly like sermon plugins are a dime a dozen, so I'd really like to know if there is any way for me to get PageNavi to work with Genesis.
Ideas?
April 12, 2013 at 5:41 am #34954StuartMemberYou know what . . . never mind. That sermon plugin is giving me such headaches I'm going to find something else.
August 12, 2013 at 12:22 pm #55832JenniBMemberHi,
I am also using the Metro theme and want to add the numeric navigation like in WP-PageNavi to the bottom of the blog template pages. Does anyone know how to do that?
It says to replace the code (in Twentyten theme it looks like below):
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div> <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div>
with
<?php wp_pagenavi(); ?>
Does anyone know where to find this code in the genesis themes?
Thanks,
JennAugust 15, 2013 at 7:25 pm #56724SummerMemberIf you're using Metro, all of the category and page templates should by default use the pagination if you enable it (worked for me).
In the Genesis Theme settings, go to Content Archives, change "Select Post Navigation Technique" to Numeric, and you're good.
The only way I found to get such navigation from the home page widgets was to use Featured Widget Amplified, and and enable the "Show Category Archive Link" to provide a link to click on to get to the regular category listings.
WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
Slice of SciFi | Writers, After DarkAugust 16, 2013 at 9:16 am #56807JenniBMemberThanks! That's exactly what I was looking for. 🙂
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.