php - 尝试在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”>
<td><b>Bairro: </b> R$ <?php echo get_post_meta($order_id,'bairro',true) ?></td>
</tr>
<tr class=“billing_complemento”>
<td><b>Complemento: </b> <?php echo get_post_meta($order_id,'billing_complemento',true) ?></td>
</tr>
<?php
但它在网站上给出了一个致命的错误,我相信这只是某种关闭。有人来救我吗?
解决方案
推荐阅读
- python - 合并 PDF,同时保留自定义页码(又名页面标签)和书签
- r - 如何控制使用“mgcViz”包中的 plot.mgamViz 生成的 mqgam 绘图的外观(例如线条大小、线条类型、颜色)?
- php - 如何使用 curl 和 php 进行网站授权?
- c++ - 从 Yosys 导入组合逻辑有向图到 boost 库
- python-2.7 - Haddop Streaming 中的输入拆分
- angularjs - 来自 AngularJS 组件的表面信息
- python - Bokeh 混合回调函数
- html - 什么决定了(块)包含元素是否扩展(高度)以容纳子元素的边距
- python - 迭代查询的数据帧(熊猫)
- python - 在使用批处理数据集训练网络时,我应该如何跟踪总损失?