Apply filters to get_the_content()
-
I need to get the content of a page and not echo it. I.e. The the_content echoes the page content but using get_the_content() skips the applying of the filters so the plugins that are installed do not work. My question is how do I apply the filters to the get_the_content() function. I’ve tried:
apply_filters('the_content', get_the_content); $panels = explode("[newpage]", get_the_content());
but it’s not working…
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Apply filters to get_the_content()’ is closed to new replies.