simpliko / wpadverts

WordPress Classifieds Plugin
https://wpadverts.com/
GNU General Public License v2.0
20 stars 11 forks source link

Hierarchical taxonomy #192

Open gwin opened 1 week ago

gwin commented 1 week ago

I was finalising the custom search form on the homepage based off my clients new structure of Province > County, when I noticed that whether advert_location is marked as hierarchical or not in the back-end, the front-end always fails to group the terms correctly.

I'll try my best to explain in more detail.

If you navigate to Classifieds > Options > Core > Types > and either Adverts Categories or Locations, there's an option to mark the tax as "hierarchical". This works well for both cats and locations in the back-end, so when not hierarchical, you cannot define any sort of parent and child term setup. However, when changing both to be hierarchical, only cats seem to work.

As things stand, both are set up the same, but if you go here https://shakeonit.co.uk/classifieds/, you'll see the category dropdown reflects the back-end, whilst the location dropdown does not.

gwin commented 1 week ago

bba1b956-bc1a-4862-80be-7b8d6bdfff86-spark-clipboard d2c508b4-0e50-493c-878c-36c6c5603402-spark-clipboard 81b8effd-f431-4429-9a50-7e9214cf37a9-spark-clipboard