Why do I get un­parsed [media-​credit] short­codes in my Facebook/​Twitter/​… pre­views with Jet­Pack Publicize?

Un­for­tu­nate­ly, this is a known bug in Jet­Pack that can on­ly be fixed by Au­tomat­tic. As a workaround, use a dif­fer­ent plu­g­in for post­ing to so­cial net­works. Al­ter­na­tive­ly, if you make sure that you haven’t got any im­ages with cred­its with­in the first 55 words of your ar­ti­cle, you should be fine, too. […]


| | Posted in | Comments Off on Why do I get un­parsed [media-​credit] short­codes in my Facebook/​Twitter/​… pre­views with Jet­Pack Publicize?

Can I link to an artist in­side a me­dia cred­it field?

You sure can. Just add the link at­tribute in the media-​credit short­code, found in HTML view for a post, or di­rect­ly when adding an im­age. For ex­am­ple, if your post contains:

change it to:

Note the link to http://www.artistwebsite.com above. […]


| | Posted in | Comments Off on Can I link to an artist in­side a me­dia cred­it field?

Is there a tem­plate tag that just gives plain text rather than a link to the au­thor page for users of my blog?

Yep! If you would pre­fer plain-​text rather than a link for all me­dia cred­it (and leav­ing out the sep­a­ra­tor and or­ga­ni­za­tion), call <?php get_media_credit($post); ?> which us­es the same pa­ra­me­ter as above. To echo the re­sults, call <?php the_media_credit($post); ?>. […]


| | Posted in | Comments Off on Is there a tem­plate tag that just gives plain text rather than a link to the au­thor page for users of my blog?

More gen­er­al­ly, can I in­sert me­dia cred­it in­for­ma­tion in­to my themes with a tem­plate tag, for in­stance on cat­e­go­ry pages?

I’m so glad you asked; you cer­tain­ly can! Just call <?php get_media_credit_html($post); ?> with an attachment_id (int) or post ob­ject for an at­tach­ment to get the me­dia cred­it, in­clud­ing a link to the au­thor page. To echo the re­sults, call <?php the_media_credit_html($post); ?>. […]


| | Posted in | Comments Off on More gen­er­al­ly, can I in­sert me­dia cred­it in­for­ma­tion in­to my themes with a tem­plate tag, for in­stance on cat­e­go­ry pages?

Can I dis­play all or re­cent me­dia cred­it­ed to a giv­en author?

In­deed, just call the tem­plate tag <?php display_author_media($author_id); ?> in your the­me’s author.php (or else­where, if you want). The tem­plate tag has op­tion­al pa­ra­me­ters if you want to cus­tomize the CSS or text. The de­fault op­tions will dis­play thumb­nails of the 10 most re­cent me­dia items cred­it­ed to the giv­en user float­ed to the right with a width of 150px and a head­er of <h3>Recent Media</h3>.

These op­tions can be changed with a more ver­bose call to the func­tion: <?php display_author_media($author_id, […]


| | Posted in | Comments Off on Can I dis­play all or re­cent me­dia cred­it­ed to a giv­en author?

I dis­abled the plu­g­in and now un­parsed [media-​credit] short­codes are ap­pear­ing all over my site. Help!

Add this to your the­me’s functions.php file to get rid of those pesky media-credit shortcodes:

Al­so, I’d re­al­ly ap­pre­ci­ate it if you gave us some feed­back as to why you dis­abled the plu­g­in and how it could have bet­ter suit­ed your needs. […]


| | Posted in | Comments Off on I dis­abled the plu­g­in and now un­parsed [media-​credit] short­codes are ap­pear­ing all over my site. Help!