简体   繁体   中英

Use ACF to add content to post type archive

I'm trying to create a page with some custom fields (ACF) to display on a custom post type archive page. I tried to create a new page with the same slug as the custom post type archive (test.com/testimonials) and display the custom fields on that page.

I was hoping I could show the content of the custom fields on the testimonials archive page, but it doesn't seem to work. Can I accomplish the wanted result this way without creating a separate options page? This way it's easier for my client to find everything she needs.

I tried another approach. I added an options sub page to the custom post type and added the custom fields to this options page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM