0
info187
I have a grid with posts that I'd like to place grids inside of. Last time I attempted this, it locked the site up from infinite loops. Is there any way of doing this now or of this getting resolved in the near future so that I can use it in this way?
2 Subscribers
Submit Answer
1 Answers
Best Answer
0
Welcome to our forum.
Yes, you can, but you need to exclude current post where the post grid shortcode you are displaying, Please see the options
Query Post > Exclude by post ID
https://imgur.com/a/SdExA1X
Otherwise it will create infinite loop,
Regards
Yes, you can exclude current post id by filter hook on query arguments, please see the example code here
https://pickplugins.com/documentation/post-grid/filter-hooks/filters-post_grid_filter_query_args/
Regards