Hi there
Your plugin is fantastic! No replacement!
This will be relaunched or this is not your idea?
Many thanks!
]]>Hi!
I have a template file that displays the default featured image as background image. I want to replace it with Dynamic Featured Image which I have set.
How can I do it; Unfortunately I don’t have enough knowledge to do that.
Can someone help me please?
Here is the source code:
<?php if(has_post_thumbnail()) {
$image_url = get_the_post_thumbnail_url(get_the_ID(), 'medium');
$image_style = 'background-image: url('.esc_url($image_url).')';
?>
<div class="qode-ls-item-image" <?php echo bridge_qode_get_inline_style($image_style); ?>>
</div>
<?php }
Thanks
]]>Is it possible to set the category of the new feature images?
I want to set the feature image of a post and also an image for the same post based on its category. That way, the first image always shows in searches but when I click a category and get a list of all the posts in that category the featured image can change.
I have a heap of hotel posts but when I click the category sauna or hot spring in one post I want the feature images of the hotel posts to show the saunas or hot springs of each hotel when it opens up the list of places with a hot spring or sauna.
]]>Hi, I haven’t been able to crack/hack the code of my theme’s archive.php and single.php files (yet)
Not familiar with php syntax but I found this post which together with your documentation got me to this point:
<div class="page-content">
<?php
while ( have_posts() ) {
if( class_exists('Dynamic_Featured_Image') ) {
global $dynamic_featured_image;
$featured_images = $dynamic_featured_image->get_featured_images( );
//print_r($featured_images);
//You can now loop through the image to display them as required
foreach($featured_images as $featured_image) {
echo "<img />";
}
}
the_post();
$post_link = get_permalink();
?>
<article class="post">
<?php
printf( '<h2 class="%s"><a href="%s">%s</a></h2>', 'entry-title', esc_url( $post_link ), esc_html( get_the_title() ) );
printf( '<a href="%s">%s</a>', esc_url( $post_link ), get_the_post_thumbnail( $post, 'large' ) );
the_excerpt();
?>
</article>
<?php } ?>
</div>
can you or anyone else pinpoint why the extra featured images are not showing?
Also, do you anticipate any issues with all these featured images displaying the same image (set in its respective post as a custom field) on hover, in archive pages?
Cheers
]]>Is this plugin compatible with WP 5.8? Thanks
]]>Hello,
Is it posible to change the featured image of a product based on the category that is shown in ?
for products that are in multiple categories, and in each category to have a diffrent featured image.
Thank you!
]]>Hello,
The plugin does Incredibly slow down my site.
Query Monitor reported 59 slow queries, all linked to Dynamic Featured Image
SELECT ID
FROM wp_posts
WHERE guid = ‘https://local/wp-content/uploads/2019/10/sebastien-gaudard-almanach-2021.jpg’
Dynamic_Featured_Image->execute_query()
Plugin: dynamic-featured-image 0 0,0779
Here are the slow queries
Dynamic_Featured_Image->execute_query()
wp-content/plugins/dynamic-featured-image/dynamic-featured-image.php:633
Dynamic_Featured_Image->get_attachment_id()
wp-content/plugins/dynamic-featured-image/dynamic-featured-image.php:648
Dynamic_Featured_Image->get_image_id()
wp-content/plugins/dynamic-featured-image/dynamic-featured-image.php:725
Dynamic_Featured_Image->get_image_thumb()
wp-content/plugins/dynamic-featured-image/dynamic-featured-image.php:708`
I use your plugin to add more than one featured image in custom post type with dynamic label.
But it seems is not working anymore. If I create a new post the images aren’t displayed.
]]>Hello,
I use the dynamic Feature Image Plugin with the Porto Theme.
They offer a Cover Flow like Carousel that uses the Feature Images as Source for the Slider.
Now I like to add like 20 Images to each Portfolio and doing so with adding them one by one as Feature Image makes it quite time consuming.
Is there a way to select multiple images in the Dynamic Feature Image plugin and have them all as Feature images at once?
If not – then this is a Feature Request.
Hello,
does this plugin allow to show a specific thumbnail for logged in users or specific user roles ?
Thanks
Regards
]]>Hi, i want to know that this plugin is compatible with wordpress latest version or not. Currently there is message showing on plugin home page that
“Warning: This plugin has not been tested with your current version of WordPress.”
Please guide me about this thing.
Thank you
Hello,
I have a post with 2 featured images setted using the plugin.
What I want is to show one image in the thumbnail post on the home page, and the other image when I enter the post (or share it on social media, etc.)
Is that possible?
Thanks!
]]>Hi there,
I feel like a bit of an annoying n00b with this question, so hopefully I’m not being too annoying ??
I will openly admit that part of my problem is that I’m not overly familiar with PHP – most of my coding experience comes from when Visual Basic 6 was a thing so I wouldn’t consider myself really much of a coder – so I suspect this might stem from the fact that I’m trying to make this work in a language of which I am only vaguely familiar
What I am wanting to do is use this plugin to have two featured images set. The primary one will be on display on the homepage, the secondary one will be part of the featured image when you load the post.
I have found the following code in the template that I am using, which I can be reasonably confident is the code that handles the featured image:
/**
* Normal featured image
*/
$caption = get_post(get_post_thumbnail_id())->post_excerpt;
$url = get_permalink();
// on single page? link to image
if (is_single()):
$url = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full');
$url = $url[0];
endif;
?>
<a href="<?php echo esc_url($url); ?>" title="<?php the_title_attribute(); ?>" itemprop="image">
<?php the_post_thumbnail('flipmag-main-full', array('title' => strip_tags(get_the_title()), 'itemprop' => 'image')); ?>
<?php if (!empty($caption)): // have caption ? ?>
<div class="caption"><?php echo esc_html($caption); ?></div>
<?php endif;?>
</a>
<?php
endif; // end check for featured image/gallery
?>
Is anyone able to offer some guidance on what I would need to adapt to make this happen? I’ve tried going through the documentation, but this documentation assumes a certain level of knowledge of PHP, which for me is somewhat lacking due to my rusty coding skills. I’m hoping someone is willing to offer a hand here ??
]]>in the changelog says it is ok up to WordPress 5.3.3?
Is this plugin usable with WordPress 5.4.1?
I am using 3.7.0 Dynamic Featured Image
]]>Hi,
I need to set featured image to posts with function
when I am using below code I can not get the featured images with “$dynamic_featured_image->get_featured_images”
set_post_thumbnail( $post_id, $attachment_id );
add_post_meta($parent_post_id, ‘_thumbnail_id’, $attachment_id);
I find below doc but I can’t find ver. 2.0.2 . for download…
3. Can I set the image from remote url?
If you need to add images from the remote url you need to switch back to ver. 2.0.2 . There is no such feature in ver. 3.0.0 and above.
Note: If you are using remote url to use the feature image, the helper functions may not work properly.
Alt, caption and title attribute for these images cannot be retrieved using helper functions. NULL is returned instead.
I see the Featured Image 2 box in the CMS, but when I click on it, nothing happens and the Link points to script void(0).
Thanks in advance
]]>Hello
I would like to get the alt attribute value of each image registered using Dynamic Featured Image. I registered two images in the static home page and managed to display them using the code below but failed to display their alt attribute values:
if(class_exists('Dynamic_Featured_Image')){
global $dynamic_featured_image;
$featured_images = $dynamic_featured_image->get_featured_images(get_the_ID);
$featured_image_alt =
$dynamic_featured_image->get_image_alt_by_id(get_the_ID);
$image0 = $featured_images[0];
$image1 = $featured_images[1];
$imageAlt0 = $featured_image_alt[0];
$imageAlt1 = $featured_image_alt[1];
echo '<img src="'.$image0['full'].' " alt="'.$imageAlt0.'">';
}
Replacing get_image_alt_by_id() with get_image_alt() returns the empty value too, so I guess I’m not following the descriptions given in the plugin’s GitHub page:
https://github.com/ankitpokhrel/Dynamic-Featured-Image/wiki/API#8-get_image_alt-image_url-
Please someone help me display the alt attribute values.
Thanks for reading this.
]]>Hi, There is a wordpress version update came. I have checked and found that before updating wordpress to latest version. All plugins should be compatible to latest version .This plugin has warning that it is not tested with latest version of wordpress. After updating to latest version of wordpress, this plugin will work perfectly or not? Please tell me about this one.
]]>hi, i have installed “Dynamic Featured Image” plugin. Now i have to update wordpress to version 5.2.3. It requires php version 5.6.20 or higher. Currently this plugin is compatible to “wordpress version 5.1.2” and requires “php version 5.4 or higher”. I want to know that should i update wordpress to latest version or not? this plugin will work perfectly after updating wordpress to latest version?
please guide me so that i will proceed.
I did everything what writes like https://prntscr.com/ok18qm in the link below
https://github.com/ankitpokhrel/Dynamic-Featured-Image/wiki/Retrieving-data-in-a-theme
But none of them works for me
array is returns empty https://prntscr.com/ok18ft
Hello
I would like to get all of the images associated with each post. I tried the code below thus far with no luck:
‘if(class_exists(‘Dynamic_Featured_image’)): global $dynamic_featured_image;
$featured_images = $dynamic_featured_image->get_featured_images(get_the_ID);
$max = get_field(‘product-total’);
for($i = 0; $i < $max – 1; $i++):
$image{$i} = $featured_images[$i];
echo ‘‘;
endfor;
endif;’
This code is in error. Can someone please tell me how the all images can be retrieved?
]]>Is there a way to change thumbnail resolution size? I don’t want it to be 150×150, I want 350×350.
]]>How can I rename Featured Image 2 to be something else like News Feed Image or something to that effect?
]]>Hello there!
Could you please provide a detailed changelog for latest v.3.7.0 update?
Thanks!
]]>Hi there!
I can not get this plugin to work since the latest WordPress upgrade. I installed the wordpress plugin to revert the dashboard back to classic look but the Dynamic Image options are no longer there. I have reinstalled the plugin and no luck. Thoughts?
Thanks!
]]>You may have seen the warning to read the update notes before updating to a recent version?
What this really meant was “hey, we’re now going to serve ads through this plugin but we don’t have the guts to tell you straight up”.
I guess the developer has no trouble sleeping at night on his pillow full of dirty cash. Shame on them!
]]>Hi,
I have just updated the plugin to the latest version, previous version was a long way out of date, but now the path to the images is incorrect.
ie.
https://website.com/wp-content/uploads/wp-content/uploads/2017/02/HomePic2.jpg
instead of:
https://website.com/wp-content/uploads/2017/02/HomePic2.jpg
The code I am using to render the image is:
<?php if( class_exists('Dynamic_Featured_Image') ) {
global $dynamic_featured_image;
$featured_images = $dynamic_featured_image->get_featured_images( $pagg->ID ); ?>
<img src="<?php echo $featured_images[0]['full'] ;?>" />
}
Any ideas what may be incorrect with this? Is there a setting or some DB content which needs updating?
Thanks
Cam
Would expect an option to link external images not hosted on my server to be inserted as a feature image.
]]>I have a plugin & i want to call for the second Image & show it in my plugin.
]]>I’m guessing WordPress changed some function the Dynamic Featured Image plugin is using because images added in the last two weeks are only showing the local path and not the full site URL in WP_postmeta. For example, a post 2 weeks ago has the meta_value:
Whereas a post from 1 week ago has the following:
a:1:{i:0;s:71:”/2018/05/kanpachi-carpaccio_pin.jpg,/2018/05/kanpachi-carpaccio_pin.jpg”;}
]]>