Support » Plugins » Drop-down previous_posts_link/next_posts_link in global navigation

  • Hi Y’all,

    I have a question that has been plaguing me for some time now. I have a link to one category in my global navigation. You are then able to navigate between adjacent posts within this category. For now, the previous/next buttons reside in the main content window (above each single post) but the client would like them to appear in a drop-down directly below the category link in my global nav. I have something similar happening with parent/children pages but I cannot seem to figure out how to do it with the previous_posts_link/next_posts_link buttons. Any help please? My code is as follows:

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    Thanks so much in advance. Once I figure this one out, the project is all wound up!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Sorry, code link below:

    Ok, so I got the whole deal working! However, the drop-down menu stays, well, dropped-down while navigating my blog as well. Here is the kicker though: it only stays dropped for the first page of the blog. When I navigate to page 2, page 3, and so on, it disappears (as it should). Any ideas?!

    <?php wp_list_categories('include=11&title_li='); ?>
    	if ( in_category( 'collaborations' ) || is_single('collaborations')) { ?>
    	<ul class="child">
    	<?php previous_post_link_plus( array('link' => 'Previous', 'format' => '%link', 'loop' => true, 'in_same_cat' => true) ); ?> ||
    	<?php next_post_link_plus( array('link' => 'Next', 'format' => '%link', 'loop' => true, 'in_same_cat' => true) ); ?>
    	<?php } ?>

    PS…I am using the link plus plugin, thus the code “post_link_plus”

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Drop-down previous_posts_link/next_posts_link in global navigation’ is closed to new replies.