Post Grid – Post IDs?

Support reply may delay for 3 weeks due to corona virus outbreak, please send us email to
Ticket for: Post Grid
Jerry Chan
Jun 06, 2020 03:41 AM 1 Answers
Member Since May 2020
Subscribed Subscribe Not subscribe

In Post Grid Pro, is there a way to access the post ID of a specific item for use in the Layout Editor? I'm trying to insert a shortcode in the Layout Editor, but the shortcode doesn't know what post to access, so I need to feed it a post ID.

Also, your forum's search feature doesn't work. Any term I type into the search field yields 0 results! Makes the forum really hard to navigate.

2 Subscribers
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
Jun 06, 2020

Welcome to our forum.

Did you tried on admin layout editor?

you can simple access to global $post variable

global $post;

$post_id = $post->ID


Jerry Chan
- Jun 11, 2020 05:44 AM
Flag (0)

Where in the layout editor would I enter this? If I use a CUSTOM TEXT element to use a shortcode, I can't insert PHP code in the custom text field to get post ID.

Sign in to Reply
Replying as Submit

Please use to upload your screenshot and share url here.
You can't upload any files or attachment to our server directly for security reason, you can use 3rd party website and share file url here. here is the top file sharing website you can use.

Please login to see your tickets