Open shgysk8zer0 opened 7 years ago
Seen in blog-loop.php as:
blog-loop.php
<?php if ( has_post_thumbnail() ) { ?> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="post-thumbnail"> <?php $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'mag-image'); ?> <img src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>" /> </a> <?php } else { ?>
Where is $post set? Is it a global?
$post
Seen in
blog-loop.php
as: