Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ( has_post_thumbnail() ) { ?>
- <div class="tile-thumbnail">
- <a href="<?php the_permalink() ?>" title="Fixed link <?php the_title_attribute(); ?>">
- <?php the_post_thumbnail('tile-1'); ?>
- </a>
- </div>
- <?php } else { ?>
- <div class="tile-thumbnail">
- <a href="<?php the_permalink() ?>" title="Fixed link <?php the_title_attribute(); ?>">
- <img src="<?php echo esc_url( plugin_basename( __FILE__ ) ) ?>/images/default-blog.jpg" />
- </a>
- </div>
- <?php
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement