Is there a function that I can use to get me the url to the site’s uploads directory for each user that has added a custom image?
]]>1) Is there a way to link to a single page for each of the submissions?
If not…
2a) Is there a way to display an image thumbnail (since it’s in the media library) and link to the full size image?
If not…
2b) How do I make the image URL clickable?
Thanks for any help/direction.
https://www.ads-software.com/plugins/visual-form-builder/
]]>Thank you.
https://www.ads-software.com/extend/plugins/featured-image-widget/
]]>I’ve tried to add a CSS rule : a img {max-width:100%;}
but this only produces a distorted image..
I need the solution since there are many other users that write posts and upload images..
I’m not a coder, just a newbie here..
so any help or reference will be appreciated.
thanks
https://www.ads-software.com/extend/themes/frisco-for-buddypress/
]]>This little code snippet can be dropped in your theme’s functions.php file and solve that problem. If an image has a caption/description in its IPTC metadata but no title, the WP title will default to that caption/description.
Hope this helps someone else out! *if anyone has any suggestions to modifying this filter hook, feel free to throw them out there.
//If a caption/description was provided in the image IPTC metadata
//but no title exists, this copies the description to the title field
//(instead of WP assigning the filename by default)
function set_default_imgtitle($meta,$file,$sourceImageType) {
if($meta['caption'] && (!$meta['title'] || $meta['title'] == ''))
$meta['title'] = $meta['caption'];
return $meta;
};
add_filter('wp_read_image_metadata','set_default_imgtitle',10,3);
]]>