WordPress.org

Ready to get started?Download WordPress

Forums

Image Credit
Template Tag? (5 posts)

  1. betadog
    Member
    Posted 2 years ago #

    Is there a template tag to show the image credit?

    http://wordpress.org/extend/plugins/image-credit/

  2. mrwweb
    Member
    Posted 2 years ago #

    @betadog,

    It's a bit hacky, but since the plugin provides a shortcode, you could probably use do_shortcode() as a template tag.

  3. betadog
    Member
    Posted 2 years ago #

    Thanks, that is a good idea.

    But let me rephrase my question then: what is the shortcode to display the template tag?

  4. betadog
    Member
    Posted 2 years ago #

    Okay, too early in the morning. This should have read: what is the shortcode to display the image credit?

  5. mrwweb
    Member
    Posted 2 years ago #

    Haven't actually used the plugin yet (actually couldn't get it working...) so I don't know. Just add an image with an image credit but WITHOUT a caption and then look at the HTML view.

    If that doesn't pan out, you'll have to see how the plugin stores the credit and then use one of the WP template tags to call the image object and grab the field from there (this is all just guess work).

    -Mark

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic