Tagged: events, full width masonry, sorting
-
AuthorPosts
-
June 19, 2014 at 12:44 am #280881
After some searching, I was able to come across this article, which got me partially where I needed to go, but need help making a slight change to it…
In that function addendum, it adds the ability to sort by numerous criteria, but is missing one of the ones we need most: event date. How would adapt this function to allow sorting by event start date (from Modern Tribe’s plug-in)?
June 19, 2014 at 10:23 am #281098Hi solarmediapro!
I’m sorry but “event date” is not a default wordpress orderby/order parameter: http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters – and probably it require some additional tweaking and code customization to query the events based on the “event date”. I suggest to contact the plugin author – maybe they can provide some custom code for free and if not please hire a freelancer who can implement the event date query option.
Best regards,
PeterJune 19, 2014 at 7:27 pm #281326Is there a way to edit the element/function for an instance or duplicate it so I can affect it without affecting all instances of the full-width masonry element?
On a different note, my curiosity is if events are supported by the theme, would it not make sense to be able to sort by an event’s date? Otherwise, nothing would ever be in order, unless you either faked a post date, which could mess up all functionality or let things flow willy-nilly. I guess I just does not make sense to me that event dates had anything to do with a post date. The two are completely different types of dates for completely different needs.
June 19, 2014 at 9:18 pm #281377Hi!
The sortby is a WordPress parameter not the theme. That function gives the user the ability to easily tap into the core WordPress function but what you are looking for is to add something new to WordPress.
Events, as a post type, are supported. How they are viewed by WordPress is: a post type. The date is just some meta data added on that could easily be any other value.
Best regards,
DevinJune 19, 2014 at 11:47 pm #281448So, my question is how am I able to get a listing like this?
June 20, 2014 at 5:41 pm #281695That would be part of how the events plugin by Tribe displays events and has nothing to do with the theme.
June 20, 2014 at 6:51 pm #281731Understood.
Then here is what I need help with. How can I have a single instance (child element?) of a avia element (full-width-masonry) that has specific needs, without it affecting all of the occurrences of full-width-masonry). This way, if custom development was made, it could be limited to one instance and therefore keep the frameworks intact.
My biggest dilemma is that to achieve this minor change, I run the risk of making the theme un-updatable. Tribe points me to Kriesi, while you point me to Tribe. I know it is not meant to catch me in the middle, but it does. Surely, there has to be a solution to this without it completely breaking the frameworks both companies have built.
June 21, 2014 at 9:11 am #281932Hi!
To be honest i don’t think we can cover something like that (it’s not a minor change), you’d need to contact a developer to build an element that suits your needs. You can find someone here:
http://kriesi.at/contact/customization
http://codeable.ioBest regards,
Josue -
AuthorPosts
- The topic ‘Full width masonry sorting abilities’ is closed to new replies.