Support » Fixing WordPress » if statement for a custom field

  • Resolved julianens

    (@julianens)


    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?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘if statement for a custom field’ is closed to new replies.