Results 1 to 2 of 2

Thread: Conditional Statement for Getting the ad_cat

  1. #1
    Thread Starter
    Member pauln's Avatar
    Join Date
    Apr 2010
    Location
    United Kingdom
    Posts
    94
    Thanks
    2
    Thanked 4 Times in 3 Posts

    Conditional Statement for Getting the ad_cat

    Please could someone help me. I need a little bit of code and I have been struggling all day with it.

    All I need is a simple conditional statement that lets me show a variable message depending on the ad_cat slug.

    So I need the php for:

    PHP Code:
    If this is an ad category with the slug 'electronics' {

    echo 
    'One Thing';

    }

    else {

    echo 
    'Another Thing';


    I need to use this on single-ad_listing.php

    Many thanks.

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,695
    Thanks
    166
    Thanked 3,388 Times in 3,259 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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Function statement for dynamic login form in header
    By juliusnkemdiche in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: November 15th, 2010, 07:01 AM
  2. Function statement for dynamic login form in header
    By juliusnkemdiche in forum ClassiPress General Discussion
    Replies: 1
    Last Post: November 15th, 2010, 07:01 AM
  3. [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, 10:37 AM
  4. Conditional display image ?
    By Caryl in forum ClassiPress General Discussion
    Replies: 3
    Last Post: April 9th, 2010, 07:15 AM