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-
AuthorPosts
-
March 22, 2017 at 8:39 pm #369209
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 descriptionInstead, 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
March 23, 2017 at 2:29 pm #369332I have assigned this to the dev who implemented this, he just left for the day so he will reply tomorrow.
Thanks,
Stiofan
March 24, 2017 at 10:47 am #369492Hi 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,
KiranMarch 24, 2017 at 1:58 pm #369569This reply has been marked as private.March 24, 2017 at 3:54 pm #369603This reply has been marked as private.March 27, 2017 at 5:52 am #369996Hi Scott,
Please check and let us know if you find any problem.
Kiran
March 27, 2017 at 5:45 pm #370184This reply has been marked as private.March 28, 2017 at 9:21 am #370306Hi 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” field2) 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” fieldHope it is clear now. Let me know if category top description not working as explained above.
Thanks,
KiranMarch 28, 2017 at 2:01 pm #370394Thank 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.
March 29, 2017 at 4:23 am #370500Hi 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/3ed914cd64ad1378f9a70bd9c054f711Kiran
March 29, 2017 at 4:36 am #370504Great! That worked.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket