Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • dizplay
    Participant

    @dizplay

    solved by myself:

    get the id with:
    <?php
    $myID = get_queried_object_id();//get the ID
    echo do_shortcode(“[types field=’my-field’ id=’$myID’]”);
    ?>


    dizplay
    Participant

    @dizplay

    Hello,
    same problem here.
    In header (included part) i have a call to a custom variable (made by Types [plugin for custom post type]).
    So the script implicitly use the page ID to select the field
    $bluetext = types_render_field(“bluetext-field”, array(“output”=>”raw”));
    Since the page ID is 0 the custom texts doesn’t appear.
    there’s a workaround to get the ‘container’ wordpress page id ?

    tks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar