Incorrect data return when no image attached!
-
Hi,
First, thanks for nice and easy-to-use plugin!
I have a problem when I create a post with NO image attached for dynamic feature image plugin (only one image attached to native WP feature image). The data in Array is incorrect.
Here is how I query for the images.
// Get other featured images $attachments = $dynamic_featured_image->get_featured_images( $post->ID );
Here is the returned $attachments array.
Array ( [0] => Array ( [thumb] => https://localhost/wp-content/uploads [full] => https://localhost/wp-content/uploads [attachment_id] => ) )
It’s used to work for previous version 3.1.0 (return null for this case I think) but not for the latest version.
Any idea how to fix it?
Thanks
https://www.ads-software.com/plugins/dynamic-featured-image/
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Incorrect data return when no image attached!’ is closed to new replies.