Plugin for an interactive image? [closed]
Image Hotspot by DevVN and Interactive Maps might have what you’re looking for!
Image Hotspot by DevVN and Interactive Maps might have what you’re looking for!
Depending of what you are exactly trying to achieve accessing the first element of the $posts array may work for you. No need for the foreach loop. echo ‘<img src=”‘.$posts[0][‘img’][‘url’].'”>’;
You can use the post_thumbnail_html filter to set the post thumbnail programmatically to an external URL. Then you wold set the image URL in a Custom Field on the post writing screen metabox (in this example with a meta key of thumbnail_url): add_filter(‘post_thumbnail_html’, ‘custom_thumbnail_tag_filter’, 10, 3); function custom_thumbnail_tag_filter($html, $postid, $thumbnailid) { if (!$thumbnailid) { $src … Read more
@Ooker It’s the Jetpack that is serving you the images on https. If you’d turn off the Photon add-on from Jetpack you should be able to get images served over http from your own server. Also if you turn off Photon, images won’t be served from CDN anymore, so you might have to figure that … Read more
the_post_thumbnail( array(100, 60) ); use this funcation where popular posts are coming from.
Since you are using ACF, you should use a repeater field. This will give you a nice admin interface for adding/editing/removing images. Once you have the fields created and added to a page you just loop through the data with PHP, here is where you would create the markup needed for owl carousel. Here is … Read more
You can set the width of each image sizes inside of WP > Settings > Media Alternatively you can select the image size to be “Full image” when inserting each image into the post. This will choose the image you uploaded and not a cropped version.
The best solution I can come up with is a two-parter which adds metadata, then filters the images users are allowed to select from. If I find a way to update the selector to add an alert, I’ll add that as a separate answer. 1st: Add image metadata that will allow us to filter images … Read more
The GUID is not the image’s URL. It typically does end up (coincidentally) being the original URL of the image, because it needs to be a unique identifier – but that’s all WordPress uses it for, as a unique identifier. Your code should successfully update the URLs of the featured images of posts, but only … Read more
Maybe the method you’re using to display the banner is using a specific image size. Usually wordpress can use a defined (or not) image size to display a media item, but if you check the media item, you’ll be able to see the original upload. Can you provide some code where you’re displaying the banner? … Read more