Forums

How do I display custom fields in the Twentyten theme? (3 posts)

  1. greatdanemaniac
    Member
    Posted 1 year ago #

    I really need help on this one!

    Exactly where does the code for custom fields go in the loop so that I can display them. There's no need for support of custom fields if they are not shown automatically, right?

    In the TT theme, I'm finding it really difficult to know exactly what code is supposed to go where to display them correctly.

    It's only basic use of custom fields I'm interested in, so wheres the code for it???

    Is there a plugin who takes care of this so that I don't have to?

    I know what the different kind of tags there could be, like:

    • add_post_meta
    • the_meta
    • get_post_custom

    etc...
    Please help me!!!

    //Anna-Maria

  2. davoscript
    Member
    Posted 1 year ago #

    Hi there!

    To display the custom fields you have to use this function inside the loop:

    <?php the_meta(); ?>

    For more information about it, check this link: http://codex.wordpress.org/Template_Tags/the_meta

    Regards greatdanemaniac!

  3. keesiemeijer
    moderator
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic