I would like my posts to pull my custom cropped thumbnail instead of creating its own thumbnail from Featured Image

If your theme is using the_post_thumbnail() to display the featured image, adding the following code in functions.php file will display the Thumbnail size of the image (as set on Settings -> Media Settings): add_filter(‘post_thumbnail_size’, ‘my_thumbnail_size’); function my_thumbnail_size() { return ‘thumbnail’; } Or you can display the featured image in any width (X) or height (Y) … Read more

Imagem resolution responsive

You can use the timthumb for resize your images as you want. if ( has_post_thumbnail() ) { // get the src of the large size featured image $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ‘large’ ); $thumbnailSrc = $src[0]; // output image resized with timthumb ?> <a href=”https://wordpress.stackexchange.com/questions/97632/<?php echo get_post_meta($postid,”post_link’, true) ?>” target=”_blank”> <img src=”<?php bloginfo(‘template_directory’); ?>/js/timthumb.php?src=<?php echo … Read more

Add rel=lightbox to custom string

Without seeing the html output for the excerpt thumbnails it is difficult to say why your code is not working. However I would also look into str_replace (http://php.net/manual/en/function.str-replace.php) as a possible solution to your problem.

Can’t edit thumbnails

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

Function to get thumbnail img source

wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); all together: <div class=”entry-thumbnail”> <a rel=”lightbox” href=”https://wordpress.stackexchange.com/questions/107218/<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>”><?php echo get_the_post_thumbnail( $post->ID ); ?></a> </div>

Get post id on click of thumbnail

You need ajax. The html: <div id=”PersonBio”></div> <div id=”mainTextTitle”></div> <div id=”mainText”> <ul class=”faces”> <?php $categories = get_categories(); foreach ( $categories as $category ) { $i = -1; echo ‘<div class=”grid-row”><h2>’ . $category->name . ‘</h2></div>’; $args = array( ‘posts_per_page’ => -1, ‘cat’ => $category->term_id ); $cat_posts = new WP_Query($args); if ( $cat_posts->have_posts() ) : while ( … Read more