This template prints your custom field names ( labels or keys ) along with the value for each, in tabular format.
Works with the ACF custom fields plugin for input or WordPress custom fields.
Tested using the Genesis Sample child theme by StudioPress.
Not Using ACF?
Use the 2.php file instead of the single-orfeome_2.php file and rename it single-cpt.php where cpt matches the name of your custom post type slug.
There’s 2 – 4 steps :
Step 1 : Upload the file named single_orfeome.php & archive-orfeome_2.php to your child theme folder.
Step 2 : Copy & paste the CSS to the end of your child themes stylesheet and remember to clear caching.
Step 3 : Copy & paste the PHP code from the functions.php file to the end of your child themes functions file. Note : If you have already created a custom post type for this project, skip this step.
Step 4 : Import the acf-110385.json file using the Advanced Custom Fields plugin ( ACF ). Note : If you have already created custom fields for this project, skip this step.
View what the code does before you checkout.
You must be logged in to post a comment.