Forums › Forums › Search & Filter Pro › Hierarchical levels not always displaying at the correct level
Tagged: Hierarchical levels wrong
- This topic has 8 replies, 4 voices, and was last updated 8 years, 5 months ago by Trevor.
-
Anonymous(Private) December 29, 2015 at 5:36 pm #32993
Per your request, here is a new support ticket!
If you look at the Filter By Date Tags combobox on this page http://turnoutthestars.org/search/ — you can see that 1927, 1928, and 1929 are displayed at the top level, when they should be under 1920s (you can see that the count includes them), and 1934–1938 should be under 1930s, as well.
What’s weird is that SOME of the sub-categories do appear at correct level of indentation.
Ross Moderator(Private) December 31, 2015 at 1:30 am #33087Hey Gordon
We’re now closed until the 4th, but want to get this resolved quickly.
When I’m back in the office I’ll get some login details off you and take a proper look.
A couple of things:
1) S&F bases its hierarchical display of the WP function
wp_list_categories
:https://codex.wordpress.org/Template_Tags/wp_list_categories#Display_Terms_in_a_custom_taxonomy
Try to use this in your theme somewhere (ensure hierarchical is true and you specify the correct taxonomy) and let me know if you still have issues with that function?
2) I actually rewrote a bit of the hierarchical stuff recently – so I’ve emailed you the dev version if you feel like testing.
Just remember to backup the files from your current version of S&F incase you need to roll back while I’m away.
Thanks
Ross Moderator(Private) January 8, 2016 at 5:03 pm #33686Hi Gordon
I think this user may have nailed the issue:
https://support.searchandfilter.com/forums/topic/hierarchical-levels-not-always-displaying-at-the-correct-level/Does this sound like whats happening in your setup too?
Thanks
Ross Moderator(Private) January 8, 2016 at 5:32 pm #33700Sorry this was the link :/
And yup, looking at that now it seems to be the same problem
I’ll be working on this issue next 🙂
Anonymous(Private) January 8, 2016 at 5:45 pm #33702🙂 No worries. But yes, that looks like the common thread!
You can see in the images above how 1927 displays at the wrong level in Search and Filter Pro (the bottom image), and in the top image (with just the category list), that has three levels (1920s / 1927 / and the various months that have results).
It also looks like it’s the SIXTH item that breaks, although maybe this is a coincidence. But in his post, the first one that displays at the wrong level is Greece (the sixth sub-category of Europe); in mine, 1927 is the first one that displays at the wrong level, and it is the sixth sub-category of 1920s.
Ross Moderator(Private) January 12, 2016 at 2:10 pm #34010Hi Gordon
I just emailed you a fix. Let me know how you get on.
Thanks
-
AuthorPosts