Skip Navigation

[Resolved] Access via PHP the post inside a loop in a view

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.

This topic contains 1 reply, has 1 voice.

Last updated by mauroM-3 15 hours, 57 minutes ago.

Author
Posts
#2789161

I need to pass a dynamic parameter to an external plugin. This plugin offers a php filter. I can get the post that contains the view using $post but I just don't know how to access the post_id or other relevant information for the post inside the view (currently in the loop). Is there a way to accomplish this?

#2789175

Answering my own question for the sake of future readers.
Use a do_shortcode. Like this: do_shortcode('[wpv-post-taxonomy type="place" format="slug"]');