WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] if statement for a custom field (3 posts)

  1. julianens
    Member
    Posted 5 years ago #

    how can I write a if statement for this:

    I have various custom fields for images: img1, img2, img3, img4, etc.

    and in the xhtml I have a div class named s1 for these images.

    what I wanted to do is if theses images exists.. apply this <div class="s1">
    if not do not.. don't write it into the code. because there will be something else in place.

    anyone can help, please?

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    if these images exist

    Images? Or if these custom fields exist?

  3. Mark / t31os
    Moderator
    Posted 5 years ago #

    You could really do with expanding on exactly what it is you want to do...

    It's a bit too vague to suggest anything... :(

Topic Closed

This topic has been closed to new replies.

About this Topic