Home › Forums › Front-end Issues › custom field group not displaying in wp query loop for a custom post › Reply To: custom field group not displaying in wp query loop for a custom post
Pls see the attachment of the Testimonial Entry fields.
I have created a post-type Testimonial. The admin opens a “new” testimonial and enters the info in the ACF fields. This should save it in database.
Then, I created a bock called Testmonial Grid where the admin can drop it in a page and select the number of testimonials to show and the number per row in the grid. The block redirects to the template testimonial.php in the blocks folder. The template should grab the data from the block and the data that was already entered in the database to render the testimonials on the template.
The code I shared before won’t show any of the data the was entered in ACF fields. But it will show data that is part of a typical WordPress post like the Title. So, I am gathering the get_field() isn’t grabbing the meta-data that is should and I can’t figure out why.
I have attached a screenshot of the fields. Thanks for your help.
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.