- This topic has 8 replies, 3 voices, and was last updated 3 years, 2 months ago by Tom.
March 5, 2018 at 5:15 am #511891Miroslav
I’m using the Pods Framework (pods.io) and would like to display my custom taxonomy terms inside a post’s content.
Unfortunately, their documentation is not great and my question in their support forum went unanswered.
Do you know how I could do that? Thanks!March 5, 2018 at 9:04 am #512130LeoStaffCustomer SupportMarch 5, 2018 at 10:11 am #512206Miroslav
Sure, I don’t expect you to support other peoples’ plugins. Just thought you might know the answer off the top of your head as Pods is rather popular and there are Pods related questions here on this forum.
Anyway, let me re-frame my question…
What’s the best way to reference custom taxonomy terms from within my posts (i.e. not within the template file, but within the post/page content)?
Thanks!March 5, 2018 at 4:38 pm #512431TomLead DeveloperLead Developer
I think the best way would be to create shortcodes. In your shortcodes you could add your PHP, which will call the custom fields.
Then you can use the shortcodes within your content to output them.March 5, 2018 at 11:45 pm #512626Miroslav
Thanks, Tom! I figured I need a shortcode (hence the title of this thread), but my understanding of PHP is only elementary.
Can you recommend a shortcode plugin that will execute PHP and work with WordPress tags? Basically, I need to call this in my post:
the_terms ( $post->ID, 'tool', '<ul><li>', '</li><li>', '</li></ul>' );March 6, 2018 at 12:03 am #512628Miroslav
I found this plugin, which seems to be working well:
Is there a better one you’d recommend?March 6, 2018 at 8:45 am #513046TomLead DeveloperLead DeveloperMarch 6, 2018 at 11:41 am #513223Miroslav
Great, thanks! Marking as resolved.March 6, 2018 at 5:30 pm #513422
- You must be logged in to reply to this topic.