Support » Plugin: Advanced Custom Fields » Shortcode in text field

  • Hi, please, i want use shortcode in “text” field. Is possible?
    Because i need a lot of fields, and Wysiwyg editor is very big and text field is only one line.
    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • This can be done by adding the following to the functions.php file of a child theme or a code snippet plugin.
    add_filter('acf/format_value/type=text', 'do_shortcode');

    More info here

    Thanks Bianca, but this is not, what i need.

    If i adding add_filter in to the functions.php then shortcode dont work to front page but shortcode doing into the administration ACF.

    For examle: I create post. I insert shortcode from other plugin into the text field in ACF. I click to save. And i dont see in text field my shortcode, but i see resault of shortcode in text field.

    I need, that in administration in text field always see shortcode, but on front page i will see shortcode result.

    If i adding add_filter in to the functions.php then shortcode dont work to front page but shortcode doing into the administration ACF.

    Oh that’s not whats suppose to happen. The shortcode should be executed in the frontend not in wp-admin. Here is how it’s supposed to work. https://www.dropbox.com/s/hhs45jyhliodxuf/shortcodeacf.png

    If you want something else, I’m not quite understanding what that is.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.