• Resolved luciandavidescu

    (@luciandavidescu)


    First of all, wonderful plug-in, just what I have been looking for.

    Second, this is not a question, rather an answer for whomever may be looking for what I have been – that is custom styling on posts, so you can also add the date/time, author, category, tag or whatever custom element.

    Thanks to the return id option, one could use the plug-in like this:

    <?php
    $prev = previous_post_link_plus( array('return' => 'id') );
    query_posts('p='.$prev); while (have_posts()) : the_post();
    [...your stuff here...]
    endwhile; wp_reset_query();
    $next = next_post_link_plus( array('return' => 'id') );
    query_posts('p='.$next); while (have_posts()) : the_post();
    [...your stuff here...]
    endwhile; wp_reset_query();
    ?>

    P.S. I know I “should never use query_posts” but for me it’s good enough and I have yet to learn how to do it properly – any improvements are welcome.

    https://www.ads-software.com/plugins/ambrosite-nextprevious-post-link-plus/

Viewing 1 replies (of 1 total)
  • Plugin Author ambrosite

    (@ambrosite)

    Thanks for sharing your solution. That is certainly an interesting usage of the plugin; I’ve never seen it used quite that way before, but I figured people would be able to do all sorts of cool stuff with the ‘return’ parameter.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom styling’ is closed to new replies.