Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • There are two reasons people might want it gone:

    1) internal links opening in a new tab you want to have dofollow. There are lots of really good reasons to open internal links in a new tab. The noopener noreferrer tag is an SEO killer.

    2) using affiliate links (like Amazon Associates) with the noopener noreferrer tag on your site is against most terms of service for being an affiliate.

    Thread Starter zericha

    (@zericha)

    This is the function I’ve got:

    }
    private function ri_get_image($single){
    		$ri_img = '';
      		ob_start();
      		ob_end_clean();
    		if(get_ri_option('image_source')=='featured'){
    			if (has_post_thumbnail($single->ID )){
    				$image = wp_get_attachment_image_src(get_post_thumbnail_id( $single->ID ), 'single-post-thumbnail' );
    				$ri_img = $image[0];
    			}
    			else {
    				$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $single->post_content, $matches);
     				$ri_img = $matches [1] [0];
    			}
    		}
    		else {
     			$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $single->post_content, $matches);
     			$ri_img = $matches [1] [0];
    		}
    
      		if(empty($ri_img)){ //Defines a default image
        			$ri_img = get_ri_option('custom_image');
    		}
    
    		$size=array();
    		$size=$this->ri_get_size();
    
    			if((!is_numeric($this->params['quality']))||(int)$this->params['quality']>100)
    				$this->params['quality']='75';
    		//uses TimThumb to generate thumbnails on the fly
    		$ri_url = plugin_dir_url(__FILE__);
    		$returnlink = ($this->params['lightbox'])? ('"'.$ri_url.'RecipeIndexPost.php?ID='.$single->ID.'" class="ripost"') : ('"'.get_permalink($single->ID)).'"';
    		return '<a href='.$returnlink.'><img src="'.$ri_url.'timthumb.php?src='.urlencode($ri_img).'&h='.$size[1].'&w='.$size[0].'&zc=1&q='.$this->params['quality'].'" alt="'.$single->post_title.'" title="'.$single->post_title.'"/></a>';

    Can you show where I’d add and how?

    Thread Starter zericha

    (@zericha)

    I am capable of cutting and pasting php if you tell me where it needs to go.

    Thread Starter zericha

    (@zericha)

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)