[Plugin: WP FullCalendar] Choosing Event category by WP Category
-
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="https://localhost/www/category/sports/">
) Well – Check out the site:
https://www.team-sports.fi/www baby:carrotWhat 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[0]->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.
https://www.ads-software.com/extend/plugins/wp-fullcalendar/
- The topic ‘[Plugin: WP FullCalendar] Choosing Event category by WP Category’ is closed to new replies.