strip_tags
似乎是您想要的:
<?php echo strip_tags(the_excerpt()); ?>
<?php
$myExcerpt = get_the_excerpt();
$tags = array("<p>", "</p>");
$myExcerpt = str_replace($tags, "", $myExcerpt);
?>
</span>
<span class="address-place">
<?php echo $myExcerpt; ?>
<hr>
</span>
The answer is here. Maybe it will be useful for someone. get_the_excerpt()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.