Home › Forums › ACF PRO › Show post from specific category on the archive page › Reply To: Show post from specific category on the archive page
This is not really an ACF question, it is a question about creating archive pages by in WP.
When you load the URL for a CPT or a Term in a Taxonomy associated with that CPT WP has already done a query based on the CPT and the Term if applicable. Your query is overriding the query that WP already did.
I would suggest the you look at pre_get_posts for and the WP template hierarchy rather than creating custom queries.
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.