Wordpress 如何发布->;以Html形式发布内容
我必须在下面的代码中以html的形式发布内容,您可以看到divWordpress 如何发布->;以Html形式发布内容,wordpress,post,Wordpress,Post,我必须在下面的代码中以html的形式发布内容,您可以看到divpost_content=“和任何其他方式 div类“pbg_info”是按组支付网关的脚本,用于显示“支付组”按钮 如果有人知道如何做到这一点,请告诉我 $post->post_content=" <div class='pbg_info' data-purchase-image-url='http://example.com/picture.png' data-purchase-name='Aw
post_content=“
和任何其他方式
div类“pbg_info”是按组支付网关的脚本,用于显示“支付组”按钮
如果有人知道如何做到这一点,请告诉我
$post->post_content="
<div class='pbg_info'
data-purchase-image-url='http://example.com/picture.png'
data-purchase-name='Awesome Escape'
data-purchase-inventory-id='ESCAPE-23'
data-purchase-cost='"<?php echo $price;" ?>'
data-purchase-currency='CAD'
data-purchase-link-url='http://example.com/property'
data-purchase-description='Great rental for 3 people with lake view.' >
</div>
<script src='https://cdn.paybygroup.com/snippet/v2/loader.js?merchant_id=example'>
</script>";
我认为您必须在输出之前过滤该内容,这意味着您必须使用如下代码:
<?php
$content=$post->post_content;
echo apply_filters('the_content', $content);
?>
我认为您必须在输出之前过滤该内容,这意味着您必须使用如下代码:
<?php
$content=$post->post_content;
echo apply_filters('the_content', $content);
?>
我认为您必须在输出之前过滤该内容,这意味着您必须使用如下代码:
<?php
$content=$post->post_content;
echo apply_filters('the_content', $content);
?>
我认为您必须在输出之前过滤该内容,这意味着您必须使用如下代码:
<?php
$content=$post->post_content;
echo apply_filters('the_content', $content);
?>