How to create a loop related posts loop which removes current post

Hello

I created a post type called Solutions with Custom Post Type UI + ACF. There are 4 solutions. In each solution page I want to run a loop which shows the others solutions, obviously excluding the current post.

How to achieve that?

Thank you

Hi @xponent21,

Thanks for reaching out.
Regretfully, there is no such option to exclude the current post right now, but you can do that by using the Query String option of the looper. Your Query String will look like the following one.

post_type=solutions&posts_per_page=4&offset=0&ignore_sticky_posts=1&post__not_in={{dc:post:id}}

Please find the following thread which will be helpful on this.

Hope it helps.
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.