我有以下代码,正常的 href
无法添加到按钮的链接。有什么想法吗?
<p style="text-align: center;">
[
service pattern = "boxpattern-1"
bgcolor = "#ffffff"
icon = "http://www.aquaflowright.com/wp-content/uploads/2017/01/cogwheel.png"
title = "Services"
button = "Learn More"
]Surveys, Testing, Installation, Repair, Maintenance, Notices, and Revenue Assurance[/service]</p>
最佳答案
如果这是在代码中,使用 do_shortcode():
<?php echo do_shortcode('[service pattern="boxpattern-1" bgcolor="#ffffff" icon="http://www.aquaflowright.com/wp-content/uploads/2017/01/cogwheel.png" title="Services" button="Learn More" ]'); ?>
关于php - Wordpress 添加按钮链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42369267/