Help Desk

Sorting users and events

  • Posts: 39 Topics: 42
    | Permalink

    I have a few questions regarding sorting users and events through admin.

    1. I have added a plugin called recently registered to sort users by the date of registration. Did I do it right or this feature can be used without any plugin?

    2. When I sort community events, it sorts through the event date. Is there any way to sort events by the posting date. This will help me look for postings added recently or during the specific time?

    3. Today when I sorted users all users showed 0 (zero under posts) even if the added events.

    4. One of the users listed was Admin. I never allowed anyone to be admin. So I deleted it

    Posts: 533
    | Permalink

    Hi there,

    Thanks for email support. So you added a 3rd party plugin to do this sorting?

    Thanks,
    Brendan

    Posts: 39 Topics: 42
    | Permalink

    Yes I did. Its called recently registered. But I will prefer if there is another way to sort user by registration date.
    As I mentioned I am also interested in sorting events by post dates.
    I also want to be able to see number of events that different users have posted but number of posts was zero in front of all users?
    Thanks for helping during holidays

    Posts: 533
    | Permalink

    Hi Shah,

    Can you try adding this in your functions.php file in your theme?

    function tribe_post_date_ordering( $query ) {
    if ( ! empty( $query->tribe_is_multi_posttype ) ) {
    remove_filter( 'posts_fields', array( 'Tribe__Events__Query', 'multi_type_posts_fields' ) );
    $query->set( 'order', 'DESC' );
    $query->set( 'eventDisplay', 'custom' );
    }
    }
    

    This will give you the option to sort by post date.

    Let me know if that works.

    Thanks,
    Brendan

You must be logged in and hold an active support license to create new topics in the help desk. Please visit our products store to purchase a license.

Subscribe to Updates