Thumbnails loading forever
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’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 ?>”>
The NextGEN Pro Horizontal Filmstrip Gallery display with caption option will display basically the same output as what you are referring to in the other example.
I’m not completely sure that you do actually need get_terms() twice. It looks very ineffecient and overboard. I don’t know if you need this for ordering purposes, but still, there are better ways of doing this without hitting the db so hard. One alternative is to make one call to get_terms() and then use usort() … Read more
You can edit the default image sizes that WordPress creates by going to Settings -> Media in your WordPress dashboard and specifying image sizes. However, this will change the default image sizes and will affect all images across your site. Another option is to edit the template file that is displaying your blog (likely home.php … Read more
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
You’re using a get function, which does not echo by default. Update the PHP portion to the following: <?php echo wp_get_attachment_image($image, ‘category-large-thumb’ ); ?> Also, wp_get_attachment_image() returns a full image object – so I don’t think that’s what your after. It also most seems like you’d just want the_attachment_link: <?php the_attachment_link( $id, $fullsize, $deprecated, $permalink … Read more
This is actually not related to WordPress and applies to any website or blog: When an url is shared for the first time on Facebook, it visits the page to grab the title, image, description, etc. and keeps this info in cache for some time (this is the period referred to as an “unbelievably long … Read more
How to get real image dimension of already uploaded images which dimensions are bigger than one now set in media settings? (Note: The italic and bold formatting above was added by me.) wp_get_attachment_image_src() indeed doesn’t necessarily return the actual width and height of the resized image file, and that the function relies upon the specific … Read more
why OH WHY does everybody insist on making custom fields for everything . is there a special reason that you would want the use of custom fields ? If so, please explain exactly what you want to achieve . If not – a much better approach (and more fool-proof for non-computer-savvy-clients) would be to use … Read more