Bring Your Business to Life › Support › Image Store › Include photographer name in store
Tagged: author, credit, meta, photographer, tags
- AuthorPosts
- April 11, 2012 at 7:27 pm #46093trmashParticipant
Hi, thanks for this plugin – so far it’s looking like being the closest to what I need.
When I upload photos to a new gallery, the photographer credit is automatically extracted from an image’s meta tags. To give the proper recognition to multiple photographers who have contributed, how can I get this information to display under the relevant thumbnails (and, if possible, the popup preview)?
Thanks!
April 16, 2012 at 12:12 am #46228Xpark MediaKeymasteryou will have to create a plugin or a page theme to pull the information you can use the WordPress function get_post( GALLERY_TRUE_ID ) to get the gallery information.
To get individual image information you can use
$metadata = get_post_meta( IMAGE_ID, '_wp_attachment_metadata', true );
this will return an array. to display the user information useecho $metadata['image_meta']['credit']
April 26, 2012 at 11:17 pm #46534trmashParticipantThanks.
When you say “create a … page theme” do you mean a page template within my theme?
April 28, 2012 at 3:18 pm #46612Xpark MediaKeymasteryes, here is a link to WordPress that shows you how to create page templates if you don’t know
- AuthorPosts
- You must be logged in to reply to this topic.