Forum Replies Created
-
AuthorPosts
-
Jonah
ParticipantHi Kelli,
Might be a plugin or theme conflict. Have you tried deactivating all other plugins and/or switching to the Twenty Eleven theme? I would start there to narrow it down. Let me know what you find.
Thanks,
JonahJonah
ParticipantHi Dan,
Glad to hear you’ve got this working. So are you all set here?
– Jonah
July 10, 2012 at 12:51 pm in reply to: Events Calendar PRO: bug when using categories and question to dev team #21884Jonah
ParticipantHi Sandro,
Ok I see what’s going on now. I’ll need to see the code you are using for http://develop.primediart.com/project/Sandroz/gudauri/ but first try this. Using the pre_get_posts() query filter, you should be able to filter the query for the calendar on that page like so:
add_action( 'pre_get_posts', 'exclude_events_category' );
function exclude_events_category( $query ) {
if ( is_page('the-page-with-the-query') ) {
$query->set( 'tax_query', array(
array(
'taxonomy' => TribeEvents::TAXONOMY,
'field' => 'slug',
'terms' => array('2012'),
'operator' => 'IN'
)
)
);
}
return $query;
}
Put that in your theme’s functions.php file and change the is_page conditional to whatever the page is and then modify the tax_query to only include or exclude the categories you want to display there.Does that help?
– Jonah
Jonah
ParticipantHi Tom,
Your theme does not come with an ‘events’ folder, or at least very likely does not. You have to create it yourself if you want to override any of the core template files like the /wp-content/plugins/the-events-calendar/resources/events.css file. If you want to edit that file, just place a copy in an ‘events’ folder in your theme. I would suggest just adding CSS to your themes style.css file though.
– Jonah
Jonah
ParticipantHi Kris,
Event categories are taxonomies so you will need to use the tax_query args as indicated here: http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters
The taxonomy is ‘tribe_events_cat’ and you can use those args with WP_Query or tribe_get_events.
Cheers,
JonahJonah
ParticipantHi John,
You would add the above code to a copy of /wp-content/plugins/the-events-calendar/views/single.php placed in an ‘events’ folder in your theme and echo out your specific custom field by replacing “Label For Custom Field Link” with the label of the custom field(s) you want to output and wrapping that custom field output in whatever HTML you need. Look at the comment here for an example of the code wrapped in HTML: https://gist.github.com/2901504
Jonah
ParticipantSounds good Carter, I await your response.
– Jonah
Jonah
ParticipantHi Kris,
You could do this by setting up a custom query using WP_Query or tribe_get_events() (https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-general-functions/#functiontribe_get_events) on a custom page somewhere…
Does that help?
– Jonah
Jonah
ParticipantHave you tried deactivating all other plugins? Sounds like there’s a conflict of sorts going on… What theme are you using? You say the default theme, do you mean Twenty Eleven?
– Jonah
Jonah
ParticipantHi Tom,
You have complete control over styling over margins and everything else style wise via your theme’s style.css file or our plugins /wp-content/plugins/the-events-calendar/resources/events.css file. If you want to make changes to the plugins CSS, make sure you make a copy and place in an ‘events’ folder in your theme.
Basically, you’ll need to target things via CSS and style them how you want. Good luck!
– Jonah
Jonah
ParticipantAwesome Mark, we will have this resolved in an upcoming version but I’m glad to hear this worked for you!
– Jonah
Jonah
ParticipantHi John,
The only custom fields available via our plugin are the ones you see. You can wrap custom field output in whatever HTML you want though and this should do what you need. Here is an example: https://gist.github.com/2901504
I hope that helps!
– Jonah
Jonah
ParticipantHi Oliver,
Not sure what the problem could be. Can you email us WP admin access so we can take a look? Email to pro [at] tri [dot] be and reference this thread. And do I have your permission to deactivate plugins and make other changes as long as I put everything back the way it was?
Thanks,
JonahJuly 9, 2012 at 11:19 am in reply to: Events Calendar PRO: bug when using categories and question to dev team #21757Jonah
ParticipantHi Sandro,
Joyce is having me handle this now. I see posts in a calendar on this page: http://develop.primediart.com/project/Sandroz/gudauri/ – where is the page where posts are not showing?
Thanks,
– JonahJonah
ParticipantHi Richard,
tax_query is only to be used as a query parameter within wp_query or tribe_get_events – you should be able to use one of the other native WordPress functions to get the taxonomy name. http://codex.wordpress.org/Function_Reference/get_terms – look at the bottom for other related functions.
I hope that helps!
– Jonah
-
AuthorPosts
