Forum Replies Created
-
AuthorPosts
-
Nick Ritar
ParticipantI would also like to view, manage and report on (export) previous Course attendees.
Nick Ritar
ParticipantHello
The problem is not that iframe is not showing, the problem is if you touch in any part of the iframe, it does not do nothing.
I cleared cache and I am using safari.
ThanksNick Ritar
ParticipantI still can’t get it to work… even with the twenty thirteen theme…. nothing else activated and a clean cache.
I’ve had a few people working on this project… looks like we might have to reinstall the plugins…as i think someone may have broken something in your code.
Would you mind leaving this open while i test .
Cheers
NickNick Ritar
ParticipantNiether tribe_is_event( $post ) or is_single( ‘tribe_events’ ) resolves to true, when I am viewing a single event on a page like http://staging01.laocoffee.com.au/course/gourmet-mushroom-cultivation-sept-2014-sydney/
I can get ( is_single() && !comments_open() ) to resolve true for this page, but obviously this is a hack.
Even when I do get ( is_single() && !comments_open() ) to resolve true, $title.tribe_get_start_date( $post->ID, false, ‘F Y ‘ ) resolves to todays Month and Year, not the events date a year.
Thanks for your help so far, but can you think of any reason why the tribe variables are not returning anything useful.
Cheers
NickNick Ritar
ParticipantThanks for the tip about is_single(). I’ll check that out.
At the moment that is not my problem though.
I can’t get tribe_get_start_date( $post->ID, false, ‘F Y ‘ ) to return anything useful. It just gives me todayts month, not the month of the event.
Can you please take a look at my code below and see what i’m doing wrong.
Cheers
NickNick Ritar
Participantwhooops scratch that… tribe_get_start_date( $post->ID, false, ‘F Y ‘ ) returns today’s date… nothing to do with the event.
I’ve tried your snippet in functions.php with the 2013 theme…… and it behaved the same. That is to say that it worked fro a Photo View page, but not an individual event page.
So it’s not anything in our theme.
Nick Ritar
ParticipantI ended up giving up on tribe_is_event() and ended up using !comments_open and is_single to work out if it is an single event.
All this is being called through functions.php (just to be clear).
I’m having trouble getting many of the tribe functions to give me the expected result, for example tribe_get_venue() and tribe_get_venue_link() do not return anything via functions.php, but do within tribe-events/single-event.php
tribe_get_start_date does work however
if( is_single() && !comments_open() ) { // Single Events
$title = $title.tribe_get_start_date( $post->ID, false, ‘F Y ‘ ).’ | ‘;
}Nick Ritar
ParticipantNo matter what page i am on tribe_is_event() does not return 1
Nick Ritar
ParticipantHi Casey,
Getting close,It’s working for the tribe_is_photo pages really well, but not for tribe_is_event…… if i just use is_single it works, but of course on blog pages as well
// Tribe events: Manually set title for each event listing type
function filter_events_title ($title) {
if ( tribe_is_event() && is_single() ) { // single event
$title = ‘Nicks attempt to get this working | ‘;
}
elseif ( tribe_is_photo() && !is_tax() ) { // Photo View Page
$title = ‘Upcoming Courses | ‘;
}
elseif ( tribe_is_photo() && is_tax() ) { // Photo View Category Page
$title = tribe_meta_event_category_name() .’ Courses | ‘;
}
return $title;}
can you spot whats wrong?
June 26, 2014 at 3:46 pm in reply to: How do i use tribe_events_filter_values to remove values from the filters #253765Nick Ritar
ParticipantAwesome thanks Casey…. had to play with it a bit to get it to remove multiple, but the following worked great
add_filter( ‘tribe_events_filter_values’, ‘tribe_filter_event_categories’, 10, 2 );
function tribe_filter_event_categories( $values, $slug ) {
if ( $slug == ‘eventcategory’ ) {
foreach ( $values as $i => $category ) {
if ( $category[‘name’] == ‘Cooking’ or $category[‘name’] == ‘Growing’ ) {
unset ( $values[$i] );
}
}
}
return $values;
}June 26, 2014 at 2:03 pm in reply to: How do i use tribe_events_filter_values to remove values from the filters #253535Nick Ritar
ParticipantHi Casey,
The page is a photo listing of all events with the filter bar displayed across the top.
http://staging01.laocoffee.com.au/courses/
Apparently since the 3.6 release of Filter Bar….
“Added a WordPress filter so that available values in the filters could be modified (‘tribe_events_filter_values’)”
But yet to find an example of it being done.
Cheers
NickNick Ritar
ParticipantHi Casey,
That’s great. Thanks.
Can you please give me a pointer on where I can find out how to use variables (such as EventStartDate or Tags) in the above snippet. Or perhaps a short example.
Thanks for your help 🙂
-
AuthorPosts
