adding support for WP-PageNavi

Community Forums Forums Design Tips and Tricks adding support for WP-PageNavi

This topic is: resolved

This topic contains 10 replies, has 6 voices, and was last updated by  JenniB 11 months, 2 weeks ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #25426

    jdingman
    Participant
    Post count: 31

    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?


    Learn more about Genesis.

    WordPress News, tips, and tricks – WPForce.com

    #25454

    Brian Bourn
    Participant
    Post count: 96

    Genesis already has similar numeric paging available on the the theme settings page.


    Bourn Creative | bourncreative.com | Twitter

    #25460

    jdingman
    Participant
    Post count: 31

    Hi 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.


    Learn more about Genesis.

    WordPress News, tips, and tricks – WPForce.com

    #25549

    jdingman
    Participant
    Post count: 31

    It’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.


    Learn more about Genesis.

    WordPress News, tips, and tricks – WPForce.com

    #25574

    Bill Murray
    Participant
    Post count: 572

    Are 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: http://wpperform.com or Twitter: @wpperform

    We do managed WordPress hosting.

    #25576

    jdingman
    Participant
    Post count: 31

    I 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.


    Learn more about Genesis.

    WordPress News, tips, and tricks – WPForce.com

    #34929

    Stuart
    Participant
    Post count: 2

    Hi 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?

    #34954

    Stuart
    Participant
    Post count: 2

    You know what . . . never mind. That sermon plugin is giving me such headaches I’m going to find something else.

    #55832

    JenniB
    Participant
    Post count: 18

    Hi,

    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">&larr;</span> Older posts', 'twentyten' ) ); ?></div>
    <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>

    with

    <?php wp_pagenavi(); ?>

    Does anyone know where to find this code in the genesis themes?

    Thanks,
    Jenn

    #56724

    Summer
    Participant
    Post count: 955

    If 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.


    #56807

    JenniB
    Participant
    Post count: 18

    Thanks! That’s exactly what I was looking for. :)

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.