[Plugin: Shortcodes Pro] Get post ID
-
Hi Matt,
First off, great work on Shortcodes Pro, it is proving to be a very handy tool. I have just one question, in the custom PHP code section of the UI, can I get the post_id of the current post? I have tried using $content[‘ID’] but with no luck, is there some built in var with the post info that can be used? I need to do this as I am running an SQL query in my shortcode and the where clause needs to take in the current post ID. Hope all that makes sense.
Thanks again for such a cool plugin ??Kind regards,
James Roberts.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Plugin: Shortcodes Pro] Get post ID’ is closed to new replies.