Query if a ACF field = current post type ACF Field

I currently have a single layout, with an ACF field of author_tag, I want to pull in a custom post type of ‘insight’ if post_author acf field matches author_tag but I’m really strugglign to get the looper provider working for this.

Any help would be greatly appreciated.

Hello @LukeGS,

Thanks for writing to us.

In order to help you with your concerns, we need to check your settings. Please share your details in a secure note. Please provide the following details

  • WordPress Login URL
  • Admin-level username and password
  • Exact page URL

You can find the Secure Note button at the bottom of your posts

Thanks

Hello @LukeGS,

I have checked your settings and would suggest setting the Looper Provider to use a query string. You need to add a query string that pulls posts from the ‘insight’ custom post type where the ‘post_author’ meta field matches the current post’s ‘author_tag’ meta field value.

 post_type=insight&posts_per_page=3&meta_query%5B0%5D%5Bkey%5D=post_author&meta_query%5B0%5D%5Bvalue%5D={{dc:post:meta key="author_tag"}}&meta_query%5B0%5D%5Bcompare%5D=%3D 

Hope it helps
Thanks