I have a website running shapely as my theme, and I am trying to allow only logged in members to see comments on a post, and restrict anyone but administrators from commenting. I would like comments to appear closed to everyone but administrators while previous comments are still visible to members.
In order to do this I just need to know how to assign a "closed for comments" value to a post, preferably from inside the comments.php file. Basically I would like to change all posts so the function: comments_open()
returns false, via code.
is there any easy way to do this?
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745418799a4626873.html
评论列表(0条)