WordPress 根据用户角色和登录状态显示不同内容和小工具

倡萌之前推荐过《WordPress 根据用户名/用户角色/能力/是否登录等隐藏部分文章内容》,今天推荐的 Content Control 插件更加强大,允许你自由设置限制条件,支持根据用户是否登录、用户角色设置隐藏内容和小工具。可以批量设置属于某分类、标签、格式等的文章的可见性,也可以通过简码 [content_control] 单独隐藏部分内容等等。支持设置限制后显示特定信息或重定向到某页面、网址等。自己看下配图,或直接下载体验下吧!

在内容控制界面可以添加不同的可见性规则:

20161025100522_wpdaxue_com

20161025100546_wpdaxue_com

20161025100639_wpdaxue_com

20161025100911_wpdaxue_com

通过简码设置部分内容可见性:

20161025101042_wpdaxue_com

设置小工具可见性:

20161025100451_wpdaxue_com

在后台插件安装界面搜索 Content Control  即可在线安装,或者在这里下载 Content Control 。倡萌已经汉化了该插件,不过插件有的小错误导致翻译失效,倡萌已经反馈给作者,并提交了中文包。如果你等不及要使用,可以下载修复好的 Content Control 简体中文版使用。

BTW,该作者还有一个不错的插件,根据用户条件来设置菜单的可见性,感兴趣的不妨看看:https://wordpress.org/plugins/user-menus/

来源:

https://www.wpdaxue.com/content-control.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_33061.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?