How to show related posts on a single layout?

I have a single layout for product pages. I want to pull in and display related post that match the product page tags once it’s created and published. I can pull in posts that match a specific tag. But i want the posts to show that match the tag of the product when it’s created. Each post has different tags, so i can’t choose a specific tag.

Sorry, I’m not sure I’m explaining it correctly. I would like to pull in regular blog posts, and other post types I’ve set up using ACF.

Hoping someone can steer me in the right direction.

Thanks!
Jon

Hello Jon,

Thanks for writing in! Based on the information you have given, you need to establish a relationship between the product and the post item. For example, you created and published a post item tagged with the same tag as your product A. Upon viewing the product A, the post item will automatically display. You can accomplish that by utilizing a Custom Looper that returns related post items. Perhaps these articles can help you understand Queries and how you can used to create a Custom Looper:

Best Regards.

Thanks for the information and links. I’ll check them out!

You are most welcome, Jonathan.