I have a media library that includes a large number of images to which I would like to add credits (both the URL and the name of the source).
Adding that information one image at a time will take quite a while. Is there a more efficient way to do this, such as by uploading the information for those fields in bulk by using a spreadsheet (CSV file)?
I currently use a plugin called WP CSV that allows one to use a spreadsheet in order to import post content, but I do not see how to do something similar to add content to images in the media library.
Thanks in advance.
]]>Hello,
I placed the code you mentioned in the FAQ in my functions.php. I only see the featured image being credited. The other credits for the images in the post do not show.
Any ideas?
Thanks,
Steve
]]>Hi,
I copied the code mentioned in the FAQs
add_filter( 'the_content', 'ac_image_credits' );
function ac_image_credits( $content ) {
if ( is_singular( 'post' ) ) {
$content .= '<p>[image-credits]</p>';
}
return $content;
}
into my functions.php and nothing happens.
Sorry, but I am a complete WP-Newbie and I don’t now what to do. I want to get the credits of every picture on the page into the footer and this plugin seemed to be the best solution for me. But I cannot get it to run. Do I have to change anything besides the functions.php?
Thanks in advance!
]]>It would be great if the link to the source opened in a new window instead of taking the visitor away from the existing site.
]]>Hi,
I just installed the plugin, great idea!
I want to have the credit show below the featured image. I edited single.php to include: <?php get_image_credits(); ?>
When I check the site the page stops rendering right where that is supposed to show up.
Do I have a syntax error? Do I need to leave the functions call in functions.php for the plugin to work?
BTW: The plugin did work when I only had the code in functions.php but it was just too low on the page. Right below the featured image is the sweet spot!.
Thanks,
Jeffrey
I just noticed that no credit is given to images that are in a gallery. Is this normal?
]]>I tried to add a the function get_image_credits();
on a post, but I got this message:
Fatal error: Call to undefined function get_image_credits() in /…/wp-content/themes/…/content-meta.php on line 9
Later I tried do_shortcode('[image-credits]')
and it worked, but I got this error message as well:
Warning: Wrong parameter count for in_array() in /…/wp-content/plugins/image-credits/plugin.php on line 137
Does anyone have an idea to fix this?
]]>When I call the short-code [image-credits], it shows this warning at the top of my page.
Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/trev72w7/public_html/BUMPKY.COM/wp-content/plugins/image-credits/plugin.php on line 137
How could I fix this?
]]>