-
AuthorPosts
-
December 6, 2021 at 11:37 am #1331681
I’m using the Masonry Gallery Element on https://fritztechnologie.dev10.econsor-programming.de/ , if I add stuff to the grid, it only shows the categories and filters of the portfolio items that are currently visble.
Only after when I press ‘Load ‘More’, it shows all categories.
Is it possible to show all categories from the start?Scrolling through here, I saw that this problem has existed for a while now, have you found a solution for this problem yet?
December 6, 2021 at 2:00 pm #1331709Hey emilconsor,
Thank you for the inquiry.
It is possible but clicking on the “empty” sort items will do nothing. It will not automatically load items that are not visible in the current page or items that are not yet loaded. If you want to continue or if you want to display the empty items, try to add this filter in the functions.php file.
add_filter("avf_masonry_term_args", function($args) { $args["hide_empty"] = false; return $args; }, 10, 1);
Best regards,
IsmaelDecember 6, 2021 at 4:05 pm #1331727Hi,
Thank you for the quick reply. But adding the code didn’t quite do the job.
Let me describe my issue in more detail:
I created a couple of portfolio items with 6 different portfolio categories.
There will only be 8 portfolio items displayed on the masonry-gallery that is used on the page, you can add more by clicking “load more”.
I also activated the filter option for masonry-galleries. Right now, the portfolio categories depend on the displayed portfolio items. I want all portfolio categories to be shown in the filter at all times. Is there a way to show all portfolio categories without having to click “load more”Here you can see examples of what i mean. There are only 4 out of 6 categories shown.
https://share-your-photo.com/dc73b94fa4
There are only 2 out of 6 categories shown.
https://share-your-photo.com/8408e8c52a
Best regards,
Emil- This reply was modified 2 years, 11 months ago by emilconsor.
December 7, 2021 at 4:48 am #1331783Hi!
Is there a way to show all portfolio categories without having to click “load more”
That is not possible, unfortunately. As we mentioned above, the sort category can only filter posts that are already visible in the page. It cannot load or retrieve posts that are not yet loaded. You may need to look for a plugin with the same filter option that can dynamically load or retrieve posts from the database.
Regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.