WordPress.org

Forums

User definable tags - for photoblog (2 posts)

  1. PeterDk
    Member
    Posted 10 years ago #

    I've been searching the docs and postings here in the forum and have not found an answer to my question - hopefully someone can shed some light on this...
    Is it possible to create your own tags - specifically my own database fields in WordPress? I'm looking at creating a photoblog/gallery which will make extensive use of EXIF and IPTC data. It would be most useful if I could batch upload the photos and somehow extract all this metadata and import it into the WP SQL database. This way when the photoblog/gallery is running it won't have to constantly extract this information via some other script. Retrievals and searches would be faster.....
    Aside from how the data extraction process might be done, I'm interested to find our whether WP will allow me to create the extra data tags which would hold the IPTC and EXIF information.
    Is this possible?
    thanks, hope my question makes some sense..
    PeterDk

  2. trevorhughdavis
    Member
    Posted 9 years ago #

    Ok, this can't be that hard, but I haven't been able to do it.

    But I'm not really all that smart.

    But this is part of the solution to your puzzle:

    First - you can add a permanent custom field. there is a guide out there somewhere that is very good - but i can't find it for some reason. call it something I ate, i didn't bookmark it.

    but this plugin lets you use them in a post:

    http://www.coffee2code.com/archives/2004/06/30/plugin-get-custom/

    Hmm... hack one of the photo upload plugins so it does this

    <?php
    $size = getimagesize("testimg.jpg", $info);
    if (isset($info["APP13"])) {
    $iptc = iptcparse($info["APP13"]);
    var_dump($iptc);
    }
    ?>

    exchanging app13 for the "description" or "caption" field. (i'm guessing that's what you want".

    Thenuse

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.