Home › Forums › Calendar Products › Community Events › Sorting users and events
- This topic has 5 replies, 2 voices, and was last updated 6 years, 3 months ago by Shah.
-
AuthorPosts
-
December 27, 2017 at 3:36 pm #1413599ShahParticipant
I have a few questions regarding sorting users and events through admin.
-
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?
-
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?
-
Today when I sorted users all users showed 0 (zero under posts) even if the added events.
-
One of the users listed was Admin. I never allowed anyone to be admin. So I deleted it
December 27, 2017 at 9:55 pm #1413727BrendanKeymasterHi there,
Thanks for email support. So you added a 3rd party plugin to do this sorting?
Thanks,
BrendanDecember 27, 2017 at 10:35 pm #1413731ShahParticipantYes 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 holidaysJanuary 3, 2018 at 9:57 pm #1417673BrendanKeymasterHi 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,
BrendanJanuary 25, 2018 at 8:36 am #1435990Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
-
AuthorPosts
- The topic ‘Sorting users and events’ is closed to new replies.