Forum Replies Created
-
AuthorPosts
-
Greg Perham
Participantview-source:http://dev.bplusf.com/jcoh/calendar/
Greg Perham
ParticipantI do hope it gets added to the Tribe Bar Filters. I find it hard to imagine that Search and Near have higher demand.
Greg Perham
ParticipantYes, that is correct
Greg Perham
ParticipantMarking closed
Greg Perham
ParticipantChrome. It’s probably just attached to too many events, live focus and blur and keypress.
Greg Perham
ParticipantI added the filter myself because I noticed that the correct events display when the month is set directly in the shortcode.
I’ll mark this resolved in the hopes that the shortcode will be fixed.
Greg Perham
ParticipantUsing this as a workaround:
function fix_tec_shortcode_date( $content='' ) { if( isset($_GET['tribe-bar-date']) ) { $date = $_GET['tribe-bar-date']; if( preg_match( '#[^-0-9]#', $date ) ) return $content; $content = str_replace( '[tribe_events', "[tribe_events date='$date'", $content ); } return $content; } if( class_exists( 'Tribe__Events__Pro__Shortcodes__Register' ) ) add_filter( 'the_content', 'fix_tec_shortcode_date', 1 );Greg Perham
Participant1. type title
2. suggestions appear
2. dismiss suggestions
3. click in body of post
4. suggestions reappear
5. type body
6. click title, don’t make any changes
7. suggestions reappear
8. click body
9. suggestions reappearGreg Perham
ParticipantI will screenshot it the next time.
On the subject of the forums, the suggested topics is incredibly frustrating, appearing multiple times after I try to dismiss it.
Greg Perham
ParticipantIf you have specific corrections/suggestions for that KB article, please detail them here and I’ll pass them along to the right people to get it updated.
The documentation should:
1. Not include instructions to use deprecated arguments
2. Contain a list of all available arguments and their possible valuesGreg Perham
ParticipantChanging the date format does not help. I cannot use tribe_get_events. I am not marking resolved because the function should be fixed to behave as expected and as documented.
Ultimately wound up using
$events = new WP_Query( array( 'post_type' => 'tribe_events', 'tag' => 'featured', 'meta_query' => array( 'key' => '_EventEndDate', 'value' => date( 'Y-m-d 00:00:00' ), 'compare' => '>=', 'type' => 'DATETIME' ), 'posts_per_page' => 2, ) ); if( $events->have_posts() ) : etcGreg Perham
ParticipantI can’t read your reply with all those spans
Greg Perham
ParticipantIt is also true for future dates. “/calendar/?tribe-bar-date=2016-12” shows October’s events instead of December’s, but has the title “Events for December 2016”.
Greg Perham
ParticipantIt gets worse. If I click Find Events in the bar with “Events In: 2016-07”, the title changes to “October 2016”, provides a link to September, and shows events for July.
Greg Perham
ParticipantI am wrong about what the problem is exactly. The problem is that /?tribe-bar-date=2016-07 shows a calendar for the current month while displaying a title and previous/next links for the month in the URL. THIS IS COMPLETELY BROKEN.
-
AuthorPosts
