WordPress.org

Ready to get started?Download WordPress

Forums

Simple Image Widget
Make the URL accept post/page ID and replace it automatically by perma (1 post)

  1. ronshe
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.