Tell us what you are trying to do?
I have a view that displays a list of posts and I want to filter the view based on the taxonomy from the page where it is listed.
For example, the view returns a list of courses (MCAT, ACT, SAT, etc) and I want the view to filter automatically based on a specific taxonomy from the page where it is viewed (MCAT page shows MCAT courses, etc). The page and courses are different post types and use different taxonomies, but the taxonomy terms are the same (so an MCAT course uses 'course-location=mcat' and an MCAT page uses 'page-category=mcat')
The static view shortcode currently looks like this: [wpv-view name='favorite-school-courses' wpvcoursecategory="mcat"] and works perfectly - the issue is that I need to change the category for each page I publish.
The goal is to make the "mcat" portion dynamic according to a taxonomy on the page where the view is seen.
I believe I can nest 2 shortcodes in order to do this and ended up with the following:
[wpv-view name='favorite-school-courses' wpvcoursecategory='[wpv-post-taxonomy type="page-category" format="name"]
When tested, this returns all courses without filtering.
On their own, both pieces function correctly - [wpv-post-taxonomy type="page-category" format="name"] returns the current page taxonomy when tested solo but will not work when nested in the original view code.
Unfortunately, this didn't resolve it - the code is still returning courses unfiltered. Both pieces still work independently but don't filter any of the returned courses.
The screenshot shows the result - it's all courses sorted by date, hence the mixed categories.