Home › Forums › Calendar Products › Events Calendar PRO › "Include events in main blog loop : How to show "event-image"
- This topic has 19 replies, 4 voices, and was last updated 10 years, 7 months ago by mastres.
-
AuthorPosts
-
August 29, 2013 at 9:09 am #63634scirodesignParticipant
Hi just updated the event calendar and I now can “Include events in main blog loop.” This is fantastic as I’ve been trying to do that for some time but it would mess up my “anyslider”.
With that said is there something I have to put into my template files to get the images to show up? I see via firebug the image is in a div “tribe-events-event-image”
August 30, 2013 at 8:48 am #63824mastresParticipantI 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?September 3, 2013 at 2:16 pm #64346KellyParticipantHi, scirodesign. I am not able to reproduce any issues with images (featured or part of the content) displaying in the main blog loop. Are you able to replicate it using Twenty Twelve? I’d appreciate a link where I could see the issue in action.
As far as your theme goes, mastres, the basic idea is that you need to replace where it calls the_excerpt() with the_content(). Here’s an example of what I’m describing from another thread: https://theeventscalendar.com/support/forums/topic/how-to-show-full-events-post-in-search-and-tags/#post-63498
Does that make sense?
September 3, 2013 at 2:37 pm #64351mastresParticipanthi Kelly, my problem is that the theme don’t show any event in main blog loop, and i have this option check.
RegardsSeptember 3, 2013 at 2:42 pm #64353KellyParticipantHi, mastres. In that case, since it does work in 2012, it’s probably a good idea to get in touch with WooThemes. Let us know if they have any questions for us, and we’ll do our best to get you back in business.
Thanks!
September 10, 2013 at 4:15 am #65253mastresParticipantHi, 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 10, 2013 at 3:02 pm #65375KellyParticipantHi, mastres. Thanks for getting back to us. Please have Woo check out lib/tribe-event-query.class.php:110-113. That should point them in the right direction.
September 11, 2013 at 12:33 am #65419mastresParticipantis 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 11, 2013 at 12:36 am #65420mastresParticipantsorry 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 6:48 am #65454KellyParticipantHi, mastres. Your last post is indeed the correct one.
I’d like to suggest that it would probably be best if you pass the entire file with a note about the line numbers rather than just that snippet. That way, the Woo support team get the context.
Thanks!
September 11, 2013 at 7:02 am #65459mastresParticipantYes i have given them this lines and the file.
RegardsSeptember 11, 2013 at 7:35 am #65466KellyParticipantThanks, mastres. Hope they have some good news for you.
September 18, 2013 at 5:06 am #66568cookiewebParticipantHello there – I am also having problems with the events not showing up on the homepage of my WooTheme Canvas (I also have include events in main blog checked). Mastres did you get a solution from WooThemes?
September 18, 2013 at 7:12 am #66597mastresParticipantHi, cookieweb, they give me a solution but still don’t work. You can see it here. http://support.woothemes.com/requests/96906
September 18, 2013 at 7:14 am #66599cookiewebParticipantHey Mastres – even when I am logged into WooThemes (I’m a subscriber) I can’t get access to that thread – can you post the response here by any chance?
-
AuthorPosts
- The topic ‘"Include events in main blog loop : How to show "event-image"’ is closed to new replies.