Is mytheme_post_thumbnails() still necessary?
Is mytheme_post_thumbnails() still necessary?
Is mytheme_post_thumbnails() still necessary?
Thumbnail size keeps resetting automatically
Assuming that this is a theme that you can edit– ie. one of your own creation– the_post_thumbnail accepts an argument for size. the_post_thumbnail( $size, $attr ); Just give it the size you want, for example: the_post_thumbnail(‘full’);
Upload the file to your Media Library and link to it using HTML anywhere in your theme. <a href=”http://www.example.dev/wp-content/uploads/2014/01/logo.jpg”>Download this image</a>
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