[wp-trac] [WordPress Trac] #23451: Organize/Tag media library items into galleries

WordPress Trac noreply at wordpress.org
Wed May 1 03:30:01 UTC 2013


#23451: Organize/Tag media library items into galleries
--------------------------------+-------------------------
 Reporter:  abdessamad idrissi  |       Owner:
     Type:  feature request     |      Status:  closed
 Priority:  normal              |   Milestone:
Component:  Media               |     Version:
 Severity:  normal              |  Resolution:  worksforme
 Keywords:                      |
--------------------------------+-------------------------

Comment (by Funkatronic):

 To me, this is the exact use case where having post to post relationships
 in core.  In fact, I'm writing a plugin that would do this: the ability to
 images together in galleries that can then be used in multiple posts.

 Basically, the old way of doing galleries was attaching media to posts via
 the posts_parent field of a post, except this was a one to many
 relationship; the post could have multiple images but the images only had
 one parent.  The current way uses shortcode but the only way to use that
 gallery elsewhere would be to parse the content of that post or copy and
 paste the shortcode.

 Using a posts relationship scheme like scrivu's Posts 2 Posts plugin, you
 could setup a many to many relationship with media and a gallery post
 type.  The gallery post type could hold many images and the images could
 be attached to multiple galleries or posts or whatever you want.  The
 galleries could them have their own single/archive/category pages or could
 be embedded in posts, widget areas, etc.

 My inspiration for this is how tech news sites like theverge.com handle
 media galleries.  They have a whole section of media galleries for
 products and events but those same galleries can be embedded into their
 news stories and articles.  Because the galleries are their own entities
 and aren't specifically linked to one article, you can re-use them in
 multiple related articles if you so wished.

 I think this would be an awesome feature for WP and using a P2P table to
 make this happen just makes sense.

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


More information about the wp-trac mailing list