• Howdy. I’m a rookie and have surely missed something here, but I cannot understand how to choose just one category in the “previous post” and “next post” part of this here code:

    <?php query_posts( ‘&cat=10’ ); ?>

    <?php /* Display navigation to next/previous pages when applicable */ ?>
    <?php if ( $wp_query->max_num_pages > 1 ) : ?>
    <div id=”nav-above” class=”navigation”>
    <div class=”nav-previous”><?php next_posts_link( __( ‘<span class=”meta-nav”>←</span> Older posts’, ‘ping’ ) ); ?></div>
    <div class=”nav-next”><?php previous_posts_link( __( ‘Newer posts <span class=”meta-nav”>→</span>’, ‘ping’ ) ); ?></div>
    </div><!– #nav-above –>
    <?php endif; ?>

    So….how do I get all those other post away from those buttons?

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter gammis

    (@gammis)

    oh! it was just a matter of a comma to much i se, thnx a WHOLE bunch graphicsgeek. you’ve been a true internatpaal ??

    Thread Starter gammis

    (@gammis)

    hmmm, so:

    <div class="nav-previous"><?php previous_post_link('%link', '&larr; %title', TRUE); ?></div>
    <div class="nav-next"><?php next_post_link('%link', '&rarr; %title', TRUE); ?></div>

    now, i get the left arrow where i want it, but I want the right arrow after the title, however, if i write:

    '%title; &rarr'

    it gets bad

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘just one postcategory in prev/next post’ is closed to new replies.