• Resolved dadadmin

    (@dadadmin)


    I did the migration of all of my events to TEC 6.0. I am using the newest versions of TEC and TEC Pro. All of my conditionals on my list views stopped working. They still work on single event pages though. I have disabled my theme and all of my customizations for TEC and tried starting from scratch with ONLY my conditional statements as customizations and it still doesn’t work with the 2024 theme.

    This is the type of conditional I was using, however I had quite a few. This is in the [my-theme]/tribe/events/v2/list/event.php file.

    <?php if (tribe_event_in_category('headliners',  $event->ID)):?>
    	<?php $this->template( 'list/event/date', [ 'event' => $event ] ); ?>
    <?php endif ?>
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Darian

    (@d0153)

    Hi @dadadmin

    Thanks for reaching out. Let me help you with this one.

    I was able to replicate the issue on my side. However, could you try replacing $event->ID with $event->_tec_occurrence_id, and see if that helps?

    I hope this helps, and please let me know if you have further questions or concerns.

    Plugin Support Darian

    (@d0153)

    Hi @dadadmin

    It appears that we haven’t heard back from you in a while, so I’ll assume that the matter has been resolved. If you need any more help, feel free to start a new thread and we’ll be happy to assist you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Category Condition stopped working after event migration’ is closed to new replies.