"Include events in main blog loop : How to show "event-image"

Home Forums Calendar Products Events Calendar PRO "Include events in main blog loop : How to show "event-image"

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #66600
    mastres
    Participant

    http://awesomescreenshot.com/04e1q8pi94 here you can see coments
    “This is the code you gave me:

    lines 110-113

    if ( $query === $wp_the_query && $query->is_main_query() && tribe_get_option( ‘showEventsInMainLoop’, false ) && !is_page() && !is_admin() && !is_single() && !is_singular() && ( ( is_home() && !$query->tribe_is_event_query ) || is_archive() || is_category() || is_tax() ) ) {
    $query->query_vars[‘post_type’] = isset( $query->query_vars[‘post_type’] ) ? (array) $query->query_vars[‘post_type’] : array( ‘post’ );
    $query->query_vars[‘post_type’][] = TribeEvents::POSTTYPE;
    }

    I meant to say, instead of using what you’ve given me, use the code below int the exact same place:

    $query->query_vars[‘post_type’] = isset( $query->query_vars[‘post_type’] ) ? (array) $query->query_vars[‘post_type’] : array( ‘post’ );
    $query->query_vars[‘post_type’][] = TribeEvents::POSTTYPE;

    Regards,
    Dwain – WooThemes Ninja
    WooThemes Support ”

    This works but now the static pages don’t work shown an 404 error

    #66605
    cookieweb
    Participant

    Kelly are you able to shed any light on this? The code snippet provided by WooThemes just strips the if-else – now the events appear in the list on the front page but the events calendar/listing doesn’t work (only show the event as a regular blog post).

    Mastres can you let us know how the WooThemes responds to you?

    It would be great to get a solution. WooTheme Canvas is pretty popular and would be could to get them working together.

    #66607
    mastres
    Participant

    In the screenshot you have the answers, i don’t know anything else… i’m waiting for an answer too 🙁

    #66608
    cookieweb
    Participant

    Hey Mastres. Well WooThemes might have provided an answer of sorts but it doesn’t work. I meant if they followed up with a better answer 🙂 one that works!

    #66611
    mastres
    Participant

    Have you try to enter in woothemes and then clic the link of the request? if you enter there maybe we can have an answer…

Viewing 5 posts - 16 through 20 (of 20 total)
  • The topic ‘"Include events in main blog loop : How to show "event-image"’ is closed to new replies.