Hope I am in the correct section of the forums…
To clarify how I understand taxonomies and terms:
I have a custom post type called ‘tours’
Assigned a taxonomy to the ‘tours’ called ‘genre’ and then within the genre I created what I know as ‘terms’?
Within the taxonomy ‘genre’ I have multiple terms – I got it right to display the custom post type with the terms assigned to the custom post type and when you click on the term (which is a link, it shows a new page with all the posts that has that terms assigned to them).
What I now want on the home page I have 4 links that I want to link to the same page that gets spit out when you click on a certain term for example:
Post has ‘transfers’ next to it when click on that link, meaning a specific term within the taxonomy you go to a new page. How do I get that link or how do I recreate that link – because wordpress creates that specific link with a loop I am running?
Any answers would be great I have tried:
<?php get_term_link( $term, $taxonomy ); ?>
I have a hunch it has to do with get_term_link but when I use it it spits out nothing? I am sure I need to do query before it but not sure what?
- The topic ‘getting link to specific term?’ is closed to new replies.