Viewing 5 replies - 1 through 5 (of 5 total)
  • i was curious about this too.. i realize it is a feature of this calendar to expose category selection to the user, but i would like to bypass that and restrict all my calendar items to a certain category.. i think there is a way to edit the code and add this restriction to the SQL query. i’ll post here if i am able to figure anything out.

    you can go into your editor at:
    /wp-admin/plugin-editor.php?file=wp-fullcalendar/wp-fullcalendar.php

    and (after the line “//sort out args”) add:
    $_REQUEST[‘category’] = 3;

    where 3 is the id of the category you want to select…
    works for me

    just read that you can also select in a shortcode:

    [fullcalendar type=”post” category=”3″]

    This is the exact question I am looking for. I have blog posts in various categories. However, I only want the posts assigned to category “Calendar” to show on the calendar by default. I tried this shortcode on the page:

    [fullcalendar type=”post” category=”calendar”]
    or
    [fullcalendar type=”post” category=”Calendar”]

    That didn’t work. All that resulted is ALL posts disappeared from the calendar.

    I tried editing:
    /wp-admin/plugin-editor.php?file=wp-fullcalendar/wp-fullcalendar.php

    and (after the line “//sort out args”) added:
    $_REQUEST[‘category’] = calendar;
    or
    $_REQUEST[‘category’] = Calendar;

    Same thing happened, NO events displayed on the calendar at all. If you look at my blog (https://apta.dmediaweb.com/calendar/) I do have 2 posts assigned to that category. What else can I try? Thank you!

    @sberman
    Use category ID instead of category name and it should work.

    [fullcalendar category="15"]

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘limit to one category’ is closed to new replies.