Not rewriting URLs for the_post_thumbnail in custom WP_Query
-
Love this plugin.
I have a custom wp_query on the home page of my site which grabs the 8 most recent posts in a category. Within the loop, here is the display code:
// the query $the_query = new WP_Query( $args ); ?> <?php if ( $the_query->have_posts() ) : ?> <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <li style="max-width:96px;float:left;margin-right:20px;min-height:200px;"> <a class="relatedimg" href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"> <?php the_post_thumbnail(96,96); ?><br /> <span style="position:relative;top:1px;width:96px;"><?php the_title(); ?></span></a> </li> <?php endwhile; ?> <?php wp_reset_postdata(); ?>
When I set the Featured Image (post thumbnail) it *is* uploading the image to S3 but when displaying the output of the loop above, the_post_thumbnail (Featured Image) url is the regular local wp-content/uploads/ folder, not the amazon s3 bucket.
Note that the featured image was set after the plugin was installed. How can I get these featured images to grab the images from amazon s3?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Not rewriting URLs for the_post_thumbnail in custom WP_Query’ is closed to new replies.