WordPress.org

Forums

WP-PageNavi
[resolved] Adding extra function on the last page of the post (1 post)

  1. kopis.dev
    Member
    Posted 2 years ago #

    Hi
    I want to combine your plugin that we already use with output of the WordPress Related Posts (by Zemanta) plugin, but with a small twist.
    I would like the related post on appear on the last page of the multipage post and not in every page of the post.
    At the moment the code on the single.php looks like so:

    ...
    <?php the_content(); ?>
    <div class="clear"></div>
    <?php wp_pagenavi( array( 'type' => 'multipart' ) ); ?>
    <?php wp_related_posts(); ?>
    ...

    Any ideas where the wp_related_posts function should go ?
    Thank you in advance
    Test post in test site
    http://blogs.creativeopinions.org/2014/06/11/lorem-ipsum/

    https://wordpress.org/plugins/wp-pagenavi/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.