Forum Replies Created
-
AuthorPosts
-
John
MemberYes you can drop it wherever as long as it is not within another function. Sorry, I had replied several days ago but looks like it never got posted.
John
MemberI think you could do it by editing the English translation file.
John
MemberYes, you can drop it anywhere in functions.php as long as it isn’t within another function.
November 12, 2011 at 6:05 am in reply to: Homepage customization / including upcoming and past events #11000John
MemberHi Adam,
The December post isn’t showing up because tribe_get_events is using the system’s default posts_per_page option. You can add ‘posts_per_page’=>-1 to show all upcoming events.
As far as pagination goes, it generally doesn’t work with get_posts. We are hoping to implement a custom pagination solution in an upcoming release.
November 9, 2011 at 6:36 am in reply to: Homepage customization / including upcoming and past events #10788John
MemberHi Adam,
To accomplish what you are looking for you should be able to do in 2 custom queries:
$upcoming = tribe_get_events( array(‘eventDisplay’=>’upcoming’) );
$past = tribe_get_events( array(‘eventDisplay’=>’past’) );
You can loop through those events like you would with any get_posts call.
November 9, 2011 at 6:31 am in reply to: Displaying Custom Field Attributes on Frontend in Custom Template File #10787John
MemberReji – would something like get_tribe_custom(‘Field label’) be sufficient?
John
MemberTry this to use today’s date:
$date = date(‘Y-m-d’);
$posts = tribe_get_events( “startDate=$date&endDate=$date&eventCat=” . $category );John
MemberThis should be possible. We are using the jQuery UI Datepicker so you could add custom javascript to tie into the text field
John
MemberHi guys,
I apologize for the syntax error – our issue tracker stripped out the 2 equal signs when I copy/pasted. To save venue and organizer try to add the following lines above the saveEventMeta line.
$_POST[‘Organizer’] = stripslashes_deep($_POST[‘organizer’]);
$_POST[‘Venue’] = stripslashes_deep($_POST[‘venue’]);if( !empty($_POST[‘Venue’][‘VenueID’]) )
$_POST[‘Venue’] = array(‘VenueID’ => $_POST[‘Venue’][‘VenueID’]);if( !empty($_POST[‘Organizer’][‘OrganizerID’]) )
$_POST[‘Organizer’] = array(‘OrganizerID’ => $_POST[‘Organizer’][‘OrganizerID’]);John
MemberYou should be able to click on the actual date from the grid view.
John
MemberYes, it is, but internally the post type name has changed which is why I think that redoing the form should hopefully fix it.
John
MemberHi guys,
We are planning on adding a filter to remove this for the 2.0.1 release.John
MemberThere are two ways you can get all events for a month using a custom query. The easiest is to pass ‘eventDisplay=month’ to your WordPress query.
You can also get events for a range of dates by using the start_date and end_date query parameters.
John
MemberHi Rachel,
1. I’m not familiar with the plugins you are describing, can you describe what should happen that is not?
2. You’ll have to add the tags taxonomy to the tribe_events post type in your functions.php. Once you are linking them you would have to do template overrides to actually display them.
See http://codex.wordpress.org/Function_Reference/register_taxonomy_for_object_type
John
MemberThe date and time stuff should still work, but the post type has changed between ECP 1.3 and ECP 2.0, so you may need to rebuild the form using the new custom post type. If that doesn’t work, then let me know.
-
AuthorPosts
