Wordpress 自定义文章类型作者限制
有可能将名为“ofertas”的自定义帖子类型的创建限制为1?仅限作者 我已经安装了Wordpress 3.8,但插件不起作用(限制帖子创建1.4、Bainternet帖子创建限制3.1和自定义帖子限制3.6)Wordpress 自定义文章类型作者限制,wordpress,limit,custom-post-type,author,Wordpress,Limit,Custom Post Type,Author,有可能将名为“ofertas”的自定义帖子类型的创建限制为1?仅限作者 我已经安装了Wordpress 3.8,但插件不起作用(限制帖子创建1.4、Bainternet帖子创建限制3.1和自定义帖子限制3.6) 有什么想法吗?谢谢我不知道你到底想要什么,但你可以通过以下代码限制你的帖子:- <?php query_posts($query_string.'limit=1'); ?> <?php if ( have_posts() ) : while
有什么想法吗?谢谢我不知道你到底想要什么,但你可以通过以下代码限制你的帖子:-
<?php query_posts($query_string.'limit=1'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
//your stuff
<?php endwhile; ?>
<?php endif; ?>
//你的东西