mastres

Forum Replies Created

Viewing 8 posts - 31 through 38 (of 38 total)
  • Author
    Posts
  • in reply to: "Include events in main blog loop : How to show "event-image" #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

    in reply to: "Include events in main blog loop : How to show "event-image" #66597
    mastres
    Participant

    Hi, cookieweb, they give me a solution but still don’t work. You can see it here. http://support.woothemes.com/requests/96906

    in reply to: "Include events in main blog loop : How to show "event-image" #65459
    mastres
    Participant

    Yes i have given them this lines and the file.
    Regards

    in reply to: "Include events in main blog loop : How to show "event-image" #65420
    mastres
    Participant

    sorry i found it

    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;
    }

    in reply to: "Include events in main blog loop : How to show "event-image" #65419
    mastres
    Participant

    is this?
    // if a user selects a date in the event bar we want it to persist as long as possible
    if ( !empty( $_REQUEST[‘tribe-bar-date’] ) ) {
    $query->set( ‘eventDate’, $_REQUEST[‘tribe-bar-date’] );
    }

    in reply to: "Include events in main blog loop : How to show "event-image" #65253
    mastres
    Participant

    Hi, this is what woothemes told me
    “Could you ask Modern Tribe to tell you how the function works as in How do they add it to the loop. Then I’ll look into why it doesn’t work with our theme.”
    Here is the ticket http://support.woothemes.com/requests/96906

    in reply to: "Include events in main blog loop : How to show "event-image" #64351
    mastres
    Participant

    hi Kelly, my problem is that the theme don’t show any event in main blog loop, and i have this option check.
    Regards

    mastres
    Participant

    I have a similar question i check this option but don’t show in my website, i think is a problem with the theme installed because in the default theme works.
    I need it because my theme show post as featured slider and i don’t want to duplicate information.
    The theme is function by woothemes, any help?

Viewing 8 posts - 31 through 38 (of 38 total)