I would like to ask开发者_如何学Python a help about Zensor which is a plugin that you publish a post then a moderator approves the post to be published on the WordPress blog site.
When a post is awating for approval, each awaiting post is appearing "waiting moderation". But, I dont want any link appears before moderator approval.
Actually I found the joining sentence below;
1- Must be added to the end of JOIN part of any query:
LEFT JOIN wp_zensor ON ID = wp_zensor.post_id
2- Must be added to the end of WHERE condition :
AND wp_zensor.moderation_status = 'approved'
Could you please show me; where should I add these modification on the category link presentation below:
<h2>Politics</h2>
<?php $recent = new WP_Query("cat=31&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
<b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
<?php the_content_limit(140, "devamı »"); ?>
<div class="hppostmeta">
<p><?php the_time('j F Y, H:i'); ?> | <?php the_author_posts_link(); ?></p>
</div>
<?php endwhile; ?>
Or any general solutions will be welcomed.
In more current versions of WordPress, "Contributors" can submit new posts to be published. These are held in a moderation queue until an "Editor," or "Administrator" approves the post. "Authors" can publish their own posts without waiting for review. "Subscribers" cannot post at all but can merely read and comment on posts.
You can read more about user roles and capabilities in the WordPress Codex. Basically, make all of your contributing users into "Contributors" and your editors into "Editors." Leave yourself as the "Administrator" as you'd expect. Editors will be notified when new posts have been submitted for review.
You can also look at a plugin called Edit Flow, which allows you to customize the options for a Post Status, so you can add more layers to your workflow than just Draft and Pending. However this plugin might not be maintained anymore.
Also, I think WP 3.0 will have some core features related to register_post_status as well (though I have hardly heard it mentioned in the community).
精彩评论