Loop inside single post based on custom field values
I am trying to display a list of posts at the bottom of my single.php template, that are defined by a custom field.
The idea is to use a post’s custom field to set a few post “id”s that would be used to populate the list of posts.
I can get a loop working but its not using the post ids I defined. It seems to be ignoring them all together.
Could anyone give me a quick example of what my query should look like?
The custom field Key is “Products” and the values should be ids separated by commas.
Thanks in advance,
- The topic ‘Loop inside single post based on custom field values’ is closed to new replies.