Forum Replies Created
-
AuthorPosts
-
JohnMember
Yes 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.
JohnMemberI think you could do it by editing the English translation file.
JohnMemberYes, 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 #11000JohnMemberHi 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 #10788JohnMemberHi 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 #10787JohnMemberReji – would something like get_tribe_custom(‘Field label’) be sufficient?
JohnMemberTry this to use today’s date:
$date = date(‘Y-m-d’);
$posts = tribe_get_events( “startDate=$date&endDate=$date&eventCat=” . $category );JohnMemberThis should be possible. We are using the jQuery UI Datepicker so you could add custom javascript to tie into the text field
JohnMemberHi 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’]);JohnMemberYou should be able to click on the actual date from the grid view.
JohnMemberYes, it is, but internally the post type name has changed which is why I think that redoing the form should hopefully fix it.
JohnMemberHi guys,
We are planning on adding a filter to remove this for the 2.0.1 release.JohnMemberThere 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.
JohnMemberHi 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
JohnMemberThe 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