二次前言
现在才发现这个没有跳转文章链接,我又加上了。。
请用这个(KRATOS)
function catch_rand_image() {
global $post, $posts;$imgg_url;
ob_start();
ob_end_clean();
$random = mt_rand(1, 63);
$imgg_url = 'https://xxx/images/random/'.$random.'.jpg';
echo '<a href="'.get_permalink().'"><img src="'.$imgg_url.'" /></a>';
}
content.php:
<?php echo catch_rand_image(); ?>
https://www.cokemine.com/wpsltrand.html
文章评论