Category on listing pages

This topic contains 9 replies, has 4 voices, and was last updated by  Stiofan O’Connor 9 years, 5 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #26324

    amstourist
    Expired Member
    Post count: 185

    Hello from Amsterdam!

    For some CPT I would like to have the category shown on the listing pages.
    But I don’t get this done…..

    In the CPT setting there is a category field “Field: category(taxonomy)”.
    An option for this fiels is: “Show on listings page?”
    I selected “yes” for this option, but still the CPT category is not shown on the listing pages (while other fiels are visible with this option)

    Am I doing something wrong?

    Cheers, Jan

    #26332

    Simone
    Expired Member
    Post count: 3515

    Hello Jan, so are you planning to show the category not on the detail page, but where all the listings are listed, right? I tried and it happens the same on my test site, I will notify Stiofan about this. In the mean time you can use the code i’ve attached.

    add that in the listing-listview.php file in geodirectory/geodirectory-templates

    paste the code after

    
    
    <footer class="geodir-entry-meta"><div class="geodir-addinfo clearfix">
    

    around row 98

    You can eventually create a folder named geodirectory in your active theme, and copy the file in there, so the modification will not be lost.

    #26343

    amstourist
    Expired Member
    Post count: 185

    @Simone
    Thx for the answer. I will give it a try…..

    But, I still want the category to be displayed on the detail page, so both on detail page and on listings page (for your information: I have category 5 star hotels to 1 star hotels and I want this star-rating category on the listings page of all hotels (=CPT); this is better for my visitors when they are viewing the all hotels listing page…

    Can I still use the same code?

    Cheers, Jan

    #26344

    Simone
    Expired Member
    Post count: 3515

    For the detail page you have to tick “show in detail page”..also, have you previously modified the css maybe hiding the tags ?

    #26350

    amstourist
    Expired Member
    Post count: 185

    Hi @Simone,

    Sorry, I wasn’t clear enough I think.

    The category tags are now being displayed on detail pages (so that’s good!), but because you mentioned “so are you planning to show the category not on the detail page, but where all the listings are listed, right?” I thought you might deleted the category tags on detail pages in the attached code…

    I wanted them on listing pages as well… So I will try the code later today.

    Cheers, Jan

    #26351

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I have added this as a bug, i will reply when fixed.

    Thanks,

    Stiofan

    #26411

    amstourist
    Expired Member
    Post count: 185

    @stiofan -THX!

    #26645

    Paolo
    Site Admin
    Post count: 31206

    This has been fixed and will be in the next version.

    #26651

    amstourist
    Expired Member
    Post count: 185

    @stiofan & @paolo,

    Thx guys!

    #26660

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    🙂

Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket