Forums

Categories/Single Post Navigation - Couple Questions (3 posts)

  1. Dirt2
    Member
    Posted 1 year ago #

    Hey guys, I am trying to see if there's a way to filter the bottom navigation, My theme is using this code below and I want to restrict the navigation to only the same category as the single post is on. I am using seperate post templates so it would make sense if people could only browse through related posts instead of random things.. Hope this makes sense, here's the code for that..

    <div id="nav-below" class="navigation">
    					<div class="nav-previous"><?php previous_post_link(__('&laquo; %link', 'blogtxt')) ?></div>
    					<div class="nav-next"><?php next_post_link(__('%link &raquo;', 'blogtxt')) ?></div>
    				</div>

    And then another thing is right now my categories, again for single post, display something like:
    View more Sweatshirts, Blue

    and I am trying to make it into something like
    View more Blue Sweatshirts
    or if not I want at least
    View more Sweatshirts
    because some have 2 subcategories..I cannot get the "the_category" tag to only show 1 category.. It's always multiple ones, I thought having the word single in it (for example: <?php the_category(' / ',',single,') ?>) but that didn't work either!

    Any help would be greatly appreciated.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

  3. Dirt2
    Member
    Posted 1 year ago #

    Thank you for that!

Topic Closed

This topic has been closed to new replies.

About this Topic