-
AuthorPosts
-
September 22, 2016 at 10:24 pm #690429
Hello. I have a portfolio page on my website showing dogs that have been adopted over the years. They are categorized by year.
My problem is I have it set to show 28 posts, with the option to “load more”. The years are 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016.
But if I only load the first 28 (don’t want to load more than that at one time) then it only shows the most recent 28 categories in the sortable option at the top. So it’s only showing dogs adopted in years 2014, 2015, 2016. Of course, if you hit the button to “load more”, then more dogs appear, and then more sortable categories for other years will appear.
But we have hundreds of dogs listed, so I need the option to sort by older years at the top, too. So even if a dog adopted in 2006 doesn’t show up because only the most recent 28 dogs show up initially, I still ned people to be able to sort by “Dogs Adopted in 2006”. That way, if someone wants to go look at a dog that was adopted in 2006, they don’t have to hit “load more” or advance several pages before they arrive at the 2006 dogs.
Does that make sense? I need all categories to be showing at the top all the time. I included the link below.
Thanks
September 27, 2016 at 5:12 am #692056Hey melzar,
Thank you for using Enfold.
We tried to access the site but we got the following warning. Please contact your hosting provider.
Deceptive site ahead
Attackers on mabbr.flywheelsites.com may trick you into doing something dangerous like installing software or revealing your personal information (for example, passwords, phone numbers or credit cards).
Automatically report details of possible security incidents to Google. Privacy PolicyUnfortunately, the sort function can only fetch entries present in the current page. It won’t be able to call items from another page. The only workaround I can think of is to either display all entries in the same page or change the query “orderby” to random.
//portfolio query add_filter( 'avia_post_grid_query', 'avia_post_grid_query_mod', 10, 2); function avia_post_grid_query_mod( $query, $params ) { $query['orderby'] = 'rand'; return $query; }It will display random entries on page load.
Best regards,
IsmaelSeptember 27, 2016 at 8:47 pm #692404Hello, thanks for your response. I responded about the hosting issue in the private section.
For the sort option, I can’t display all entries at once because there are hundreds of them, it would take the page too long to load.
I switched it to random, and that almost works. But the first time I tried it, it showed all of the filters except for one year. I guess since I’m setting it to show 28 listings, it randomly selected a dog from each year except 2009 and 2006. I know that if I refresh the page, different years will show up. But is there no way to force it to at least show 1 from every year, so I can ensure that all years show up at the top? Thanks!
September 29, 2016 at 8:39 pm #693356Bump :-)
September 30, 2016 at 10:01 am #693579Hi,
Unfortunately it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However if its really important for you to get this done, you can always hire a freelancer to do the job for you :)
Best regards,
Vinay -
AuthorPosts
- You must be logged in to reply to this topic.
