Results 1 to 1 of 1

Thread: Grabbing term's slug on Ad pages

  1. #1
    Thread Starter
    nblanchette's Avatar
    Join Date
    Aug 2013
    Location
    Canada
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Grabbing term's slug on Ad pages

    This is probably a very stupid question but - I've got a script pulling the term's slug on the Category indexes (for ad serving purposes) working flawlessly. However, I'm running into issues pulling that same slug on the ad pages themselves. Could someone correct me here please and thank you?

    The code I'm using on the Category indexes:
    PHP Code:
    $term get_queried_object();
    $listing_cat $term->slug
    The term I've been attempting to use on the Ads:
    PHP Code:
    $term get_the_terms$post->ID'ad_cat');
    $listing_cat $term->slug

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to create Job Category dropdown and to replace its link to term->slug?
    By maorlast in forum JobRoller General Discussion
    Replies: 1
    Last Post: July 21st, 2012, 11:11 AM
  2. How to create Job Category dropdown and to replace its link to term->slug?
    By maorlast in forum JobRoller General Discussion
    Replies: 1
    Last Post: July 21st, 2012, 11:11 AM
  3. how to redirect the old store slug to new store slug?
    By couponspicy in forum Report Clipper Bugs
    Replies: 2
    Last Post: May 5th, 2012, 06:55 AM
  4. Search Term Landing Pages? Is it possible?
    By jobortunity in forum JobRoller General Discussion
    Replies: 3
    Last Post: February 28th, 2012, 05:55 PM
  5. [SOLVED] How can I display slug of parent category/term on a child category/term page?
    By cubtuc in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: November 10th, 2011, 11:35 AM