Forum Replies Created
-
AuthorPosts
-
Jonah
ParticipantHi Steve,
The Events Calendar uses the default feed templates in WordPress so you would need to modify these according to your needs. You can find information on how to do so here: http://codex.wordpress.org/Customizing_Feeds
Regards,
JonahJonah
ParticipantAwesome, glad that worked!
Jonah
ParticipantHi Esteban,
We’re looking into it.
Thanks,
JonahJonah
ParticipantHi Esteban,
Have you tried reverting your theme back to Twenty Eleven? There could be a conflict with your theme. What theme are you using?
Regards,
JonahJonah
ParticipantHi Joe,
Sorry about the run around. You were right all along, you need to pass in the post id but you can’t with the get_terms function so I used wp_get_post_terms instead:
Let me know whether or not that works for you.
Regards,
JonahJonah
ParticipantWait, disregard that last bit of code. This should work:
[php]
$args = array( ‘orderby’ => ‘slug’ );
$terms = get_terms($tribe_ecp->get_event_taxonomy(), $args);
[/php]Jonah
ParticipantNo I don’ think so. What about if you use this:
$args = array( 'orderby' => 'slug' );
$terms = get_terms('sp_events_cat', $args);
I’m not seeing the rest of my categories in the list and actually get_terms doesn’t get categories, it gets taxonomy terms… By putting ‘sp_events_cat’ as the first parameter this should tell get_terms to only get terms from that tax.
Jonah
ParticipantTry changing the $args variable to:
$args = array( 'taxomomy'=>'sp_events_cat','orderby' => 'slug' );
Jonah
ParticipantTry this: http://pastebin.com/gYTNTW0E
Jonah
ParticipantHi Joe,
To modify the actual links you’ll have to change the tribe_meta_event_cats function to use get_terms instead of the_terms and modify the output accordingly: http://codex.wordpress.org/Function_Reference/get_terms
Again, by modifying the core code your changes will be wiped out when you update unless you keep a catalog of your core changes and reintroduce after updating.
You might try modifying the links via jQuery instead for now although it would be difficult to dynamically pull in the category info for each link.
Regards,
JonahJonah
ParticipantHi John,
You can adjust the query by adding the post_status paramter like so:
$posts = tribe_get_events( array('eventDisplay'=>'upcoming', 'posts_per_page'=>-1, 'post_status'=>array('publish','future')));
In fact you can use all of the parameters available for WP_Query as referenced here: http://codex.wordpress.org/Class_Reference/WP_Query
I hope that’s what you need but let me know if you need anything else.
Regards,
JonahJonah
ParticipantHi Joe,
Alright I’ve got the solution for you: https://gist.github.com/ab6f357e4a0508056ccc
You’ll need to put the PHP example_enqueue_scripts function in functions.php and then in your template directory create an ‘js’ folder with an events.js file with the new jQuery script.
That should do it for you.
– Jonah
Jonah
ParticipantHi Joe,
Unfortunately this is not possible without modifying the core code at this time. We are looking into things like this to make everything more editable and will take it into consideration.
If you want to modify the core code (your changes will be overwritten the next time you update) you will want to modify /plugins/the-events-calendar/public/template-tags/general.php – line 102.
Regards,
JonahJonah
ParticipantHi John,
I’m still not clear on what you’re trying to do. I understand that a future dated post will not display by default, is that the issue you’re having? You need to display the future events?
Thanks,
JonahJonah
ParticipantHi Rona,
The short answer to your question is yes. You can style the widget from any CSS file you want including the custom.css file in Thesis. Basically what it comes down to is specificity which I would highly recommend reading up on to get a little more educated on what it means. Here is one good article, but there’s plenty of others: http://css-tricks.com/855-specifics-on-css-specificity/
Basically, CSS rules are applied first by order and then by score based on selectors used to determine what is applied. The score is determined by specificity.
So for example, CSS placed inline in markup like:
< a href="#" style="font-size: 16px;" >My Link< /a >
Has the highest specificity and will trump any other CSS referenced for this link unless you use the overriding !important rule at the end of your CSS declaration.
So, what I’m try to explain (and maybe not doing the best job of it) is that even though you have all the default styles set by the plugin, you can easily override any of these in your own stylesheet by taking advantage of the specificity scoring.
So let’s take an actual example from the events.css stylesheet:
From line 253 about:
.tribe-events-calendar .tribe-events-tooltip {
border:1px solid #666;
position:absolute;
z-index:1001;
bottom:30px;
left:3px;
width:320px;
background-color:#f9f9f9;
color:#333;
line-height:1.4;
}So say you wanted to use a different background color and apply it in your own stylesheet without messing with events.css
By the rules of specificity, ID selectors score higher than class selectors so you could simply prefix the same declaration with an ID of an element further up the page, like a container or wrapper or some sorts like so:
#wrapper .tribe-events-calendar .tribe-events-tooltip {
background-color:red;
}By just placing an ID selector before the two classes, the specificity rules will score this declaration higher and make the background red.
I hope that helps, but let us know if you have any other questions.
Regards,
Jonah -
AuthorPosts
