Forum Replies Created
-
AuthorPosts
-
June 17, 2017 at 3:59 pm in reply to: Using the [tribe_mini_calendar] list view as the default "View as: List" #1299693
Ching-Chih
ParticipantActually, not just View as List, but the Day view as well. I like how concise it is on presenting the events.
Users can click for additional information. Again, I think it looks better, particularly on mobile.
Ching-Chih
ParticipantFound out that it his the customize preview too, so:
Wrapped in:
if (is_admin() && !is_customize_preview()) { … }
Ching-Chih
ParticipantActually I stand corrected, the admin view does sort correctly, but now when I view my WP site, I get an “undefined function get_current_screen()”
However if I wrap my code in:
if (is_admin()) { … }
Then everything works. Thanks again!
-
This reply was modified 8 years, 10 months ago by
Ching-Chih.
-
This reply was modified 8 years, 10 months ago by
Ching-Chih.
Ching-Chih
ParticipantExcellent, that’s exactly what I needed!
Ching-Chih
ParticipantHey Courtney,
Thanks for the pointer. That gives me the option to add different sorting options, but my goal is that when I or a user views the admin view of the Events list, that it sorts by the start-date, ascending by default.
Right now it sorts by start-date, descending and I have to manually click on the date to sort it ascending.
Any pointers to code in WP or The Event Calendar to change this default behavior would be great!
-
This reply was modified 8 years, 10 months ago by
-
AuthorPosts
