Support » Plugin: Slideshow » only !slideshow_deploy! displays when i use shortcode with AFC

Viewing 2 replies - 1 through 2 (of 2 total)
  • guddu1315

    (@guddu1315)

    got the solution
    write this in your FUNCTION.php

    function my_acf_format_value_for_api($value, $post_id, $field){
    	return str_replace( ']]>', ']]>', apply_filters( 'the_content', $value) );
    }
    function my_on_init(){
    	if(!is_admin()){
    		add_filter('acf/format_value_for_api/type=wysiwyg', 'my_acf_format_value_for_api', 10, 3);
    	}
    }
    add_action('init', 'my_on_init');

    I had tried the Advanced Custom Field: Shortcode Field and still had the !slideshow_deploy! displaying. I tried the “Avoid content filter” option on yes and no and it didn’t work.

    Thank you so much for supplying the code that needed to be inserted into the function.php file as it worked!!!! Thanks for the help 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘only !slideshow_deploy! displays when i use shortcode with AFC’ is closed to new replies.