Using default post_title for attachment title
-
Hi!
I really like the concept of your plugin. seems to be perfect for custom gallery solutions where backend users just need to upload, rename and reorder files/images.
but i wonder why the plugin relies on post_meta for title and caption of the attachments rather then using the native post_title and post_excerpt/post_content? same with menu_order.
by changing this we could stay with the core functions for viewing the files on frontend like:
$images = get_posts( array( "numberposts" => -1, "post_parent" => get_the_ID(), "post_type" => "attachment", "post_mime_type" => "image", "order" => "ASC", "orderby" => "menu_order" ) ); if ( $images ) { foreach( $images as $image ) { ...
could that be changed easily?
cheers!
m
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Using default post_title for attachment title’ is closed to new replies.