WordPress.org

Ready to get started?Download WordPress

Forums

Media Credit
Featured image credit? (16 posts)

  1. Dana
    Member
    Posted 2 years ago #

    I had a question about using media credit to give credit to featured image. I don't see a way to make that happen. When I add template tags to theme files it brings up the post author, not the source credit. Is there a way to do this?

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

  2. Scott Bressler
    Member
    Plugin Author

    Posted 2 years ago #

    When you look at the same image in your Media Library, does it also show the wrong credit?

  3. Dana
    Member
    Posted 2 years ago #

    In the Media Library it says the Credit Source Name that I added, but pulls up username when I add template tag. Is that what you mean?

  4. Scott Bressler
    Member
    Plugin Author

    Posted 2 years ago #

    Yes, that's what I was asking. Which template tag are you using -- i.e. what code is in your theme? Which theme?

  5. Dana
    Member
    Posted 2 years ago #

    I am using the FrameMarket: http://premium.wpmudev.org/project/frame-market-theme

    Right now I added

    <?php the_media_credit_html($post); ?> | <?php the_media_credit($post); ?>

    The other two didn't pull any information through.

    On this page I have the same picture set as featured image and added the image to the page to see the difference. At the bottom after the social media icons is the info from the template tags.

    http://fcnyc.glocalwebtech.com/2008/09/hello-world-2/

  6. Scott Bressler
    Member
    Plugin Author

    Posted 2 years ago #

    Hmm, not sure exactly why this is an issue, but it's likely that the you are outside The Loop when you use the template tag at the top.

    Can you email me the entire single.php page (assuming that's the one you edited)? I'll see if anything pops out at me.

  7. Dana
    Member
    Posted 2 years ago #

    Thanks Scott, just sent you templates.

  8. Scott Bressler
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Dana,

    Sorry for the slow response. It seems that media credit might have a bug, or WP core behavior has changed recently. I'll fix it up in the next version, but since it might be a little bit before I actually publish that, I think you should be able to use the following in the meantime.

    <?php global $post; the_media_credit_html($post); ?> | <?php global $post; the_media_credit($post); ?> | <?php framemarket_postedin(); ?>

    Let me know how that works for you.

    -Scott

  9. Dana
    Member
    Posted 2 years ago #

    Thanks Scott, really appreciate your support.

  10. Scott Bressler
    Member
    Plugin Author

    Posted 2 years ago #

    Did it work? You can mark this thread as resolved on the right if so :-)

    Thanks!

  11. Dana
    Member
    Posted 2 years ago #

    Hey Scott,

    I made the change and it is still bringing in my admin info not the Credit Source, see here: http://fcnyc.glocalwebtech.com/2008/09/hello-world-2/.

    I really appreciate the follow-up. Thanks a million!

    Dana

  12. betadog
    Member
    Posted 2 years ago #

    It appears there is still no solution for this problem, right?

    I too would like to show a credit for a featured image (outside the loop). I too see the standard admin info not the info I've put in the Credit field for this image.

    When I use the code you gave to Dana, Scott, I get:

    Fatal error: Call to undefined function framemarket_postedin() ...

  13. Scott Bressler
    Member
    Plugin Author

    Posted 2 years ago #

    The code I gave Dana was specific to the theme in use. Unless you are using the same theme, you wouldn't want to call that function.

  14. betadog
    Member
    Posted 2 years ago #

    I am back, still trying to solve this problem.

    <?php the_media_credit($post); ?>

    as well as

    <?php global $post; the_media_credit($post); ?>

    displays the author of the blog post - not the media credit - when used outside the loop.

    Any new development on this? I can't find another plugin that does what this one does.

  15. betadog
    Member
    Posted 2 years ago #

    It is a great plugin though. :-)

  16. photocurio
    Member
    Posted 1 year ago #

    It would indeed be a wonderful plugin, if I could get it to work. I use featured images in my themes frequently, and I get requests for caption and credits under them.

    The way I've solved this is with this function: Display caption with the_post_thumbnail. I adapt it to give linked photo credits instead of 'caption', and 'description'.

    It would be even nicer if this function could get the info from the custom field that Media Credit adds. This would be intuitive for the user.

    And yet even more nice if Media Credit had an additional field for the credit link. All photographers who want credit ask for a link to their own site.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic