WordPress.org

Forums

WP FullCalendar
[resolved] Post limit and category array (5 posts)

  1. AllTech
    Member
    Posted 1 year ago #

    Hi,
    This is a very great work that will match perfectly for my website.
    However I have two problems to fix before:
    Note: I do not use Event Manager plugin.
    1/ Limit of post
    I cannot display more than 15 posts on calendar whatever a veiew per day, week or month. Even with wpfc_limit set to 20, 50 , .... And 15 is the limit of posts per page in my WP configuration. If I set to 20 I have 20 psts on calendar ... How can I set 15 posts per page but have more calendar view ?
    2/ Restrict categories
    I have to set an array of categories in the dropdown menu because among the 40 categories I use only the some of them are to be used in the calendar. How can I add a filter with a category array for the dropdown menu ?
    Thank you for any help !

    https://wordpress.org/plugins/wp-fullcalendar/

  2. AllTech
    Member
    Posted 1 year ago #

    Regarding first problem I fixed it by adding 'posts_per_page' => -1 in $args

  3. AllTech
    Member
    Posted 1 year ago #

    solution to restrict to only few categories in dropdown menu:
    add 'include' => 'tag_ID,tag_ID,...' in $taxonomy_args

  4. turrikan
    Member
    Posted 1 year ago #

    Hi AllTech,
    could you please help me?
    I want to exclude some post categories from the drop down list, but i don't understand where to put the code:

    add 'include' => 'tag_ID,tag_ID,...' in $taxonomy_args

    could you post an example?

    thanks..

  5. AllTech
    Member
    Posted 11 months ago #

    Hi Turrikan,
    In wp-fullcalendar/wp-fullcalendar.php I just added some args.
    Look for comment line "//go through each post type taxonomy and display if told to" then modify line "$taxonomy_args = ...."

    For my web site I added include with a list of categories:
    $taxonomy_args = array( 'echo'=>true, 'hide_empty' => 1, 'name' => $taxonomy_name, 'hierarchical' => false, 'class' => 'wpfc-taxonomy', 'taxonomy' => $taxonomy_name, 'selected'=> $default_value, 'show_option_all' => $taxonomy->labels->all_items,'include' => '7,538,640,1368,1446,2507,6282,2637,5290,504,18556,6386,9422,688,19343,12398,816,16875,6209,7961,15728');

    Hope it will help you

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP FullCalendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic