• Resolved tm86

    (@tm86)


    Hi,
    i would like to hide all events with no expirtaion date 1 day after start date. I dont use any “listing expiry date” for my events yet. I only use start date. In that case, my events never stop. I would need a php line like “if no expiry date, then hide after 1 day”. Something like that. Most advents have a duration of 1 day, thats why i dont need the form for expiry date.
    Also the layout for event start date looks strange. In event list view it shows the start date and then the date of today conntected with a hyphen. So it looks like all events end on the date of today. See here
    https://i.ibb.co/SnDtjtn/Unbenannt.jpg
    How do i remove the date of today?
    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hitesh Makvana

    (@hiteshmakvana)

    Hi @tm86,
    We just have two option expired events after specific days or set event end date as the expiry date. If you want to customize this then you need to bind custom value with post transition hook
    and udpate the meta key _event_expiry_date value as per your needs

    update_post_meta( $post->ID, '_event_expiry_date', 'YOUR VALUE HERE' );

    Hi @tm86
    We haven’t heard from you for a while. I am resolving this thread for now. If you still have any issue please create a new thread.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Expired events not hidden’ is closed to new replies.