Home Forums ACF PRO Post Object – Main Loop Exclude


Post Object – Main Loop Exclude

  • I am using the Post Object to highlight a single blog post but I would like to exclude that post from showing up in the main_query.

    How do I exclude that post id from showing up in the default loop?

    I found some stuff like $query->set( ‘post__not_in’, [3356]); but I want it to be dynamic.

    Thanks in advance for any feedback.

  • That depends on where your post object is saved (post, options, somewhere else?)

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.