Home › Support › Image Store › ITPC data in Caption
-
AuthorPosts
-
April 5, 2013 at 8:43 am #52632atankeParticipant
Hi,
i don’t know if it isn’t realized, or if it don’t work. But i think an option to import some of the ITPC data would be very important. Espacially the tags and maybe some more…
If it it isn’t realized it is no problem to code it by myself, but it would be nice, when you can tell me in which lines of the proggy the caption (=post_excerpt) will be set.
BR Andi
April 7, 2013 at 2:17 pm #52639Xpark MediaKeymasterThe ITPC data is scanned, title and caption (2#105, 2#120 ) will save on the right fields, you can see all other values by clicking the ITPC link to the meta column in each image.
to display the data in your theme use
$meta = get_post_meta( $imageid, ‘_wp_attachment_metadata’, true );
$meta[‘image_meta’];
May 8, 2013 at 6:34 am #52951atankeParticipantHi, sorry for the late reply.
Yes, ok, when i click on the ITPC-Link i find the data. But there are still missing the tags.
I’m looking for a possibility to save the tags into a searchable field.
For example i have pictures of a birthday party, with some guests, a cake, some candles, …
Each pic will get some tags, for example “birthday party maria, birthday cake, michelle, mike, andrew” and another like “birthday party maria, sarah, mike”
Now i want to search for all pics, that contains mike and “birthday party maria”. So i need a possibility to store this data from the pics, where it is stored in “keywords=[‘2#025’]” to some searchable fields…
so i’ve added in /_inc/galleries.php in the functio display in line 490:
$image = esc_attr( $this->content_url . $this->galpath . “/” . basename( $data[‘file’] ) );
if ($image != ”) {
error_reporting(0);
$info = array();
// Informationen des Bildes auslesen
$size = getimagesize($image, $info);
// IPTC auslesen
$itpc = iptcparse($info[‘APP13’]);
$keywords= implode(“, “,$itpc[‘2#025’]);
}and changed the former line 529
from
<textarea name=”img_excerpt[‘ . $id . ‘]” class=”inputxl” ‘ . $disabled . ‘>’ . esc_html( $attch[‘post_excerpt’] ) . ‘</textarea>’;to
<textarea name=”img_excerpt[‘ . $id . ‘]” class=”inputxl” ‘ . $disabled . ‘>’ . esc_html( $keywords) . ‘</textarea>’;Can you put something like this into the next version?BR AndiMay 9, 2013 at 3:05 am #52988Xpark MediaKeymaster@atanke,
Sorry, we will not implement the changes in the next release not all the users will want to display this information.
These changes can easily be done using the Image Store API, you add the functions to a custom plugin or your theme.
-
AuthorPosts
- You must be logged in to reply to this topic.