Support » Plugin: SyntaxHighlighter Evolved » Using shortcode in acf field

  • I am having problems displaying the code between [php][/php] in acf fields.
    I have tried:

    
    plain:
    the_field('value');
    or with filter:
    echo apply_filters('wp_content', get_field('value'), 5)
    

    Any tips how to make the code field render properly.

    • This topic was modified 7 months, 2 weeks ago by wonder32.
    • This topic was modified 7 months, 2 weeks ago by wonder32.
Viewing 1 replies (of 1 total)
  • You can process the shortcodes with the do_shortcode function, like this:
    echo do_shortcode( get_field( 'value' ) );

    • This reply was modified 3 months, 2 weeks ago by Peter Kiss.
    • This reply was modified 3 months, 2 weeks ago by Peter Kiss.
    • This reply was modified 3 months, 2 weeks ago by Peter Kiss.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.