Title: zericha's Replies | WordPress.org

---

# zericha

  [  ](https://wordpress.org/support/users/zericha/)

 *   [Profile](https://wordpress.org/support/users/zericha/)
 *   [Topics Started](https://wordpress.org/support/users/zericha/topics/)
 *   [Replies Created](https://wordpress.org/support/users/zericha/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/zericha/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/zericha/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/zericha/engagements/)
 *   [Favorites](https://wordpress.org/support/users/zericha/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Stop “noopener noreferrer” tags from auto-insert](https://wordpress.org/support/topic/stop-noopener-noreferrer-tags-from-auto-insert/)
 *  [zericha](https://wordpress.org/support/users/zericha/)
 * (@zericha)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/stop-noopener-noreferrer-tags-from-auto-insert/#post-9164926)
 * 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Visual Recipe Index] Open link in new window](https://wordpress.org/support/topic/open-link-in-new-window-16/)
 *  Thread Starter [zericha](https://wordpress.org/support/users/zericha/)
 * (@zericha)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/open-link-in-new-window-16/#post-5893330)
 * 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?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Visual Recipe Index] Open link in new window](https://wordpress.org/support/topic/open-link-in-new-window-16/)
 *  Thread Starter [zericha](https://wordpress.org/support/users/zericha/)
 * (@zericha)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/open-link-in-new-window-16/#post-5893327)
 * I am capable of cutting and pasting php if you tell me where it needs to go.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jetpack - WP Security, Backup, Speed, & Growth] Exclude two categories from Related Posts](https://wordpress.org/support/topic/exclude-two-categories-from-related-posts/)
 *  Thread Starter [zericha](https://wordpress.org/support/users/zericha/)
 * (@zericha)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/exclude-two-categories-from-related-posts/#post-5893902)
 * Thank you!

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