• Resolved Stefan

    (@wefan)


    Hi,
    I’m writing a small plugin with a custom query of my posts.

    But when I do it like this:


    while ( $the_query->have_posts() ) {

    $the_query->the_post();
    $output = the_content(); // or the_excerpt()

    }

    Yarpp links are added to my content.

    How can I remove Yarpp from content in this case? I looked for filters but couldn’t find one.

    Thank you
    Stefan

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YARPP

    (@jeffparker)

    Hi @wefan Thank you for the question/suggestion. We’ll add a noyarpp filter in the next release, slated for later this week.

    Thread Starter Stefan

    (@wefan)

    That sounds cool. Thank you for your help.
    Stefan

    Plugin Author YARPP

    (@jeffparker)

    Hi @wefan The latest version of YARPP now includes support for the requested filter.

    For example:

    
    // Disable YARPP Automatic Display in specific categories
    function yarpp_disable_categories() {
      if ( in_category( array( 'my_category_1_slug', 'my_category_2_slug' ) ) ) {
        return true;
      }
    }
    add_filter( 'noyarpp', 'yarpp_disable_categories' );
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove yarpp from the_content or the_excerpt’ is closed to new replies.