• Hello,

    I’ve installed ec3 on my wp 3.0 and all is going right by normal posts. The problems appears when I try to use it in a custom type.

    First I’ve added the ec3 meta_box on my custom type called ‘Viatges’ (plugins/ec3/admin.php)

    add_meta_box(
            'ec3_schedule_editor',   // HTML id for container div
            __('Event Editor','ec3'),
            'ec3_event_editor_box',  // callback function
            'Viatges',                  // page type
            'advanced',              // context
            'high'                   // priority
          );

    Ok, now I can add events in my new custom type, but the problem is that JS calendar is not working ??

    The problem seem to be the categories handler, but I’m not sure.

    Some idea??

    Thank you!!

    https://www.ads-software.com/extend/plugins/event-calendar/

Viewing 8 replies - 1 through 8 (of 8 total)
  • myCred

    (@designbymerovingi)

    Hey!

    I have come to the same obstacle as you. If you have any answers please set us know.

    The way I see it, it IS the categories handler that is the issue. I bet in your custom post type (as I) you use custom taxonomies like the hierarchical categories tax? Im suspecting that ec3 is connected to “Categories” and so not using them will conflict.

    myCred

    (@designbymerovingi)

    By the way, if you are using ec3_get_events() (version 3.2beta2) you can always add “post_type=Viages&” into the query used to retrieve events. This will customize the ec3_get_events() query searching for your post types only.

    You can find this function in plugins/event-calendar/template-functions-new.php line 484

    Thread Starter pixow

    (@pixow)

    Hello!

    first, thanks for your reply!

    I am using version 3.1.4, and I think it’s not possible to add this parametters… it doesn’t use the WP_query ??

    I could try to install the 3.2beta2 but I’m not sure if it’s working right. Have you tested it?

    thanks!

    myCred

    (@designbymerovingi)

    If you have space space on your server I recommend that you install a test wp and see if 3.2.beta2 works with the things you need.

    It is working great for me and the beta2 version brings with it the opportunity to customize for example your layout when using ec3_get_events(). Personally it is the one function in EC3 I use most. I dont know if this would work on the big calendar for example. Ill have a look into 3.1.4 and see if I can come up with a way around.

    myCred

    (@designbymerovingi)

    question. What function in ec3 do you use? The big calendar or just a list?

    Thread Starter pixow

    (@pixow)

    hello,

    I think we are talking about diferent things… ??

    I have the problem on the admin side. When I add a event box in the new custom post type screen, the button to show the calendar to select a date isn’t showed… but all is right by the normal posts….

    I’ve installed 3.2.beta2 and the same problem occurs… ??

    myCred

    (@designbymerovingi)

    Ah!

    My apologies.
    Its an issue I had myself. The way I see it, you must have “Categories” as taxonomy for your “Viatges” custom types for it to work.
    Since “Categories” are used by Posts, the ec3 box will work for posts but not for custom types.

    Option 1 is to move the Categories tax to your Viatges. This will of course mean you cant have categories for normal posts. But if your content is only handled by custom post types then this will not be a big issue.

    Your other option is to go through the ec3 plugin and change everything so it goes for some other taxonomy instead of “Categories”. Unfortunately I have no idea how to do that ??

    Personally I use custom post type for all content and allocated Categories to the custom post type I use for events and it works like a charm.

    Thread Starter pixow

    (@pixow)

    Ok,

    I will try it.

    thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Event Calendar 3] ec3 and custom types WordPress 3.0 (JS and categories problem)’ is closed to new replies.