December 18th, 2014 at 10:27 AM
(This post was last modified: December 18th, 2014 at 10:27 AM by Harry K..)
I can't seem to work out how to only display certain content only if multiple custom profile fields have been filled in.
The custom profile fields are:
- Ad BG Image
- Ad Name(1 word)
- Ad link
if all of these fields are filled in, I want it to show the content, however if only 1 or 2(or none) of them are, I don't want it to display. I know this can be done in PHP, but I suck at that, haha, so I need some guidance.
Basically it would be something like this(I think):
The content that I want putting in there, is as follows:
The custom profile fields are:
- Ad BG Image
- Ad Name(1 word)
- Ad link
if all of these fields are filled in, I want it to show the content, however if only 1 or 2(or none) of them are, I don't want it to display. I know this can be done in PHP, but I suck at that, haha, so I need some guidance.
Basically it would be something like this(I think):
PHP Code:
<?php
if (**ALL FIELDS ARE FILLED IN** == true?) {
then display the content
} else {
dont display the content
}
?>
The content that I want putting in there, is as follows:
Code:
<div class="ui dimmable image" id="dim" style="float:right;margin-top:20px;">
<div class="ui dimmer">
<div class="content">
<div class="center">
<div class="ui inverted button">SOCIAL+</div>
</div>
</div>
</div>
<img src="http://i.imgur.com/EkXHK5R.png" class="ui image rounded">
</div>
</div>