惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

宝玉的分享
宝玉的分享
NISL@THU
NISL@THU
E
Exploit-DB.com RSS Feed
L
LINUX DO - 热门话题
L
Lohrmann on Cybersecurity
K
Kaspersky official blog
Project Zero
Project Zero
Cisco Talos Blog
Cisco Talos Blog
T
The Exploit Database - CXSecurity.com
P
Palo Alto Networks Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Threatpost
S
Schneier on Security
G
GRAHAM CLULEY
The Hacker News
The Hacker News
T
Threat Research - Cisco Blogs
Scott Helme
Scott Helme
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Privacy & Cybersecurity Law Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Cyberwarzone
Cyberwarzone
C
CERT Recently Published Vulnerability Notes
T
Tor Project blog
AWS News Blog
AWS News Blog
Simon Willison's Weblog
Simon Willison's Weblog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
爱范儿
爱范儿
P
Privacy International News Feed
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
S
Securelist
G
Google Developers Blog
The Last Watchdog
The Last Watchdog
Google Online Security Blog
Google Online Security Blog
美团技术团队
F
Fortinet All Blogs
小众软件
小众软件
Recorded Future
Recorded Future
V
Visual Studio Blog
B
Blog RSS Feed
H
Help Net Security
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
博客园 - 聂微东
Stack Overflow Blog
Stack Overflow Blog
Martin Fowler
Martin Fowler
Latest news
Latest news
Spread Privacy
Spread Privacy
H
Heimdal Security Blog

博客园 - xjb

利用PDF.js在微信小程序里预览PDF文件 用uniapp开发打包多端应用完整指南 微慕积分商城插件 微慕小程序开源版V4.6版发布 让小程序支持代码高亮 小程序富文本解析利器mp-html 微慕小程序专业版V3.8.0发布 微慕 rest api 缓存插件 微慕搜索助手插件:minapper-wechat-search 微慕小程序开源版v4.0发布 微慕小程序专业版V3.6-视频号扩展 微慕小程序专业版V3.5发布-小商店 微慕小程序开源版A标签优化说明 微慕WordPress小程序专业版v3.0发布 微慕WordPress小程序增强版v2.0发布 - xjb 微信小程序开放「分享到朋友圈」功能 微信小程序直播安装和开发指南 微慕WordPress小程序开源版v3.6发布 微信小程序订阅消息开发指南
微慕小程序专业版支持WordPress自定义短代码
xjb · 2020-08-17 · via 博客园 - xjb

微慕小程序专业版支持在文章的详情页跳转商品卡片和公众号文章卡片;不过这些跳转卡片,只能固定在小程序文章里顶部或者底部,无法放置在文章里的某个位置。因为微慕小程序后端采用的WordPress,WordPress支持短代码的功能,于是在文章的任意位置插入卡片式链接成为可能。

WordPress的自定义短代码需要支持以下3个功能:

1.在小程序的文章详情页任意位置支持卡片式链接
2.卡片式链接的跳转支持多个跳转方式:跳转本小程序,跳转其他小程序,跳转网页
3.需要兼容WordPress的页面卡片式链接显示和跳转。

自定义短代码的格式如下:
[minappershortcode qrcode=”小程序二维码图” poster=”封面图” title=”标题” appid=”小程序appid” path=”小程序页面路径” url=”网页链接” codetype=”短代码类型” redirectype=”跳转方式” description=”说明” price=”价格” buttontext=”跳转按钮文字”]

示例如下:
[minappershortcode qrcode=”https://blog.minapper.com/wp-content/uploads/2020/04/20200501080118355.png” poster=”http://shop.minapper.com/uploads/attach/2019/12/20191229/e3a071a8369baf88f469d56048c751d6.png” title=”【专业版Pro】微慕WordPress小程序专业版” appid=”wxc1771b619b83316b” path=”pages/goods_details/index?id=27″ url=”” codetype=”goods” redirectype=”miniapp” description=”最新版本V3,包含后台插件+前端小程序源码” price=”1688″ buttontext=”立即购买”]

在小程序端的效果图如下:

查看实际效果请访问:微慕小程序专业版 ,或直接可以扫描如下二维码查看实际效果:

在pc端浏览器里的效果图如下:

实际效果请访问如下链接:https://blog.minapper.com/wordpress/theme/test-shortcode.html

在手机浏览器里的效果如下:

运用wordpress短代码,可以为小程序扩展更多的功能。

-----------------------------

原文链接:https://www.watch-life.net/wordpress/minapper-shortcode.html