Viewing 9 replies - 1 through 9 (of 9 total)
  • The solution for 1.2 is to add:

    if( !function_exists( 'wpcf_admin_add_js_settings' ) ) {
        require_once WPCF_EMBEDDED_ABSPATH . '/admin.php';
    }

    into /wp-content/plugins/types/embedded/includes/conditional-display.php

    just before string

    wpcf_admin_add_js_settings( 'wpcfConditionalVerifyGroup',
            wp_create_nonce( 'cd_group_verify' ) );

    (it is line 32 at the moment)

    Plugin Author Amir Helzer

    (@amirhelzer)

    Thanks for reporting the problem and a solution. We’ll get it fixed.

    Thanks, fix is added.

    Thank you so much for fixing this, I have been pulling my hair out all night.. I was on the forum and no one had the solution will post to the forum. Thanks.

    Fixed like a new version is soon to be published? Or the existing v1.2 zip has been adjusted?

    I am using Types v1.2.2 and types_child_posts(‘post-type’); does not work.

    $child_posts = types_child_posts(‘recipe’);
    foreach ($child_posts as $child_post) {
      echo $child_post->post_title;
    }

    If I call the code in the parent’s single post page nothing is returned

    Is anyone else having this problem?

    also I am using WordPress 3.5.1.

    Returning to version 1.1.3.4 fixes the problem but is undesirable

    Hi Curiouspeterson,

    Please make sure you have sets post_type to single name e.g. ‘post’, ‘child’

    [ Signature moderated. ]

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Error when using types_child_posts()’ is closed to new replies.