Forum Replies Created
-
AuthorPosts
-
Jonah
ParticipantHi Ken, it should execute the first one when on single events and the last one is just the fallback if none of the other conditions are met it will just execute the regular the_title() function, getting the title for the current page or post.
Jonah
ParticipantHi Peter, in page.php do you have the the_title() function anywhere? If not, this won’t work. You need to use the code wherever the the_title() function is being called in your theme. It varies theme to theme so you’ll need to look around for it. What theme are you using?
Jonah
ParticipantHey Robert,
Yes, you would have to use some sort of conditional logic to determine if you are in a specific category, where the back to events link takes you. The Events Calendar uses taxonomy terms for categories so you should be able to do something like this with the is_tax conditional tag (http://codex.wordpress.org/Function_Reference/is_tax) like so:
if(is_tax('tribe_events_cat','my_cat_slug') {
// one specific back link
} elseif(is_tax('tribe_events_cat','another_cat_slug') {
// another specific back link
} else {
// a general back link
}
Does that help?
Jonah
ParticipantHi Matt, unfortunately this goes beyond the customization help we can provide. In general you’ll want to modify the list.php template file by overriding it (placing a duplicate copy in an ‘events’ folder in your theme) and modifying the markup (adding table code) and re-arranging PHP to get it working the way you want.
Good luck!
Jonah
ParticipantHey Ben, if you want to use the built in custom field capability with the plugin you need to first create the custom fields in Settings > The Events Calendar. Scroll to the bottom and you’ll see where you can add fields. After adding a field, it will then display as an input for all your events.
Jonah
ParticipantHi Matt,
Are you looking to list out your different categories or do you just want to limit the main calendar to a category or categories?
Jonah
ParticipantHi Jacob,
Do you have an example or screenshot I can look at?
Jonah
ParticipantHi David, you just need to modify the CSS – first make a copy of /wp-content/plugins/the-events-calendar/resources/events.css and place in an ‘events’ folder in your theme. Then on line 316 you should see a declaration for:
#tribe-events-event-meta .column {
float: left;
width: 30%;
padding: 0 4% 0 0;
text-align: left;
margin: 0;
}
Just change the width there to whatever works for you. I hope that helps!
Jonah
ParticipantHey Julien, I’m getting some dev advice on this and will get back to you on it.
Jonah
ParticipantHey Ken, try using this logic to check for a specific category events list:
tribe_is_event() && !tribe_is_day() && !is_single() && is_tax('tribe_events_cat','my_cat_slug')
Just change ‘my_cat_slug’ to the slug of your category. I hope that helps!
March 1, 2012 at 9:41 am in reply to: I want Different date formats showing (in widget and full) #16069Jonah
ParticipantHi Suzan,
Here is what you would want to change it to:
echo tribe_get_start_date( $post->ID, $start, 'l j F,Y' );
Does that work?
Jonah
ParticipantHey Nathan/Ross,
The second function I posted above should work, I tested in Thesis 1.8.3 so maybe you are using an older version that uses a different filter?
@Nathan – in my function I first check to see if the tribe_events post type is present and wrap all the other conditional code in that so it should only operate on event related pages. And if the post type is not present, I use the else condition to default to returning true.
Overall, it should work but make sure you are using the latest version of Thesis…
February 29, 2012 at 3:58 pm in reply to: Calendar Drop Down Menu Showing Last Month Instead of Current Month. #15958Jonah
ParticipantWell whatever plugins you do have installed can you try deactivating all except for The Events Calendar? And while you’re at it, please also try reverting to the TwentyTen/Eleven theme to rule out a theme conflict. Just trying to narrow this down…
Jonah
ParticipantTry this instead:
// Conditionally remove original sidebars
function no_sidebars() {if('tribe_events' == get_post_type()) {
if ( is_single() && !tribe_is_showing_all() ) { // single event
return true;
} elseif ( tribe_is_upcoming() || tribe_is_past() || tribe_is_day() || (is_single() && tribe_is_showing_all()) ) { // list view
return true;
} else { // grid view
return false;
}
} else {
return true;
}}
add_filter('thesis_show_sidebars', 'no_sidebars');
Jonah
ParticipantHey Tom, my bad, I thought the link you provided was for your current site…
To add a Next Month link just create an override for table-mini.php (place a copy in an ‘events’ folder in your theme) and then after the closing table tag add the following: http://pastebin.com/GTymAK5b
-
AuthorPosts
