<code id='EBAFA7628B'></code><style id='EBAFA7628B'></style>
    • <acronym id='EBAFA7628B'></acronym>
      <center id='EBAFA7628B'><center id='EBAFA7628B'><tfoot id='EBAFA7628B'></tfoot></center><abbr id='EBAFA7628B'><dir id='EBAFA7628B'><tfoot id='EBAFA7628B'></tfoot><noframes id='EBAFA7628B'>

    • <optgroup id='EBAFA7628B'><strike id='EBAFA7628B'><sup id='EBAFA7628B'></sup></strike><code id='EBAFA7628B'></code></optgroup>
        1. <b id='EBAFA7628B'><label id='EBAFA7628B'><select id='EBAFA7628B'><dt id='EBAFA7628B'><span id='EBAFA7628B'></span></dt></select></label></b><u id='EBAFA7628B'></u>
          <i id='EBAFA7628B'><strike id='EBAFA7628B'><tt id='EBAFA7628B'><pre id='EBAFA7628B'></pre></tt></strike></i>

          wordpress问鼎p征途国际app官方下载g官网网址隐藏文章部分内容需要注册登录后可见

          就变成了VIP会员可以访问隐藏的内容。

          [hides]这里的内容只为已登录的用户显示的[/hides]

          效果显示图

          有时手动输入代码比较麻烦,

          在你用的主题模板函数functions.php的文件下加入以下代码

          // 添加只允许登录后查看  add_shortcode('hides','loginvisible');function loginvisible($atts,$content=null){if(is_user_logged_in() && !is_null($content) && !is_feed())return $content;return '';}

          在需要加密的内容尾部加入下边两段代码(html编辑器中加入),就会提示只有登录后才能访问隐藏内容。适合问鼎pg官网网征途国际app官方下载VIP会员,wordpress如何实现代码实现这个功能呢?

          这种功能主要是内容对用户有需求,会员要注册登录才能访问,需要注册登录或会员才能查看。可以在functions.php下添加快捷编辑按钮代码

          //添加编辑器快捷按钮function mmkj_tags($mce_settings) {?><script type="text/javascript"征途国际app官方下载>QTags.addButton( 'hides', '隐藏内容登录可问鼎pg官网网址见', '[hides]', '[/hides]' );function yunluo_shortcode() {}</script><?php}add_action('after_wp_tiny_mce', 'mmkj_tags');

          可以出售邀请码,

          访问一些论坛网站在查看文章内容时会发现很多文章帖子尾部都有部分内容游客无法查看,而注册需要邀请码,