Ching-Chih

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • Ching-Chih
    Participant

    Actually, 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.

    in reply to: wp-admin->Events set default sort by date #1298995
    Ching-Chih
    Participant

    Found out that it his the customize preview too, so:

    Wrapped in:

    if (is_admin() && !is_customize_preview()) { … }

    in reply to: wp-admin->Events set default sort by date #1298983
    Ching-Chih
    Participant

    Actually 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.
    in reply to: wp-admin->Events set default sort by date #1298978
    Ching-Chih
    Participant

    Excellent, that’s exactly what I needed!

    in reply to: wp-admin->Events set default sort by date #1298144
    Ching-Chih
    Participant

    Hey 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!

Viewing 5 posts - 1 through 5 (of 5 total)