Hey,
I have 2 post types: posts and lawyers.
I have a taxonomy of "working areas" which I appended to both post types. I did that, because I want to take the single-post template for posts and in each post display a list of lawyers with the same work area.
I created a view for lawyers, then added a filter for the work area with a shortcode attribute 'areafrompost", something like this:
and now i need to place this inside the posts single-post.php template (because the lame theme I'm using won't let me rebuild the content template with toolset - but that's another issue).
how would I do this?
i know how to render a simple view:
thx!
no errors - but i'm not getting the right result of the same taxonomy.
maybe i'm thinking wrong?
let's try to overview this again:
1. i have "posts" and "lawyers"
2. i have a taxonomy "work-areas" which is attached to both posts and lawyers
3. if a post has, for example, a "work area" of "environment" - I want it to display a list of lawyers under the same "work area" of "environment".
silly me.
i didn't need to use a shortcode attribute at all. instead, i had filtered the taxonomy according to "the same as the page where this View is shown" - and now it's working with the simple
silly me.
i didn't need to use a shortcode attribute at all. instead, i had filtered the taxonomy according to "the same as the page where this View is shown" - and now it's working with the simple
1
<?php echo render_view( array( 'name' => 'side-lawyers' ) );?>
but i've learned something new 🙂
thx shane!