Results 1 to 4 of 4

Thread: How to do an IF statement?

  1. #1
    Thread Starter
    Member nickcollins's Avatar
    Join Date
    Mar 2012
    Location
    United Kingdom
    Posts
    88
    Thanks
    2
    Thanked 5 Times in 4 Posts

    How to do an IF statement?

    Hi

    I have got rid of the default settings which show the Street, Zip, Ad start, Ad expiry etc.

    I am now doing it manually which in turn lets me style it. But I have a problem, if the user does not tick the box then the tick still appears with blank space next to it!
    So this code here:

    <li class="tick"><?php echo get_post_meta($post->ID,'cp_pool',true); ?> </li>

    I have a field called "Pool" which people tick if they have a pool. 95% of the people will have a pool so it is no issue, but for the ones who do not, they are not going to tick the box. But the tick image I am using still appears!

    So I want it so that if they tick the box, then the field is shown with the <li> class thing but if they do not tick the box, nothing appears. How do I do this?

    Thanks

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,982
    Thanks
    170
    Thanked 3,408 Times in 3,279 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Thread Starter
    Member nickcollins's Avatar
    Join Date
    Mar 2012
    Location
    United Kingdom
    Posts
    88
    Thanks
    2
    Thanked 5 Times in 4 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Thread Starter
    Member nickcollins's Avatar
    Join Date
    Mar 2012
    Location
    United Kingdom
    Posts
    88
    Thanks
    2
    Thanked 5 Times in 4 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. singular statement of active and unreliable coupons
    By freshjustin in forum Report Clipper Bugs
    Replies: 1
    Last Post: October 23rd, 2011, 11:46 AM
  2. Job Type Conditional Statement Help
    By fluidcue in forum Report JobRoller Bugs
    Replies: 1
    Last Post: February 9th, 2011, 10:00 AM
  3. Conditional Statement for Getting the ad_cat
    By pauln in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: January 17th, 2011, 08:42 AM
  4. Function statement for dynamic login form in header
    By juliusnkemdiche in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: November 15th, 2010, 08:01 AM
  5. [MOD NEEDED] If / Else statement for Homepage login/list an ad
    By dschn1978 in forum ClassiPress General Discussion
    Replies: 3
    Last Post: September 11th, 2010, 11:37 AM