Support

Account

Home Forums Add-ons Options Page Timber Options Field

Unread

Timber Options Field

  • Have a little rendering problem.

    Have my twig template and function setup like…
    https://timber.github.io/docs/guides/acf-cookbook/#use-options-info-site-wide

    But when it renders, it outputs as text, not HTML. This feels like a stupid question but I am not familiar with Timber at all.

    FUNCTION FILE:

    add_filter( 'timber_context', 'mytheme_timber_context'  );
    
    function mytheme_timber_context( $context ) {
        $context['options'] = get_fields('options');
        return $context;
    }

    TWIG TEMPLATE:
    {{ options.checkmark_1_text }}

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.