• anniC

    (@annic)


    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)

    http://wordpress.org/extend/plugins/types/

Viewing 2 replies - 1 through 2 (of 2 total)
  • jozik

    (@jozik)

    Hi anniC,
    thanks for reporting, we’ll check it and post back here.

    jozik

    (@jozik)

    You’re right, lib got lost somewhere on the way.
    We’ll include this fix in next release.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Types – Custom Fields and Custom Post Types Management] Think I found a bug when displaying’ is closed to new replies.