WordPress 工作流程修改

发布于 2024-09-01 23:45:45 字数 936 浏览 4 评论 0原文

我想请求有关 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ı &raquo;"); ?>
<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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

哽咽笑 2024-09-08 23:45:45

在 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.

非要怀念 2024-09-08 23:45:45

您还可以查看一个名为“编辑流程”的插件,它允许您自定义“帖子状态”的选项,这样您就可以向工作流程添加更多层,而不仅仅是“草稿”和“待处理”。然而这个插件可能不再被维护。

另外,我认为 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文