WordPress隐藏文章内容通过关注微信公众号回复指定关键字来获取验证码查看内容插件,可增加用户黏性和二次访问,且转化成私域流量。这个插件我们在同行网站中尤其是资源下载类站点非常常见,同时也能快速准确引流微信公众号。
目前市面上WordPress这类的插件不多,有些是固定的验证码,但是这个插件可以实现一段时间不同的随机验证码方式,但是也有一些缺点,比如缓存插件使用后可能会有故障,但是勉强算是可以使用的。
接下来给大家讲一下插件的大致使用教程。
插件设置
这里在启用插件之后,我们看到的上图设置界面。需要启动插件后才生效。
1、开发者TOKEN
这个如果我们不采用公众号API接口的话,那这里就随便填写。建议不要用API,否则会使得其他预设值的自动回复关键字失效。
2、公众号URL
这个是我们需要在前端显示的公众号二维码的图片。尺寸适当。
3、验证码获取关键字
根据我们预设值要对应后面微信公众号自动回复调用一致。
4、验证码有效时间
一般设置 2 分钟。单位是默认的。
5、接口文件名
这个是会在我们网站根目录生成的PHP文件,对应后面要设置到自动回复的返回URL。
6、回复模板
这个一般默认,也可以根据自己需要微调。
公众号设置
我们在插件配置完毕之后,就需要在公众号设置自动回复。
这里我们在公众号自动回复设置一条。回复内容需要设置注意:
<a rel="nofollow" href="https://www.idc1680.com/go?url=aHR0cDovL+aIkeS7rOeahOe9keermVVSTC9hcGkucGhwP3VybF9jYXB0Y2hhPWdldF9jYXB0Y2hh">查看验证码</a>
这里我们看到上面需要注意的。对应我们插件设置的api 接口文件名称,后面的尾巴(url_captcha=get_captcha)是固定的。
隐藏内容
设置完毕之后,我们如何对WordPress内容中的内容进行隐藏呢?
在编辑器,代码部分可以看到多了一个 "插入公众号隐藏标签",我们也可以手动添加。
<cnwper_wx>需要隐藏的内容</cnwper_wx>
这样,我们到WP前端可以看到(非管理员登录)隐藏隐藏,下面是效果图。
如果不喜欢这个样式也可以自行修改css样式,换一种风格!
My brother recommended I might like this blog.
He was totally right. This post actually made my day. You cann't imagine simply how
much time I had spent for this information! Thanks!
This website definitely has all of the info I wanted
about this subject and didn't know who to ask.
Everything posted made a bunch of sense. But, think on this, what if you
added a little content? I am not suggesting your information is not good, but suppose you added a
headline that makes people desire more? I mean WordPress公众号引流插件 隐藏内容关注公众号获取验证码查看-雪花测评 is kinda vanilla.
You could look at Yahoo's front page and watch how they write news headlines to get people to click.
You might add a related video or a picture or two to
grab readers interested about everything've got to say.
Just my opinion, it might bring your posts a little livelier.
I'm not sure why but this web site is loading incredibly slow for me.
Is anyone else having this issue or is it a issue on my end?
I'll check back later and see if the problem still exists.
Fastidious respond in return of this difficulty with
solid arguments and describing all concerning that.
Accessing foreign servers will be slow