I have created a post taxonomy in functions.php called 'leadership' and then tagged posts with three different labels. I have a team page on which I want to place three links (each slugged to a label in the taxonomy).
So that when the above word is clicked, the featured image for each post with that label becomes visible on the page.
So there's three basic elements (I think):
- Calling all the post data for the specified taxonomic label
- Generating a link that calls the featured images for those posts
- Having the content appear/disappear based on which link is clicked
While I've done #2 and #3 individually before, my head is swimming trying to figure out how to merge all the elements together.
Can someone give me some pointers, beyond the codex which I've read thru already? And maybe even some sample code - especially for #1 and #2?
And the dream... I'd love to implement it as two shortcodes - one for the link and one for the display - so that I can reuse it in other areas of the website.