WordPress.org

Ready to get started?Download WordPress

Forums

Filter for the_content and the_excerpt (3 posts)

  1. yzk0370
    Member
    Posted 5 years ago #

    Hey guys, I've got a problem whit the filters.
    I added a filter on "the_content" like this:

    add_filter('the_content', 'my_filter')

    And when I use "the_excerpt", this filter will work.
    How can I stop this and make this filter only effect the "the_content" and never effect "the_excerpt"?

    Thanks for your attention.

  2. yzk0370
    Member
    Posted 5 years ago #

    Ah...nobody has idea about this?

  3. ty
    Member
    Posted 5 years ago #

    did you try:

    add_filter('the_content', 'my_filter');
    remove_filter('the_excerpt', 'my_filter');

    ???

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags