WordPress.org

Ready to get started?Download WordPress

Forums

Category and Tag specific Link Navigation (2 posts)

  1. lizzmo
    Member
    Posted 2 years ago #

    Hi everyone,

    I'm attempting my first wordpress theme at the moment and its doing my head in!

    here is a plain html and css example of what I need to accomplish:
    http://lizbmorrison.net/occa_artists.html

    What you see are the OCCA_artist_artwork category posts, click on the first thumbnail and it takes you to Dinu Li's page (post category: OCCA_artwork, tag: Dinu Li, title: Dinu Li) which has a top secondary navigation.

    What I want to know is if I can include a "template part" that has links that will target:

    • one specific category
    • and one tag based on the title of the current post

    so I can have <?php get_template_part('artistnav'); ?> but it will adapt to the post it is in

    Let me know if this makes sense, if not I'll try and clarify.
    Any help would be greatly appreciated, thanks!

  2. lizzmo
    Member
    Posted 2 years ago #

    <?php
    $artist = get_tags();
    query_posts( 'cat=OCCA_artwork&tag=$artist' );
    ?>

    would something like that work at all? and how would I incorporate it in a link properly?

Topic Closed

This topic has been closed to new replies.

About this Topic