WordPress.org

Ready to get started?Download WordPress

Forums

How to know if you are in the_content() or the_excerpt()? (1 post)

  1. Jacob N. Breetvelt
    Member
    Posted 3 years ago #

    A filter installed for the_content() like:

    add_filter('the_content', 'my_filter');

    appears to not only run on the_content() as one should expect, but also runs on the_excerpt().

    This is a problem for me. As there are no boolean functions: is_content() and is_excerpt(), how do i know if i am in the_content() or in the_excerpt()?

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by Jacob N. Breetvelt
  • This topic is not resolved
  • WordPress version: 3.1.3

Tags

No tags yet.