Support » Developing with WordPress » Help needed with php navigation

  • Resolved minademas


    I have worked on my pagination and now my single post pagination is off. Please see it here:

    As you can see, I can now see 2 styles of pagination, the article ones and below that the new navigation by pages.

    My code on navigation.php is:

    <?php if (is_single()) : ?>

    <div class=”navigation”>

    <span class=”previous”><?php previous_post_link(‘← %link’) ?></span>

    <span class=”next”><?php next_post_link(‘%link →’) ?></span>


    <div class=”clear whitespace”></div>

    <?php endif; ?>

    <?php if(class_exists(‘wp_pagination_plugin’)){
    $p = new wp_pagination_plugin;
    $p->nextLabel(”); // removing text ‘next’
    $p->prevLabel(”); // removing text ‘previous’
    $p->nextIcon(‘►’); // changing the icon ‘next’
    $p->prevIcon(‘◄’); // changing the previous ‘icon’

    How can I fix it so on the Single post I can only see the article navigation and NOT the pagination style? I know it has something to do with the php if, but I dont know how to put it correctly. Tks!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help needed with php navigation’ is closed to new replies.