[Plugin: Types – Custom Fields and Custom Post Types Management] Think I found a bug when displaying
-
Fantastic plugin, by the way, great work.
I was fiddling about with the API and trying to display the values of some child posts on one of my pages, with this call:
$child_posts = types_child_posts('price'); foreach ($child_posts as $child_post) { echo $child_post->post_title; echo $child_post->fields['price_price']; }
However, I got this error when displaying my template:
Fatal error: Call to undefined function wpcf_admin_fields_get_groups() in \wp-content\plugins\types\embedded\includes\fields-post.php on line 584
After a little digging I found that fields.php library wasn’t included in fields-post.php and that including it solved the issue.
If you have the same issue, just pop in this line at the top of fields-post.php:
require_once 'fields.php';
Do let me know if I’ve perhaps done something I shouldn’t have! (probably)
- The topic ‘[Plugin: Types – Custom Fields and Custom Post Types Management] Think I found a bug when displaying’ is closed to new replies.