WordPress 工作流修改 [英] WordPress WorkFlow Modfications

查看:45
本文介绍了WordPress 工作流修改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问一个关于 Zensor 插件的帮助您发布帖子,然后版主批准将帖子发布到 WordPress 博客网站上.

当帖子等待批准时,每个等待帖子都显示等待审核".但是,我不希望在版主批准之前出现任何链接.

其实我找到了下面的连接句;

1- 必须添加到任何查询的 JOIN 部分的末尾:

LEFT JOIN wp_zensor ON ID = wp_zensor.post_id

2- 必须添加到 WHERE 条件的末尾:

AND wp_zensor.moderation_status = 'approved'

能不能给我看看;我应该在哪里在下面的类别链接演示中添加这些修改:

政治

<?php $recent = new WP_Query("cat=31&showposts=1");while($recent->have_posts()) : $recent->the_post();?><b><a href="<?php the_permalink() ?>"rel="书签"><?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>

<?php endwhile;?>

或者欢迎任何通用解决方案.

解决方案

在 WordPress 的最新版本中,贡献者"可以提交要发布的新帖子.这些将被保留在审核队列中,直到编辑"或管理员"批准该帖子.作者"可以发布自己的帖子,无需等待审核.订阅者"根本不能发帖,只能阅读和评论帖子.

您可以在 WordPress Codex 中阅读有关用户角色和能力的更多信息.基本上,将您的所有贡献用户都变成贡献者",将您的编辑者变成编辑者".正如您所期望的那样,让自己成为管理员".当有新帖子提交审核时,编辑将收到通知.

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ı &raquo;"); ?>
<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.

这篇关于WordPress 工作流修改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆