Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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?

    #623766
    #623786

    Hi 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 .

    #625571

    Hi,

    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,
    Ismael

    #625653

    Hi 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

    #627021

    Hi,

    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,
    Andy

    #627238

    Hi Andy,

    Hope you can find it, here are the loging credentials.

    Best wishes, Eline

    #628533

    Hi,

    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,
    Ismael

    #630105

    Hi 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

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Masonry gallery ascending order on date’ is closed to new replies.