Feel free to get in touch with us about anything you’d like us to add to this list by leaving a message in the WordPress.org support forums. […]
Why do I get unparsed [media-credit] shortcodes in my Facebook/Twitter/… previews with JetPack Publicize?
Unfortunately, this is a known bug in JetPack that can only be fixed by Automattic. As a workaround, use a different plugin for posting to social networks. Alternatively, if you make sure that you haven’t got any images with credits within the first 55 words of your article, you should be fine, too. […]
Can I link to an artist inside a media credit field?
You sure can. Just add the link attribute in the media-credit shortcode, found in HTML view for a post, or directly when adding an image. For example, if your post contains:
change it to:
Note the link to http://www.artistwebsite.com above. […]
Is there a template tag that just gives plain text rather than a link to the author page for users of my blog?
Yep! If you would prefer plain-text rather than a link for all media credit (and leaving out the separator and organization), call <?php get_media_credit($post); ?> which uses the same parameter as above. To echo the results, call <?php the_media_credit($post); ?>. […]
More generally, can I insert media credit information into my themes with a template tag, for instance on category pages?
I’m so glad you asked; you certainly can! Just call <?php get_media_credit_html($post); ?> with an attachment_id (int) or post object for an attachment to get the media credit, including a link to the author page. To echo the results, call <?php the_media_credit_html($post); ?>. […]
Can I display all or recent media credited to a given author?
Indeed, just call the template tag <?php display_author_media($author_id); ?> in your theme’s author.php (or elsewhere, if you want). The template tag has optional parameters if you want to customize the CSS or text. The default options will display thumbnails of the 10 most recent media items credited to the given user floated to the right with a width of 150px and a header of <h3>Recent Media</h3>.
These options can be changed with a more verbose call to the function: <?php display_author_media($author_id, […]
I disabled the plugin and now unparsed [media-credit] shortcodes are appearing all over my site. Help!
Add this to your theme’s functions.php file to get rid of those pesky media-credit shortcodes:
Also, I’d really appreciate it if you gave us some feedback as to why you disabled the plugin and how it could have better suited your needs. […]