more than one if
-
Hi there,
its a great plugin to display my custum fields everywhere I need them:
[users ] [if user_field=ma-funktion value='pfr'] <h2>[user fullname]</h2> <div class=ma-image> [user image=wpcf-picture size=medium] </div> <div class=ma-kontakt> <h4>Kontakt</h4> <i class="fa fa-home"></i> [user str] [user hausnummer], [user plz] [user ort] <br> <i class="fa fa-envelope"></i> [user email] <br> <i class="fa fa-phone"></i> [user telefon] <br> <i class="fa fa-fax"></i> [user fax] <br> </div> <br> [/if] [/users]But I do not want to display th fax oder phone part if its empty. But a sedond [/if] within the first condition ends it:
[users ] [if user_field=ma-funktion value='pfr'] <h2>[user fullname]</h2> <div class=ma-image> [user image=wpcf-picture size=medium] </div> <div class=ma-kontakt> <h4>Kontakt</h4> <i class="fa fa-home"></i> [user str] [user hausnummer], [user plz] [user ort] <br> [if user_field=email]<i class="fa fa-envelope"></i> [user email] <br> [/if] [if user_field=telefon]<i class="fa fa-phone"></i> [user telefon] <br> [/if] [if user_field=fax]<i class="fa fa-fax"></i> [user fax] <br> [/if] </div> <br> [/if] [/users]Is there possibility to get my code fixed?
Thanks a lot.
The topic ‘more than one if’ is closed to new replies.