Category Descriptions by City, Region and Default

This topic contains 10 replies, has 3 voices, and was last updated by  Scott Harris 8 years ago.

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

Open Support Ticket
  • Author
    Posts
  • #369209

    Scott Harris
    Lifetime Member
    Post count: 74

    I am trying to setup category descriptions such that there’s a different description for each category/location level (default, region and city). It seems like I should be able to do this with the different options you offer, but it’s not working as expected. I’m using geotravel theme.

    Here’s what I’d expect to happen:

    http://www.site.com/place/category – This should show the default category top description if that option is checked and hopefully remain once unchecked.
    http://www.site.com/place/region/category – This should show the category+region top description
    http://www.site.com/place/region/city/category – This should show the category+city top description

    Instead, what I’m seeing is:

    http://www.site.com/place/category – I can get a description to appear here, but only when I check the box to “Use Description of Default for All Locations”. That disables the ability to enter City or Region descriptions.
    http://www.site.com/place/region/category – When the description is added and the use description default is unchecked, I can’t see the description.
    http://www.site.com/place/region/city/category – This does work as expected.

    Am I using this incorrectly? I am hoping that I can add descriptions at each level.

    Thanks

    #369332

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    I have assigned this to the dev who implemented this, he just left for the day so he will reply tomorrow.

    Thanks,

    Stiofan

    #369492

    Kiran
    Moderator
    Post count: 7069

    Hi Scott,

    On my test site, the category top description working fine for all location + category pages. Please provide us your site Admin/FTP credentials to look into your site?

    Thanks,
    Kiran

    #369569

    Scott Harris
    Lifetime Member
    Post count: 74
    This reply has been marked as private.
    #369603

    Stiofan O’Connor
    Site Admin
    Post count: 22956
    This reply has been marked as private.
    #369996

    Kiran
    Moderator
    Post count: 7069

    Hi Scott,

    Please check and let us know if you find any problem.

    Kiran

    #370184

    Scott Harris
    Lifetime Member
    Post count: 74
    This reply has been marked as private.
    #370306

    Kiran
    Moderator
    Post count: 7069

    Hi Scott,

    Let me explain how it should work.

    1) If “Category Top Description” Un-Ticked
    > http://www.xyz.com/attorney/business-law-attorneys/ will display default description from main “Description” field
    > http://www.xyz.com/attorney/california/business-law-attorneys/
    IF the description available for “california” then it will display that REGION-category description OTHER WISE it will display default description from main “Description” field
    > http://www.xyz.com/attorney/california/san-jose/business-law-attorneys/
    IF the description available for “san-jose” then it will display that CITY-category description OTHER WISE it will display default description from main “Description” field

    2) If “Category Top Description” Ticked
    For all type of category pages
    > http://www.xyz.com/attorney/business-law-attorneys/
    > http://www.xyz.com/attorney/california/business-law-attorneys/
    > http://www.xyz.com/attorney/california/san-jose/business-law-attorneys/
    It will display the description which is available for field below of “Category Top Description” label, OTHER WISE if that description is empty then it will display default description from main “Description” field

    Hope it is clear now. Let me know if category top description not working as explained above.

    Thanks,
    Kiran

    #370394

    Scott Harris
    Lifetime Member
    Post count: 74

    Thank you for the detailed explanation. This is a great setup. The only remaining problem is that the “description” field is not html enabled, but the others are – category + city top description and category + region top description fields.

    If I add in h1 or li tags to the description field, they get stripped although the strong tags stay. Can I request that you html-enable the description field? Otherwise when people developing GD websites want to use all three options, it’s not consistent. In my model, I’ve set buttons on the home page that take people to the default level, so that field formatting properly is the most important of the three. I assume that users would start at the top category level and then drill down to their region or city from there. My goal is to provide relevant and different text at each level.

    #370500

    Kiran
    Moderator
    Post count: 7069

    Hi Scott,

    WordPress does not allows HTML tags in category & tag descriptions. But you can use code snippet which allows to use HTML tags in category description.
    Use this code snippet to allow HTML in category descriotions: https://gist.github.com/kprajapatii/3ed914cd64ad1378f9a70bd9c054f711

    Kiran

    #370504

    Scott Harris
    Lifetime Member
    Post count: 74

    Great! That worked.

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount