Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (function_exists('get_rand_img_from_post')):
- if ( $my_random_image = get_rand_img_from_post()):?>
- <a href="<?php echo $my_random_image['post-link']?>" title="<?php echo $my_random_image['title']?>"><?php echo $my_random_image['imgtag']?> </a>
- <?php else: ?>
- <a href="<?php the_permalink();?>" title="<?php the_title();?>"><img src="<?php bloginfo('template_directory'); ?>/images/default.jpg" /> </a>
- <?php endif;?>
- <?php endif;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement