我有Wordpress:版本:4.8 插件:高级自定义字段:版本4.4.11
我创建了自定义字段:详细信息 字段类型: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 :(得分:0)
尝试使用apply_filters时,您将获得正确的输出:
<?php echo apply_filters('the_content', get_post_meta( $post->ID, 'custom_field_name', true )); ?>