WordPress.org

Forums

Types
Think I found a bug when displaying (3 posts)

  1. anniC
    Member
    Posted 3 years ago #

    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/

  2. Srdjan
    Member
    Plugin Author

    Posted 3 years ago #

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

  3. Srdjan
    Member
    Plugin Author

    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Types
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags