Forums
Home / Fixing WordPress / Strip the_meta() html
(@christopherburton)
11 years, 10 months ago
I am using the_meta() for custom fields. How can I alter the output html to my preferred result?
Code <?php echo the_meta(); ?>
<?php echo the_meta(); ?>
Result
<ul class='post-meta'> <li><span class='post-meta-key'>Client:</span> Personal</li> </ul>
Preferred Result
<ul class="info"> <li class="info-type"><span>Client:</span> Personal</li> </ul>
(@luckdragon)
wp-includes/post-template.php
that’s where you’ll find “the_meta” function.. you’d have to “hack” the core file because I don’t believe there is a hook for it.
Worked like a charm. Thanks @luckdragon