Is there a way to put a grid inside of a post

info187
May 03, 2018 11:24 PM 1 Answers General
Member Since Jan 2018
Subscribed Subscribe Not subscribe
Flag(0)
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
Please login to submit answer.

1 Answers
Sort By:
Best Answer
0
PickPlugins
May 03, 2018
Flag(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

View post on imgur.com

Otherwise it will create infinite loop,

Regards

 

info187
- May 04, 2018 02:25 AM
Flag (0)
0

Thank you, but can it automatically detect the post ID it's on, so that I don't have to manually enter every post ID since there will be many?

PickPlugins
- May 04, 2018 08:16 AM
Flag (0)
0

Yes, you can exclude current post id by filter hook on query arguments, please see the example code here
https://www.pickplugins.com/documentation/post-grid/filter-hooks/filters-post_grid_filter_query_args/

Regards

Sign in to Reply
Replying as Submit