WordPress.org

Ready to get started?Download WordPress

Forums

Ambrosite Next/Previous Post Link Plus
[resolved] How to show "none", when no next post is (3 posts)

  1. csigncsign
    Member
    Posted 1 year ago #

    Hi,

    my template code concerning this plugin is currently this:

    <?php previous_post_link_plus('in_same_cat=1&format=%link'); ?>
    and
    <?php next_post_link_plus('in_same_cat=1&format=%link'); ?>

    How can I modify it, so that it outputs the word "none", when no "next post" is available?

    Thanks.

    http://wordpress.org/extend/plugins/ambrosite-nextprevious-post-link-plus/

  2. ambrosite
    Member
    Plugin Author

    Posted 1 year ago #

    Like this:

    <?php if ( !previous_post_link_plus('in_same_cat=1&format=%link') ) {
    echo 'none';
    } ?>

  3. csigncsign
    Member
    Posted 1 year ago #

    wonderful, thanks you very much!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic