[wp-trac] [WordPress Trac] #11394: Image shortcode

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 7 21:50:40 UTC 2010


#11394: Image shortcode
-----------------------------+----------------------------------------------
 Reporter:  caesarsgrunt     |       Owner:                          
     Type:  feature request  |      Status:  new                     
 Priority:  normal           |   Milestone:  3.1                     
Component:  Media            |     Version:  2.9                     
 Severity:  normal           |    Keywords:  needs-patch dev-feedback
-----------------------------+----------------------------------------------
Changes (by sbressler):

 * cc: sbressler (added)


Comment:

 I frankly don't know whether a [media] or [image] shortcode is necessary
 or useful in WP. I always thought it was kind of strange that [caption] is
 a shortcode that surrounds an <img> tag if there is one. No one has
 brought this up: with this solution, would the caption shortcode surround
 the image shortcode, duplicating the alignment, width, and height
 attributes?

 I created a [http://bit.ly/mediacredit Media Credit] plugin last month
 that I'm still actively developing and I figured I'd mention here. I am by
 no means trying to promote my plugin here, but just want to discuss my
 experiences from creating this plugin. In terms of shortcodes, this plugin
 takes a similar approach as is discussed here, but stricly for attributing
 media to a specific user.

 In addition to allowing media to be credited to a blog user or any
 freeform text upon upload (autocomplete for blog users), the [media-
 credit] shortcode inserted into posts is parsed into displaying media
 credit below images (above captions) with a link to a particular user's
 author.php page if the media is credited to a blog user.

 I indeed had to duplicate the three attributes from the caption shortcode
 as mentioned above so that I could determine the width of the media credit
 to display under an image.

 I would love to hear some more thoughts from more of you, particularly
 core contributors, as to what you think about such an image shortcode.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11394#comment:35>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list