There is a function types_get_field() for this:
$field = types_get_field(‘casillas’);
echo $field[‘name’];
I hope I’m not hijacking this thread but this is just what I have been looking for. Thanks 🙂
Works like a charm. Is there anyway to only get the titles to appear on the custom post single page for that post type, please?
With thanks,
Nicole
I mean for that post type only? currently all custom post types use the same content.php and single.php.
I have displayed the field successfully on only the links custom post type single page with
<?php echo types_render_field ("website-url", array("post_type"=>"link")); ?>
Works beautifully – I would like to call the title before it on only that post type page as well, please.
http://codex.wordpress.org/Template_Hierarchy
Check the picture. You need something like single-custom_post_type.php