Results 1 to 4 of 4

Thread: Display the category of a listing

  1. #1
    Marketplace Seller demonoid's Avatar
    Join Date
    Aug 2011
    Location
    Australia
    Posts
    204
    Thanks
    63
    Thanked 26 Times in 23 Posts

    Display the category of a listing

    I would like some code to display the parent category of a listing (it is in a child category of a parent category). The code is to tweak one of the Vantage widgets which will sit in the sidebar on single listing pages.

    To give you an idea of what I'm doing, I've been able to display the title of the listing with the following code, but haven't found a way to display the category:

    $title = sprintf( __("See other listings from %s", APP_TD), get_the_title( ) );

    This displays as:

    See other listings from listing title

    I want code to show:

    See other listings from parent category

    Any help would be greatly appreciated - I haven't had much luck so far!

  2. #2
    Marketplace Seller demonoid's Avatar
    Join Date
    Aug 2011
    Location
    Australia
    Posts
    204
    Thanks
    63
    Thanked 26 Times in 23 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Shannon's Avatar
    Join Date
    Mar 2011
    Location
    United States
    Posts
    577
    Thanks
    49
    Thanked 248 Times in 114 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Marketplace Seller demonoid's Avatar
    Join Date
    Aug 2011
    Location
    Australia
    Posts
    204
    Thanks
    63
    Thanked 26 Times in 23 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. Vantage 1.1 Category in Widget is Blog Category not Listing Category?
    By TheSyndicate in forum Report Vantage Bugs (Legacy)
    Replies: 1
    Last Post: August 24th, 2012, 09:50 AM
  2. [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, 10:35 AM
  3. How to display "city" in ad listing preview (in category page)
    By ramystyle in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: July 28th, 2011, 05:05 AM
  4. [SOLVED] Category listing display
    By sitopro in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: March 17th, 2011, 04:47 PM
  5. Display Ad Category In Listing Without Hyperlink?
    By jamesfrancis in forum ClassiPress General Discussion
    Replies: 5
    Last Post: February 16th, 2011, 09:35 AM