• 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:
    https://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!

Viewing 1 replies (of 1 total)
  • Thread Starter lizzmo

    (@lizzmo)

    <?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?

Viewing 1 replies (of 1 total)
  • The topic ‘Category and Tag specific Link Navigation’ is closed to new replies.