Home › Forums › General Issues › Adding custom field groups to post type landing pages › Reply To: Adding custom field groups to post type landing pages
The best way, if you don’t already have it, is to get ACF 5 Pro. Us an options page and set the parent slug of the options page so that it appears below the post type you want to set values on. For example, put “Blog Options” under “Blogs”. Now you can add a field group here and use these fields on your archive pages.
Actually, I think this is the only way because WP has no admin page that’s associated with archive templates.
Before I discovered the ACF Options page add on I would create a custom post type and associate each post in the post type with one of the archive pages. This is also still an option. The main problem with using options pages for this is that the field names on each options page must be unique, so you can’t really create one field group and attach it to multiple options pages. Using a CPT eliminates the need to have multiple field groups.
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!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN
— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.