This support ticket is created Il y a 4 années et 5 mois. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
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!
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.