Tagged: Alphabetical, filter, masonry element, sorting, title
-
AuthorPosts
-
June 23, 2018 at 7:42 pm #977065
Hi, I have a website that has a listing of musical performers sorted in a grid alphabetically. However, it isn’t sorting correctly. It starts off fine, but as it gets into the “H”s it starts doing wacky things.
For instance here is an occurrence of being out of order:
He Said… She Said
Hoopers – Vertical Fix
Hedge Hands Wallso… > He, Ho, & He again.
This happens throughout the sorting
I tried changing between Name (post slug) and Title and both don’t seem to sort correctly. It flips the example above – but is still out of order. (not sure why it even flips it as the post url slug starts with the same letters as the titles)
I have looked at post title, meta title, url, post-id, post date, even the category and nothing seems to be the culprit of the ordering issue.
I deactivated all of plugins – no change. (now reactivated)
I have reached my end of ideas for troubleshooting.
Can you please help me determine why it is not sorting properly and what I should do to fix it. Thank you.
It is a private membership site, so you will have to login to see the errors.
June 23, 2018 at 9:19 pm #977082Hey kubera,
I was not able to login to view your site, please check.
I found that a recommended solution for this is to try this plugin to set the order:
Taxonomy Terms OrderBest regards,
MikeJune 24, 2018 at 1:27 am #977105Hi Mike,
I fixed the login sorry about that. Password has been reset to what I provided before.June 26, 2018 at 3:16 am #977750Hi,
Thank you for using Enfold.
It’s one of the the isotope script bug where it tries to position a particular masonry item farther than where it is supposed to be located. Unfortunately, we are not sure why it’s doing that. You won’t see the issue when you’re using the Portfolio Grid element.
Best regards,
IsmaelJune 27, 2018 at 2:49 am #978216But would using the portfolio-grid mean having to rebuild all of the categories and posts in the portfolio section? Or is there a way to call the existing regular posts and categories into the portfolio area?
June 27, 2018 at 5:18 pm #978500Hi,
Thanks for the update.
I didn’t notice that you’re using regular posts. The blog posts’ grid layout could be an alternative but the layout is not quite the same as the masonry’s. Please try to edit the config-templatebuilder > aviashortcodes > masony_entries > masonry_entries.js file. Look for this code around line 54.
filters['itemSelector'] = "a.isotope-item, div.isotope-item";
Below, add this code…
filters['horizontalOrder'] = true;
Purge the cache and toggle the css/js compression in the Enfold > Performance panel. Let us know if it helps.
Best regards,
IsmaelJune 27, 2018 at 11:10 pm #978602I made sure the theme was up to date, then edited the config-templatebuilder file and did the css/js compression – but no change. I even tried in different browsers just to be sure cache was cleared.
June 27, 2018 at 11:17 pm #978603I also tried the post grid layout but that doesnt work the same as far as the alphabetical sorting selection or the display of the title and expert only on hover and having it overlay the featured image of the post. – Like the masonry does.
June 28, 2018 at 3:18 am #978675Hi,
Did you disable the js/css compression? It is still enabled when I checked the site and I can’t find the “horizontalOrder” parameter when I edited the merged js files. ( see private field )
Best regards,
IsmaelJune 28, 2018 at 4:08 am #978692It was already disabled. So, when you said to toggle it I turned it on. HA. But, I just turned them off, and it still the same thing with the sorting issue. I just checked the masonry_entries.js file in my file manager in cpanel and the “horizontalOrder” parameter is saved in the file.
June 28, 2018 at 4:09 am #978695Also, When I do a find search on the page you sent – it shows in the code
June 29, 2018 at 6:51 am #979190Any other ideas?
June 29, 2018 at 11:23 am #979266Hi,
I adjusted the “Order by” parameter from “name” to”title”. The ordering is more accurate when it is set to “title”.
Best regards,
IsmaelJune 29, 2018 at 4:35 pm #979408That is the way I originally had it. There is no change to the number of errors.
July 3, 2018 at 5:09 am #980383Anything else I can try to get the masonry to sort right?
July 5, 2018 at 2:49 pm #981621Hi,
I’m sorry for the late response. I adjusted the isotope script filter a bit.
filters['layoutMode'] = 'fitRows'; filters['packery'] = {gutter:0}; filters['percentPosition'] = false; filters['itemSelector'] = ".isotope-item:not(.av-masonry-item-no-image)";
I tried different layout modes but it is “fitRows” that works best. I also added the following css code just to make sure that the items have the same height.
.page-id-4961 #av-masonry-1 .av-masonry-entry { min-height: 189px; max-height: 189px; }
It is one of “fitRows” layout mode’s requirement.
Best regards,
Ismael- This reply was modified 6 years, 5 months ago by Ismael.
July 5, 2018 at 4:38 pm #981660THANK YOU!
I think that did the trick. It worked fine in Firefox, but I had to force the Chrome browser to refresh the cache. It seems to be working better now.
July 6, 2018 at 6:47 am #981846Hey!
Awesome! Glad we could help. Please feel free to open a new thread if you need anything else. :)
Regards,
IsmaelMarch 11, 2020 at 12:43 am #1192076SOLVED (see the following post for explanation)
Hello,
I think I have a similar issue to the above.I am using the Masonry Element with Portfolio Items and post tags.
Select Entries: Post Tag (various tag names are selected)
Filter: display all entries
Sorting: Yes, display sort options / Title / Ascending Order
Captions: Display Title / Display as centered overlay / Hide on mouse hoverI’d like a way to sort the order of the tent in alphabetical and numeric order.
Currently they sort out of order
1, 10, 11, 12, 13, 14, 15, 2, 20, 21, 3, 4, 5, 6, 7, 8, 9
Desired sorting order
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 20, 21Could you offer a solution that is able to use sorting filters with a similar look and displays alphabetically?
Thank you,
Todd- This reply was modified 4 years, 9 months ago by twhaoske. Reason: solved my own problem. Yay!
March 11, 2020 at 1:10 am #1192083SOLVED
I simply renamed my portfolio item pages as such:
01 instead of 1
02 instead of 2
03 instead of 3
and so forth. My bad, I should have tried this first. :)Now the sorting works as desired.
Please disregard my previous post, perhaps it will help someone else.
Thanks,
ToddMarch 11, 2020 at 6:57 am #1192160 -
AuthorPosts
- You must be logged in to reply to this topic.