Forums

[resolved] Only showing div if custom fields exist? (2 posts)

  1. Dalton Rooney
    Member
    Posted 4 years ago #

    Hi there,
    I would like to show a div on my index.php template with some text and custom fields, but only if custom fields exist for that post. If there are no custom fields, then I don't want the div to show up at all.

    I know this has something to do with detecting whether or not 'the_meta' has a value, but I'm not very good with PHP. Can someone help me out?

    Thanks,
    Dalton

  2. Dalton Rooney
    Member
    Posted 4 years ago #

    Well a fresh look in the forums always helps. Turns out that this was my answer: http://wordpress.org/support/topic/124478

Topic Closed

This topic has been closed to new replies.

About this Topic