Title: Using shortcode in acf field
Last modified: July 13, 2020

---

# Using shortcode in acf field

 *  Resolved [wonder32](https://wordpress.org/support/users/wonder32/)
 * (@wonder32)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/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 5 years, 11 months ago by [wonder32](https://wordpress.org/support/users/wonder32/).
    -  This topic was modified 5 years, 11 months ago by [wonder32](https://wordpress.org/support/users/wonder32/).

Viewing 1 replies (of 1 total)

 *  [Peter Kiss (a11n)](https://wordpress.org/support/users/yscik8/)
 * (@yscik8)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/using-shortcode-in-acf-field/#post-13640887)
 * You can process the shortcodes with the `do_shortcode` function, like this:
    `
   echo do_shortcode( get_field( 'value' ) );`
    -  This reply was modified 5 years, 7 months ago by [Peter Kiss (a11n)](https://wordpress.org/support/users/yscik8/).
    -  This reply was modified 5 years, 7 months ago by [Peter Kiss (a11n)](https://wordpress.org/support/users/yscik8/).
    -  This reply was modified 5 years, 7 months ago by [Peter Kiss (a11n)](https://wordpress.org/support/users/yscik8/).

Viewing 1 replies (of 1 total)

The topic ‘Using shortcode in acf field’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/syntaxhighlighter_ffffff.svg)
 * [SyntaxHighlighter Evolved](https://wordpress.org/plugins/syntaxhighlighter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/syntaxhighlighter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/syntaxhighlighter/)
 * [Active Topics](https://wordpress.org/support/plugin/syntaxhighlighter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/syntaxhighlighter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/syntaxhighlighter/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Peter Kiss (a11n)](https://wordpress.org/support/users/yscik8/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/using-shortcode-in-acf-field/#post-13640887)
 * Status: resolved