https://www.ads-software.com/plugins/photo-credits/
]]>function be_attachment_field_credit( $form_fields, $post ) {
$form_fields['be-photographer-name'] = array(
'label' => 'Photographer Name',
'input' => 'text',
'value' => get_post_meta( $post->ID, 'be_photographer_name', true ),
'helps' => 'If provided, photo credit will be displayed',
);
$form_fields['be-photographer-url'] = array(
'label' => 'Photographer URL',
'input' => 'text',
'value' => get_post_meta( $post->ID, 'be_photographer_url', true ),
'helps' => 'Add Photographer URL',
);
return $form_fields;
}
add_filter( 'attachment_fields_to_edit', 'be_attachment_field_credit', 10, 2 );
/**
* Save values of Photographer Name and URL in media uploader
*
* @param $post array, the post data for database
* @param $attachment array, attachment fields from $_POST form
* @return $post array, modified post data
*/
function be_attachment_field_credit_save( $post, $attachment ) {
if( isset( $attachment['be-photographer-name'] ) )
update_post_meta( $post['ID'], 'be_photographer_name', $attachment['be-photographer-name'] );
if( isset( $attachment['be-photographer-url'] ) )
update_post_meta( $post['ID'], 'be_photographer_url', esc_url( $attachment['be-photographer-url'] ) );
return $post;
}
add_filter( 'attachment_fields_to_save', 'be_attachment_field_credit_save', 10, 2 );
add_action('after_setup_theme', 'remove_admin_bar');
function remove_admin_bar() {
if (!current_user_can('administrator') && !is_admin()) {
show_admin_bar(false);
}
}
]]>I’m just beginning to create a companion website for a small community newspaper, and I want to use a recognizably local image as this background.
I downloaded and activated the Media Credit plugin, but it looks like this plugin only attaches credits to media files contained within posts.
this is the site, so far:
https://www.macopolitan.org/
many thanks for any advice.
HM
Any clues on how to add this in the code?
Thanks,
David
]]>Mark
]]>Daniel
https://www.ads-software.com/extend/plugins/zemanta/
]]>https://www.ads-software.com/extend/plugins/media-credit/
]]>I have integrated a flash slideshow to my autofocus. Users on mac using safari are reporting that slideshow is appearing but does not work. Slideshow developer sent me a following reply:
I believe the problem is the HTML template of your blog. There appears to be a giant “overlay” that says “? 2010 Tauno ??bik”. That user element prevents the user from clicking on the slide show. The code in question is here:
<span class="photo-credit">© 2010 Tauno ??bik</span>
I took a peek into style.css and I am confused quite a lot how exactly to disable this function.
Thank you for all help you can give!
]]>