Support

Account

Home Forums General Issues Post Object filter won't retun html but return text

Solving

Post Object filter won't retun html but return text

  • Hi,

    when i update ACF to latest version 5.10 i get returned text from Post Object filter instead of HTML. For example i add one <span> element to returned text but on screenshot you can see what i get now.

    add_filter('acf/fields/post_object/result/key=xxxxx', 'test', 10, 4);
    function tet( $text, $post, $field, $post_id ) {
        $text .= '<br><span class="text-xs">test</span>';
        return $text;
    }

    before ACF 5.10
    Before version 5.10

    after ACF 5.10
    After version 5.10

    What i must do that i will get returned rendered HTML?

  • Hey @toniojst,

    We’re aware of the issue where the select2 field no longer supports any HTML – we’ll have this fixed in a patch in the next few days!

    Thanks,
    Liam

  • Ok, thanks for this info, can you reply on this topics when will be ready this patch.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.