• Resolved christopherburton

    (@christopherburton)


    I am using the_meta() for custom fields. How can I alter the output html to my preferred result?

    Code
    <?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>

Viewing 2 replies - 1 through 2 (of 2 total)
  • luckdragon

    (@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.

    Thread Starter christopherburton

    (@christopherburton)

    Worked like a charm. Thanks @luckdragon

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Strip the_meta() html’ is closed to new replies.