Quantcast
Channel: 《如何让WordPress的特定内容只对管理员可见》的评论
Browsing all 10 articles
Browse latest View live

作者:Chienjay

你好,不知道是否有辦法實現 文章內 部分內容隱藏?

View Article



作者:小影

隐藏?给谁显示?

View Article

作者:Chienjay

例如今天我設定了2個會員層級 等級1 只能觀看文章但無法看見隱藏的內容 等級2 可以觀看文章可以看見隱藏的內容

View Article

作者:小影

<pre> <?php if( current_user_can('level_10') ) : ?> [等级2级及以上才可见] <?php endif; ?> </pre> 应该是要这样吧?

View Article

Image may be NSFW.
Clik here to view.

作者:小影

你可以看看这篇文章http://bit.ly/gQ8rUc

View Article


作者:Chienjay

找到另外一種方法了 去functions.php加入下列代碼 add_shortcode( 'member', 'member_check_shortcode' ); function member_check_shortcode( $atts, $content = null ) { if ( is_user_logged_in() && !is_null( $content )...

View Article

Image may be NSFW.
Clik here to view.

作者:小影

嗯,好方法

View Article

作者:网页设计

好代码,现收藏啊

View Article


作者:ミク

其实我很想知道,如何做到特定评论只能让博主看到。比如:[hide]xxxx[/hide] 这样的。

View Article


作者:WordPress的特定内容只对管理员可见 | idea2m.想象力即财富

[...]   2011-01-12 / WordPress / WordPress, 代码, 管理员 / 3,421ºC 23 [...]

View Article
Browsing all 10 articles
Browse latest View live




Latest Images