首页 > 解决方案 > 尝试在functions.php Wordpress上添加代码片段时出现致命错误

问题描述

我正在尝试functions.php在 Wordpress 中对我的网站进行过滤,以显示客户发票上的一些信息:

echo get_post_meta($order_id,'bairro',true) . get_post_meta($order_id,'billing_complemento',true);

我尝试了以下方法,它正在一起检索信息,我想将它分成几行。我试过这样:

    <tr class=“bairro”&gt;
            <td><b>Bairro: </b> R$ <?php echo get_post_meta($order_id,'bairro',true) ?></td>
        </tr>
 <tr class=“billing_complemento”&gt;
            <td><b>Complemento: </b> <?php echo get_post_meta($order_id,'billing_complemento',true) ?></td>
        </tr>
        <?php 

但它在网站上给出了一个致命的错误,我相信这只是某种关闭。有人来救我吗?

标签: phpcsswordpressfunctionfilter

解决方案


推荐阅读