Home › Forums › General Issues › List title of all articles associated with a certain post type and custom field? › Reply To: List title of all articles associated with a certain post type and custom field?
Hi @w-f,
Thanks for the post.
In this use cases, you will only need to create a custom query using the get_posts() function and filter the returned posts using a meta_query by passing the name and value of the custom field.
This is already covered in the following tutorial: https://www.advancedcustomfields.com/resources/query-posts-custom-fields/
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.