Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Gaurang Dabhi

    (@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');

    Yeah… the issue I picked up is that you can not remove any tag formatting around shortcode in the ACF wysiwyg editor. Then a shortcode won’t work.

    @guddu1315 – thanks for your filter!!! It sure did the trick for me!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how do i filter the content for wysiwyg editor??’ is closed to new replies.