Support » Plugin: Simple Image Widget » [Plugin: Simple Image Widget] Make the URL accept post/page ID and replace it automatically by perma

  • ronshe

    (@ronshe)


    replace code under the comment as following:

    // Optionally generate the link code
      	if ($instance['link']) {
    		$link = is_numeric($instance['link']) ? get_permalink($instance['link']) : $instance['link'];
      		if ($instance['new_window'])
      			$before_image = "<a href=\"$link\" target=\"_blank\">";
      		else
      			$before_image = "<a href=\"$link\">";
    
      		$after_image = "</a>";
      	}

    http://wordpress.org/extend/plugins/simple-image-widget/

  • The topic ‘[Plugin: Simple Image Widget] Make the URL accept post/page ID and replace it automatically by perma’ is closed to new replies.