Ticket for: Post Grid
0
Jerry Chan
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
1 Answers
Best Answer
0
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
Regards
Also this one
https://pickplugins.com/documentation/post-grid/filter-hooks/post_grid_layout_elements/