Old Post Featured Thumbnails Displaying, New Are Not
-
So I’m having an odd problem. All of my posts that I uploaded back in 2015 are displaying correctly on my home page.
But I uploaded three new posts just today, “Lester Lampert”, “Bottom Line Marketing” and “Schnack’s Jewelry”, and the Featured Thumbnails are not displaying like the rest of the posts. Everything is set up identically and I am at a loss as to why the new posts featured thumbnails aren’t showing up on my home page / portfolio page.
I’ve tried regenerating thumbnails, no use. Is there something perhaps in my loop that has been deprecated since 2015 that needs to be updated? Here is my current code:
<a href="<?php the_permalink(); ?>"> <?php //Fetching a thumbnail from post attachments //First some parameters for later $args = array( 'numberposts' => 1, 'post_type' => 'attachment', 'status' => 'publish', 'post_mime_type' => 'image', 'post_parent' => $post->ID ); $images =& get_children($args); //Loop the attachments foreach ( (array) $images as $attachment_id => $attachment ) { //Output an attachment in thumbnail size echo wp_get_attachment_image($attachment_id, 'large', ''); } ?> </a>
Thoughts? Thanks everyone!
- This topic was modified 7 years, 5 months ago by .
- This topic was modified 7 years, 5 months ago by .
- This topic was modified 7 years, 5 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Old Post Featured Thumbnails Displaying, New Are Not’ is closed to new replies.