I am pretty new with this whole WordPress stuff and plugins, but I'll try to explain my situation as good as I can.
I have a wP Site which has three categories (Sports, Events and About). In the header I have three hard coded menulink buttons which points to these categories (i.e.
<a href="http://localhost/www/category/sports/"> ) Well - Check out the site:
What I can do is that I can catch the current category to a string using PHP using this code:
<?php $categories = get_the_category(); $my_current_cat = $categories->cat_name; ?>
Now the what I WANT to do is...
When user clicks the Sports button and opens a page for Sports category, I would like to show a calendar events only from the category also named as Sports. How I could see it to work is something like:
<?php echo WP_FullCalendar::calendar($args,<strong> $my_current_cat</strong>);?> but I know that it doesnt work like this.
At the moment it shows events from every category before a user choses the event category (From that pulldown menu) which they want to see.
I am using PHP to display calendar object and events comes from The Events Manager.