我试图从标签名称中删除URL。请让我知道。如何做到这一点。截图链接- https://i.ibb.co/grSPH7t/Screenshot-1.png
感谢Try By Code:
<?php
$postalltags = get_the_tags();
if ($postalltags) {
foreach($postalltags as $singletag) {
echo $singletag->name . ' ';
}
}
?>