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.
I have created the many to many relationships. I want to display all the taxonomy (tags or category) of related post from other CPT.
For Eg. I have one CPT which is Organization, and second CPT is Announcements which has its own categories, the announcements are announced by org. now I want to display all the categories or tags in the front end under which each organization has made the announcements.
Can you please share the link to the example page, where you'd like to show the related taxonomies? Also, do you have any example of the format in which you'd like to show these announcements?
I'll be in a better position to suggest the next steps, accordingly.
my website is in local development
but for eg on this link hidden link
grant type: is coming from below mentioned related grant opportunities announced by this agency on the same page i want them to dynamically be shown.
To show the list of related taxonomies, you'll need to register a custom shortcode. Assuming that the relationship slug on your website is 'organization-announcement' and the taxonomy slug is 'announcement-category', the code will look like this:
Next, to show the related taxonomy items on the single organization post, you can call this shortcode like this:
[get_related_taxonomy_items]
Important Note: The custom code examples from our forum are shared to get you started in the right direction. You're welcome to adjust them as needed and for more personalized customization assistance, you can consider hiring a professional from our list of recommended contractors: https://toolset.com/contractors/
I have tried this method but got no results it's not returning anything. Just want to crosscheck by "relationship slug" you mean the relationship which I have created for organization and announcement and 'announcement-category' is taxonomy for announcements I have done this way but on front end Its not showing any category, it displays blank.
Thank you for sharing the website's duplicator package.
During troubleshooting, I noticed that the order of posts in the relationship "Research Fundings & Organizations" was reversed from my test website, which changes the 'parent' and 'child' roles of the post types.
( the post type on the left is the parent and the one on the right is the child )
I changed the line, reversing the 'parent' and 'child' roles:
And made sure that the custom code snippet was set as active ( screenshot: hidden link ) and it started working on the single "Funding Organizations" posts.
( screenshot: hidden link )