For example, if I have a custom post type that are 'Case Studies',
Firstly I need to be able to query the post types for a single specific case study, but then lets say there are a few variations of that single case study;
'Wales', 'England', 'Scotland'... . The correct one needs to be picked out depending on the category taxonomy for that post (of the same name).
When the specific case study and its variation has been found, let's say:
Case Study: Highest Mountain
Category (taxonomy) of custom post: Scotland
I need to then put this information into a html template, for example the output would be (data pulled from the custom post):
<h3>Highest Mountain</h3> <p>Here would be the content specific to Scotland...</p>
So when the shortcode is entered into the_content textarea by the user, all they have to input is e.g.
When registering a new post for 'Case Studies', the category taxonomy (variation) would be selected. So if the Category chosen for the post was 'Scotland', and the user had this country selected in their user profile - it would pull the variation of that case study (e.g. mountain) specific to Scotland.
All help much appreciated, I haven't written a custom shortcode before - so the more explanation the better - thanks!