display multiple entries to custom fields
-
I am using version 2.1.2 of your plugin.
I have a custom post type that I added custom fields to the meta box is titled “Attributes”. for some of my posts they have multiple entries to their attributes. i.e. Types of flowers, petunias come in 4 colors each of these is its own attribute set.
I am trying to return the title and their product number for each of the colors to the user.
I want to repeat the crop, series, variety, and sku fields:
<h3 class="seed"><?php
the_cfc_field(‘attributes’, ‘crop’ ); ?> <?phpthe_cfc_field('attributes', 'series' ); ?> <?php
the_cfc_field(‘attributes’, ‘variety’ ); ?> – <?php `the_cfc_field(‘attributes’, ‘sku’ ); ?></h3>`<p><?php the_content(); ?></p>
Here is an image of the fields setup:https://www.grimes-hort.com/wp-content/uploads/2017/08/fields.jpg
- The topic ‘display multiple entries to custom fields’ is closed to new replies.