WordPress.org

Ready to get started?Download WordPress

Forums

Smarter Navigation
[resolved] issues with setting 1 post per page (2 posts)

  1. juergen82
    Member
    Posted 3 years ago #

    I appreciate this plugin. My articles have multiple
    categories. Initial category is set via GET ?cat=XX

    on archive.php i can see only the first post, links are empty, due
    to the fact that the code reads

    ....
    if ( !is_single() ){

    return false;
    }
    ...

    on single.php everything is okay...

    wrong usage ?

    please help

    juergen

  2. scribu
    Member
    Plugin Author

    Posted 3 years ago #

    Yes, wrong usage. previous_post_smart() replaces previous_post_link(), whereas on archive.php you should be using previous_posts_link().

    But why are you setting a single post per archive page anyway?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic