$my_query = new WP_Query('category_name=frontpage&showposts=1');
while ($my_query->have_posts()) :
$my_query->the_post();
$do_not_duplicate = $post->ID;
if (have_posts()) : while (have_posts()) : the_post(); //do stuff like format each postendwhile;
if (have_posts()) : while (have_posts()) : the_post();
if( $post->ID == $do_not_duplicate )
continue;//do stuff like format each post endwhile;
以上就是安达网络工作室关于《如何给wordpress创建动态的置顶文章短工夫引起注意》的一些看法。更多内容请查看本栏目更多内容!
2015必备wordpress插件列表。为了加强wordpress站点,一些优秀无效的收费wordpress 插件是必不可少的。 Wo...
通过一番考察,发现插件 flash-video-player 里的 swfobject.js 文件里也有这个J.parentNode调用,所以和WP...
wordpress评论中的头像是应用Gravatar的头像效劳(Gravatar民间注册地址:http://en.gravatar.com),用户的...
复制代码代码如下: <?php //Put this in functions.php function get_primary_image($id, $size){ ...
comments_template comments_template 函数是一个调用评论模板的函数,应用起来很简略,与get_header()等函...
在以前的代码中,咱们仅仅应用add_shortcode函数来把短代码注册到wordpress中,在文章页应用the_content来显...