Forum Replies Created
-
AuthorPosts
-
September 18, 2013 at 7:18 am in reply to: "Include events in main blog loop : How to show "event-image" #66600
mastres
Participanthttp://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
September 18, 2013 at 7:12 am in reply to: "Include events in main blog loop : How to show "event-image" #66597mastres
ParticipantHi, cookieweb, they give me a solution but still don’t work. You can see it here. http://support.woothemes.com/requests/96906
September 11, 2013 at 7:02 am in reply to: "Include events in main blog loop : How to show "event-image" #65459mastres
ParticipantYes i have given them this lines and the file.
RegardsSeptember 11, 2013 at 12:36 am in reply to: "Include events in main blog loop : How to show "event-image" #65420mastres
Participantsorry 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;
}September 11, 2013 at 12:33 am in reply to: "Include events in main blog loop : How to show "event-image" #65419mastres
Participantis 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’] );
}September 10, 2013 at 4:15 am in reply to: "Include events in main blog loop : How to show "event-image" #65253mastres
ParticipantHi, 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/96906September 3, 2013 at 2:37 pm in reply to: "Include events in main blog loop : How to show "event-image" #64351mastres
Participanthi Kelly, my problem is that the theme don’t show any event in main blog loop, and i have this option check.
RegardsAugust 30, 2013 at 8:48 am in reply to: "Include events in main blog loop : How to show "event-image" #63824mastres
ParticipantI 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? -
AuthorPosts
