2017-07-20 59 views
0

我的WordPress:版本:4.8 插件:高級自定義字段:版本4.4.11WYSIWG編輯是不是給輸出與適當的HTML標籤

我已經創建自定義字段:詳細 字段類型:WYSIWG編輯

源代碼的數據:

<p>From The Architect - The Split House negotiates a complex range of conditions typical of emerging coastal developments. New houses for ‘downsizers’ in a suburban mode, paved driveways and letterboxes prevail, vying for the expansive views to Port Philip Bay, and backed by the relatively wild, coastal woodland of Mt Martha Public Park. The Split House provides a range of spatial relationships to its site and the broader territory that carefully balances the owners’ desire for privacy and engagement with their surrounds. The house comprises two relatively simple volumes linked by a splayed stair that also acts as a seating area for people to gather, listen to music, sit in the sun. Occupying separate levels that follow the natural contours of the site, the two pavilions provide a separation between the upper, main living/master bedroom zone and rumpus room/guest bedrooms below. Through the curation of windows and doors a range of direct and indirect connections to the landscape provide multiple opportunities for occupation throughout the year. Smaller elements, such as integrated seating, stairs and study nooks provide spaces for quiet contemplation, juxtaposed with larger communal areas for family and friends to come together.</p> 
<p>The award-winning house was designed for a couple who have an eye on retirement, with two adult children who moved out of the family home, the idea was to create a retreat that would bring the family together on weekends and over the summer months.</p> 
<p><a href="http://www.mudoffice.com.au/">MUD OFFICE</a> helped to finish off a beautifully executed home by providing the landscape that flows around the house.</p> 

當我檢查在前端的輸出:

<p>From The Architect - The Split House negotiates a complex range of conditions typical of emerging coastal developments. New houses for ‘downsizers’ in a suburban mode, paved driveways and letterboxes prevail, vying for the expansive views to Port Philip Bay, and backed by the relatively wild, coastal woodland of Mt Martha Public Park. The Split House provides a range of spatial relationships to its site and the broader territory that carefully balances the owners’ desire for privacy and engagement with their surrounds. The house comprises two relatively simple volumes linked by a splayed stair that also acts as a seating area for people to gather, listen to music, sit in the sun. Occupying separate levels that follow the natural contours of the site, the two pavilions provide a separation between the upper, main living/master bedroom zone and rumpus room/guest bedrooms below. Through the curation of windows and doors a range of direct and indirect connections to the landscape provide multiple opportunities for occupation throughout the year. Smaller elements, such as integrated seating, stairs and study nooks provide spaces for quiet contemplation, juxtaposed with larger communal areas for family and friends to come together.The award-winning house was designed for a couple who have an eye on retirement, with two adult children who moved out of the family home, the idea was to create a retreat that would bring the family together on weekends and over the summer months. 
<a href="http://www.mudoffice.com.au/">MUD OFFICE</a> 
helped to finish off a beautifully executed home by providing the landscape that flows around the house. 
</p> 

它沒有給高級自定義字段的Wysiwg編輯器中寫入的輸出。有人能幫我找出這個問題嗎?

+0

我覺得你的插件是不恰當的嘗試與https://www.elegantthemes.com/blog/tips-tricks/how-to-創建wordpress自定義字段 –

回答

0

你試圖用apply_filters你會得到正確的輸出:

<?php echo apply_filters('the_content', get_post_meta($post->ID, 'custom_field_name', true)); ?> 
+0

嗨,我不通過代碼創建此字段。它是通過該編輯器的插件。與某些數據輸出可能會有衝突,但我無法弄清楚。 –

相關問題