WordPress add_filter(‘the_content not working properly

 add_filter('the_content','filter_trendland_content',99999);

//create a the function to get the content of the page by using the hook the_content
function filter_trendland_content($content) {

    $content = "Blank content";
    return $content;

}

I tried using the above filter but it works in page and not in post.Is there any changes to be made in other pages of what shall i do this filter to work for posts.It displays the text “Blank Content” but with the post data.please help.

Related posts

Leave a Reply