• Resolved jasonbrownlee

    (@jasonbrownlee)


    I love the plugin, thank you so much!

    Could we please have an additional configuration option to make all href links to blog post nofollow. This is critical for SEO reasons.

    I have made the change manually to the plugin, but it would be fantastic if it was supported directly.

    Thanks again.

Viewing 1 replies (of 1 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    You can use the output filter to customize all links to include rel=”nofollow”.

    
    /**
     * Display Posts - Nofollow links
     * @see https://displayposts.com/docs/the-output-filter/
     *
     */
    function be_dps_nofollow_links( $output ) {
      $output = str_replace( '<a href', '<a rel="nofollow" href', $output );
      return $output;
    }
    add_filter( 'display_posts_shortcode_output', 'be_dps_nofollow_links' );
    
Viewing 1 replies (of 1 total)
  • The topic ‘Please add rel=nofollow support’ is closed to new replies.