Passer la navigation

[Résolu] Access via PHP the post inside a loop in a view

This support ticket is created Il y a 1 year, 5 months. 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.

Ce sujet contient 1 reply, a 1 voix.

Dernière mise à jour par mauroM-3 Il y a 1 year, 5 months.

Auteur
Publications
#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"]');