Forum Replies Created
-
AuthorPosts
-
Jonah
ParticipantHey Robert,
You’re probably having problems because you’re removing the endif – try taking that out and also only remove the instead of the tag…
The permalinks for the events should be fine.
Jonah
ParticipantHi Judd, there’s no built in functionality for this but have you tried searching for a 3rd party plugin to accomplish this? Something like: http://wordpress.org/extend/plugins/duplicate-post/ might work…
Jonah
ParticipantHi Tony,
I’m sure there is someone willing to help you, you just need to ask but you may need to pay for custom development too 🙂
Jonah
ParticipantHi Andrew, the code for this functionality should already be in place in list.php – starting at line 49, this is what you should see: http://pastebin.com/414EXh0u
So if the event is a multiday event, it will display the start and end dates, else it will just display the start date. That’s what you want right? Or am I misunderstanding you?
– Jonah
Jonah
ParticipantHey Loren,
To override the calendar widget you simply need to put the table-mini.php file in an ‘events’ folder in your theme. Then in table-mini.php, look at line 12 where the events query is being setup. You can pass any extra parameters you want, such as querying for specific categories. Keep in mind though that The Events Calendar uses taxonomies as categories, rather than actual categories so you would want to use the tax_query parameter to pass in the categories you want to query for. See this codex article for more info: http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters
You can also use any other WP_Query parameters to affect your query. That should get you going in the right direction.
Regards,
JonahJonah
ParticipantHi Tony, I’m afraid no there’s not…
Jonah
ParticipantYeah we’re working on getting code functionality in the forum comments – try http://pastebin.com/ for now… Glad you got it working!
Jonah
ParticipantHi Andy,
I have no idea. I’ll need to get another developer to chime in here…
Jonah
ParticipantHi naktural, are you sure that is the filter you can use with your theme? What theme are you using? This works specifically for me in Genesis.
Jonah
ParticipantHey Robert,
1. What is the code you removed from list.php – please paste in Pastebin (http://pastebin.com/) so I can get an idea of what you’re doing.
2. Here’s what you do to get the calendar in a full width page in Genesis, I’ve tested it and it works. Create a page where you add the [calendar] shortcode to display it. Set that page to be a full width layout in the Genesis layout settings for the page. Then go to Settings > The Events Calendar and change the Events Template to “Default Events Template”. That should do it.
January 4, 2012 at 4:21 pm in reply to: Homepage customization / including upcoming and past events #12856Jonah
ParticipantHey naktural, try modifying the list query by putting this in your functions.php:
function my_get_posts( $query ) {
if(!tribe_is_day()) {
$query->set( 'posts_per_page', 20 );
}
return $query;
}
add_filter( 'pre_get_posts', 'my_get_posts' );
Change posts_per_page to however many posts you want to display…
Jonah
ParticipantHi naktural, I emailed Shane requesting FTP access which I’ll need to figure out the previous days events showing but to modify what is displaying on just the events page you can use something like this in functions.php:
function my_get_posts( $query ) {
if(!tribe_is_day()) {
$query->set( 'posts_per_page', 5 );
}
return $query;
}
add_filter( 'pre_get_posts', 'my_get_posts' );
This tests to see if we are not viewing only one day (i.e. the events list) and then add to the query how many posts per page to display. Does that work?
Jonah
ParticipantHi Donna, I can’t really do too much with this just by looking at the WP admin, I need FTP access to look at how you’ve got the overrides setup. Just to clarify, there should be a folder titled ‘events’ (without quotes and in lowercase) in your active themes folder and then any events related template files in there that you’d like to override… If that’s how you have it setup, please send me the FTP info so I can take a look myself.
Jonah
ParticipantHi Leigh, can you please email WP admin and FTP access to jonahcoyote [at] gmail [dot] com so I can take a look? Do I have permission to change settings, turn off plugins, etc?
Thanks,
JonahJonah
ParticipantHey Sean, we were emailing back and forth on this topic but I just wanted to follow up here as well and so you could maybe share your solution…
-
AuthorPosts
