0
我要發表的內容,如波紋管的HTML代碼,你可以看到該分區<div class='pbg_info'
我想作爲後使用$post->post_content="
HTML和其他任何方式如何進行後> POST_CONTENT爲HTML
股利類的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>";
與此代碼我得到這樣的輸出。我期待使用此代碼在此處顯示一個按鈕。
data-purchase-image-url=’http://example.com/picture.png’
data-purchase-name=’Awesome Escape’
data-purchase-inventory-id=’ESCAPE-23′
data-purchase-cost=’100′
data-purchase-currency=’CAD’
data-purchase-link-url=’http://example.com/property’
data-purchase-description=’Great rental for 3 people with lake view.’ >