Display Posts with a Custom Field
-
I’m trying to display all posts (pages, posts, and other custom post types) that have a certain custom field associated with it.
I’m using the following chunk of code but sadly, it won’t show any results despite the fact that I have the custom field in several posts. Here is the code:
[Code moderated as per the Forum Rules. Please use the pastebin]
Can anyone spot out the error? Am I doing something wrong here?
The topic ‘Display Posts with a Custom Field’ is closed to new replies.