我正在用wordpress开发网站,以防我的问题我想从主页上删除h1和h2标签。我想得到唯一的孩子p标签get_the_content()
<p id="main">
<?php
echo wp_trim_words(get_the_content(),20, \'...\' ); ?>
</p>
主页获取此页的内容<h1 class="entry-title">Set and Furniture Design</h1>
<h2 class="green-pd">Set Design</h2>
<p id="para">A Bachelor pad was to be designed for a cookery show called \'Cook na kaho\' for the Star One TV channel. Props for same were purchased from various home stores and the set was installed with in four days of starting work.</p>
<h2 class="green-pd">Furniture Design</h2>
<p>The 600mm X 1500mm rectangular centre table used the Indian screen called jaaliwork as supports to the table top for breaking the monotony of solidity and straight lines.</p>
请帮帮我非常感谢。