Can't get custom fields to display
-
Just can’t get the custom fields to display.
I’ve set up a Custom Post Type called Projects
I’ve set up a Customs field group called Projects.
I’ve added three fields, an image field (project-image), a multiple line field (project-description) anda url field (project-link).
I’ve set the custom fields to only appear in my customs post type ‘Projects’.
So far all works.
It’s getting the customs fields to display in the fronted where I’m having problems.This is the code I have added to the single.php file.
<?php types_render_field(“project-image”, array(“argument1″=>”value1″,”argument2″=>”value2″,”argument2″=>”value2”)); ?>
<?php types_render_field(“project-description”, array(“argument1″=>”value1″,”argument2″=>”value2″,”argument2″=>”value2”)); ?>
<?php types_render_field(“project-link”, array(“argument1″=>”value1″,”argument2″=>”value2″,”argument2″=>”value2”)); ?>
I’ve tried this inside and outside the loop.Any help appreciated; thanks, Andrew.
The topic ‘Can't get custom fields to display’ is closed to new replies.