• Resolved andifidi

    (@andifidi)


    Hello, how can I display the ‘Status’ field in the sidebar.
    The ‘Status’ field is shown in the detail view (status via the Canceled, Postponed and Online Events extension). How can I use CSS in the sidebar

Viewing 1 replies (of 1 total)
  • Plugin Support Santiago

    (@sjaure)

    hi @andifidi ,
    Thanks for reaching out,

    Just to be clear, you mean showing the status of the event in the list widget located on the sidebar?
    If that is the case you will need to create a custom template for this file:
    /the-events-calendar/src/views/widgets/list-widget.php

    you will need to place a copy of that file in a directory within your theme directory like this: [your-theme]/tribe-events/widgets/

    Once you have the file there, you need to get the event status. This line of code should work: $status = get_post_meta( $post_id, '_tribe_events_control_status', true );

    Then you need to decide how and where to display the $status. You can do echo $status; just to verify it works.

    Let me know how it goes
    Best
    Santiago

Viewing 1 replies (of 1 total)
  • The topic ‘Status Field in the Sitebar’ is closed to new replies.