Tagged: date
-
AuthorPosts
-
April 28, 2016 at 2:22 pm #623761
Hello,
I am trying to get the masonry gallery to sort on ascending date, but it sorts on, I think, on page id. Even when I set it on the option to to it by date. How can I change this?April 28, 2016 at 2:24 pm #623766Hey Eline!
Cheers!
YigitApril 28, 2016 at 2:42 pm #623786Hi Yigit!
Thanks for your super quick response.
I tried it right away, but it didn’t work. The other sort options, like on title or, last modified, that works, but not on date. I have used Event Manager, can it be something with how the date is recognized. Does it have to be a certain way writing the date? I used now dd/mm/yy and l d F Y .May 2, 2016 at 9:34 am #625571Hi,
I’m sorry for the confusion. You don’t need to do the modification suggested above because the “Order by” and “Order” settings are already included in the masonry options by default. Note that if you set the orderby parameter to “date”, it will sort the events by published date, not the actual event date. If you want to sort the item by actual event date, set the “Orderby” settings to “Page Order” then add this in the functions.php file to enable the “Order” field in the events editor:
add_filter('tribe_events_register_event_type_args', 'tribe_events_register_event_type_args_mod', 10, 1); function tribe_events_register_event_type_args_mod($args) { $args['supports'][] = 'page-attributes'; return $args; }
Edit the events then set the order value in the “Order” field.
Best regards,
IsmaelMay 2, 2016 at 11:30 am #625653Hi Ismael,
I’ve put the code you gave in the functions.php, and did what you mentioned above, but nothing happens.
Maybe I am looking in the wrong place, but I can’t find the “order’ field when I adjust the events.It is strange cause at the backend WordPress sorts the events on the right way and if there are all these default options, it should be possible, i think.
Best wishes, Eline
May 4, 2016 at 10:03 am #627021Hi,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
- the URL to the login screen
- a valid username (with full administration capabilities)
- as well as a password for that username
Best regards,
AndyMay 4, 2016 at 2:16 pm #627238Hi Andy,
Hope you can find it, here are the loging credentials.
Best wishes, Eline
May 7, 2016 at 4:18 am #628533Hi,
My bad. I thought you’re using the Events Calendar by Modern Tribe. Note that the Events Manager is not fully configured in the theme so we don’t provide support for it as stated on our supports policy. Please ask the plugin author if there is an available filter like the one we provided above. It is use to modify the register_post_type arguments. I’m sure they’ll know what to do.
Best regards,
IsmaelMay 10, 2016 at 5:04 pm #630105Hi Ismael,
I will check it with the guys from Event manager to find a solution. Thank you so far for helping me to find the solution.
Best regards, Eline -
AuthorPosts
- The topic ‘Masonry gallery ascending order on date’ is closed to new replies.