Forum Replies Created
-
AuthorPosts
-
February 23, 2017 at 10:50 am in reply to: HTML doesn’t show above (Advanced Template Settings ->Add HTML before event con) #1244739
Jennifer Findley
ParticipantI just tried the static text and yes that works…
When trying to include an image for a banner ad the grey box for the search area gets taller… but the image doesn’t show.
So I tried wrapping it in a div… no joy… until that div included a value for height.
So it’s resolved now… just needed a set value for height in a div that wraps the media element.
Thanks,
August 19, 2016 at 10:09 am in reply to: Recurring events with exclusions… Excluded event dates still show. #1153729Jennifer Findley
ParticipantThis reply is private.
August 19, 2016 at 10:03 am in reply to: Recurring events with exclusions… Excluded event dates still show. #1153725Jennifer Findley
ParticipantThis reply is private.
August 10, 2016 at 8:10 am in reply to: Recurring events/main loop/functions.php/and settings :) #1149985Jennifer Findley
ParticipantMy main issue was to get recurring events to only show the first instance – without using the checkbox in settings.
I think this fixed it: ‘post_parent’ => 0,
THANK YOU BROOK!
j
August 8, 2016 at 9:13 pm in reply to: Recurring events/main loop/functions.php/and settings :) #1149294Jennifer Findley
ParticipantHi Cliff. Thanks for your reply.
But thats not what I need…
I need to only show the first recurring event in a series when posting—-but without checking the settings box.
August 7, 2016 at 2:21 pm in reply to: Recurring events/main loop/functions.php/and settings :) #1148802Jennifer Findley
ParticipantFound this thread: https://theeventscalendar.com/support/forums/topic/override-setting-to-display-first-instance-only-of-recurring-events/
Could something along these lines help my situation?
Using [‘tribeHideRecurrence’] in some form?
Again, just trying to get the recurring events to show the first instance where the checkbox for that feature kills my custom loop.
Please advise.. and thank you guys!
-
This reply was modified 9 years, 9 months ago by
Jennifer Findley.
August 7, 2016 at 12:20 pm in reply to: Recurring events/main loop/functions.php/and settings :) #1148773Jennifer Findley
ParticipantThanks for the reply 🙂
I got the snippet for the function.php file from this forum, but not that thread… here’s what I’m using:
———
add_action( ‘pre_get_posts’, ‘tribe_post_date_ordering’, 51 );function tribe_post_date_ordering( $query ) {
if ( ! empty( $query->tribe_is_multi_posttype ) ) {
remove_filter( ‘posts_fields’, array( ‘Tribe__Events__Query’, ‘multi_type_posts_fields’ ), 10, 2 );
$query->set( ‘order’, ‘DESC’ );
}
}———–
And the first part (most important for this issue) of my custom homepage loop:
——–
<?php $args2 = array( ‘post_type’ => array(‘post’,’tribe_events’), ‘posts_per_page’ => 5);
$args2[‘paged’] = get_query_var( ‘page’ ) ? get_query_var( ‘page’ ) : 1;
$query2 = new WP_Query( $args2 );
——–Yes, the goal is to have the events show in the main loop at the time they are published (not the event date)…
So they now do… but the recurring events show multiples of the same post… So clicking the recurring event instances checkbox in settings blocks the loop completely… ir does something that makes that section of my homepage blank…
So end goal – is to show events on publish date/time… and only show one instance of a recurring event in the loop…
Can you point me towards a solution?
And thank you in advance!!!
j
-
This reply was modified 9 years, 9 months ago by
-
AuthorPosts
