• Resolved Will White

    (@willpcg)


    I’m working on a portfolio for our agency and am using the blog to feed projects across our WP based site. Our focus within our portfolio is on Web, Print, and Branding – so I’ve split the portfolio posts into those three categories.

    I’m using archives.php to format the three category pages all from the same file using template tags. The only tag I haven’t been able to find is one that I could use to display the other two categories.

    If a user clicks “Web” and is taken to the web category page listing the latest web projects, at the top right I’d like a link to “Print” and a link to “Branding”. If they click the link and go to “Print” – I want the tag to change the links to “Web” and “Branding” etc.

    Any ideas? Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You might want to take a look at setting up some specific category templates.

    you could get the category id of the current category and use it in the exclude parameter of wp_list_categories():

    <?php if(is_category()) :
    $catid = get_cat_ID( single_cat_title('',false) );
    echo '<ul>';
    wp_list_categories('Tiltle_li=&exclude='.$catid);
    echo '</ul>';
    endif; ?>
    Thread Starter Will White

    (@willpcg)

    Thanks alchymyth – worked like a charm.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display Links to *Other* Categories’ is closed to new replies.