WordPress 工作流程修改
我想请求有关 Zensor 插件的帮助 您发布帖子,然后版主批准该帖子在 WordPress 博客网站上发布。
当帖子等待批准时,每个等待帖子都会显示“等待审核”。但是,我不希望在版主批准之前出现任何链接。
其实我找到了下面的连接句;
1- 必须添加到任何查询的 JOIN 部分的末尾:
LEFT JOIN wp_zensor ON ID = wp_zensor.post_id
2- 必须添加到 WHERE 条件的末尾:
AND wp_zensor.moderation_status = 'approved'
您可以告诉我吗?我应该在下面的类别链接演示中添加这些修改:
<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; ?>
或者欢迎任何通用解决方案。
I would like to ask 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 WordPress 的最新版本中,“贡献者”可以提交要发布的新帖子。这些帖子将保留在审核队列中,直到“编辑”或“管理员”批准该帖子。 “作者”可以发布自己的帖子,无需等待审核。 “订阅者”根本不能发帖,只能阅读和评论帖子。
您可以在 WordPress Codex 中了解有关用户角色和功能的更多信息。基本上,将所有贡献用户设为“贡献者”,将编辑者设为“编辑者”。正如您所期望的,让您自己担任“管理员”。当新帖子提交审核时,编辑将收到通知。
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.
您还可以查看一个名为“编辑流程”的插件,它允许您自定义“帖子状态”的选项,这样您就可以向工作流程添加更多层,而不仅仅是“草稿”和“待处理”。然而这个插件可能不再被维护。
另外,我认为 WP 3.0 也会有一些与 register_post_status 相关的核心功能(尽管我几乎没有在社区中听到过它)。
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).