Getting post-thumbnail hentry category-error – How can I fix
Getting post-thumbnail hentry category-error – How can I fix
Getting post-thumbnail hentry category-error – How can I fix
How to crop thumbnail size, from both width and height sides
I’m thinking the images are hosted on Cloudflare’s CDN? Have you tried using a different browser to see if the issue still persists? Also, if you provide a link, other users could validate if they have the same issue.
I asked a friend for help and solved it like this <?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ‘NAME_OF_THE_THUMBNAIL_KIND’ ); $url = $thumb[‘0’]; ?> <div id=”featured” data-parallax=”scroll” data-speed=”0.1″ data-natural-width=”2304″ data-natural-height=”1536″ data-ios-fix=”true” data-position=”top” data-bleed=”10″ data-image-src=”https://wordpress.stackexchange.com/questions/220324/<?php echo $url ?>”>
Try the following code inside the loop and modify it as per requirement. $thumb_id = get_post_thumbnail_id(); echo ‘Name=”. get_post_field( “post_name’, $thumb_id ).'<br />’; echo ‘Alt=”. get_post_meta( $thumb_id, “_wp_attachment_image_alt’, true ).'<br />’; echo ‘Title=”. get_the_title( $thumb_id ).”<br />’; echo ‘Caption = ‘. get_post_field( ‘post_excerpt’, $thumb_id ).'<br />’; echo ‘Description = ‘. get_post_field( ‘post_content’, $thumb_id ).'<br />’; … Read more
There seems to be a solution there, though it’s not perfect -it worked perfectly on one of my two sites and almost perfectly on the other…-
get_the_term_list & url
This bug was caused by empty lines between php tags… <?php function(){ … } ?> <?php function(){ … } ?> needs to be: <?php function(){ … } ?> <?php function(){ … } ?> wordpress.org Credit: wordpress.org
This should do the trick. http://codex.wordpress.org/Function_Reference/add_image_size just create your own image size you want to best fit your website. you could then use this plugin to regenerate all your thumbnails. http://wordpress.org/plugins/regenerate-thumbnails/
$image_attributes = wp_get_attachment_image_src( $attachment_id, $size ); Returns an array containing: [0] => url [1] => width [2] => height [3] => boolean: true if $url is a re-sized image, false if it is the original. Even though you pass the $size as parameter, while returning; it returns the actual width and height of the image … Read more