[resolved] the_content filter not working for pages? (2 posts)

  1. zaim
    Posted 9 years ago #

    It seems that the 'the_content' filter hook doesn't work with Pages?

    I've tried, but the hook doesn't seem to filter page content. I could be doing something wrong, though, I don't know.

    So, how do I filter page content, then?

  2. zaim
    Posted 9 years ago #

    Oops, my bad. I was using echo $post->post_content; directly, instead of the_content(); so it wasn't calling the hook.

Topic Closed

This topic has been closed to new replies.

About this Topic