Wordpress随机发布
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Wordpress随机发布相关的知识,希望对你有一定的参考价值。
Display random posts without a plugin
<ul> foreach( $rand_posts as $post ) : ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?> </ul>
以上是关于Wordpress随机发布的主要内容,如果未能解决你的问题,请参考以下文章
Wordpress - 将代码片段包含到布局的选定部分的插件
markdown 在WordPress中使用jQuery代码片段
PHP WordPress条件为主页SlideDeck主题代码片段