WordPress.org

Ready to get started?Download WordPress

Forums

Event Calendar / Scheduler
[resolved] Get category dropdown / multiple scheduler (2 posts)

  1. JeremyCh
    Member
    Posted 1 year ago #

    Searching for a solution to have three different schedulers, I found in a post that I can achieve that creating categories, and then using the following code:

    $scheduler .= "
             scheduler._filter_by = '';
             scheduler.filter_day = scheduler.filter_week = scheduler.filter_month = function(id){
                if (!scheduler._filter_by) return true;
                if (scheduler.getEvent(id).category == scheduler._filter_by) return true;
                return false;
             };
             </script>
             <select onchange='scheduler._filter_by = this.value;scheduler.setCurrentView(scheduler._date);'>
    		 	<option value=''>Toutes</option>
    			<option value='category_0'>Group A</option>
    			<option value='category_1'>Group B</option>
    			<option value='category_2'>Group C</option>
    		</select>";

    where the above code will replace $scheduler .= "</script>";

    I tried that, but I don't see any dropdown there in the page. Am I doing anything wrong, or probably there's another way to have multiple schedular on the same site ?

    Here is a screen shot of my categories: http://getafinancier.com/danse.jpg

    http://wordpress.org/extend/plugins/event-calendar-scheduler/

  2. JeremyCh
    Member
    Posted 1 year ago #

    Fine, this is solved, I was replacing the wrong end tag.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic