admin管理员组文章数量:1200963
Thank you in advanced. I know there are plugins that can do this, but I am looking for a simple solution for my function file. I would like to display the excerpt for all posts with the more tag for public visitors, even for private posts.
Thank you in advanced. I know there are plugins that can do this, but I am looking for a simple solution for my function file. I would like to display the excerpt for all posts with the more tag for public visitors, even for private posts.
Share Improve this question asked Jul 11, 2011 at 2:56 JimmyJackJimmyJack 31 bronze badge1 Answer
Reset to default 0I've not tested this, but you should be able to complete this task by placing the following code in your template above the loop.
query_posts(
array(
'post_status' => array(
'published',
'private'
)
)
);
This should allow for published and private posts to be displayed in that template.
本文标签: functionsdisplay public excerpt for private post
版权声明:本文标题:functions - display public excerpt for private post 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738552806a2097698.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论