WordPress.org

Ready to get started?Download WordPress

Forums

Events calendar plugin and custom post types (7 posts)

  1. leemon
    Member
    Posted 4 years ago #

    Hi!

    Is there any events calendar plugin out there which uses the new custom post types of WP3.0?

    Thanks

  2. pixow
    Member
    Posted 4 years ago #

    Hello!

    I'm looking for the same kind of calendar. Maybe 'The Events Calendar' plugin could be adapted. I will try.

    :)

  3. pixow
    Member
    Posted 4 years ago #

    You can try adding this line in addEventBox() function on plugins/the-events-calendar/the-events-calendar.class

    add_meta_box( 'Event Details', __( 'The Events Calendar', 'Events_textdomain' ),array( $this, 'EventsChooserBox' ), 'your_custom_type_name', 'normal', 'high' );

    It will enables the 'Events chooser Box' in your custom type post.

    I hope it helps!

  4. geoill
    Member
    Posted 4 years ago #

    Hey Pixow,

    I have the same issue. I tried to add the code to the the-events-calendar.class but it seems as if it broke my wordpress theme. Do you know where I should add this code in the the-events-calendar.class file?

    Thanks!

  5. pixow
    Member
    Posted 4 years ago #

    Hi geoill,

    You should add it inside the addEventBox() function. Something like this:

    public function addEventBox( ) {
    			add_meta_box( 'Event Details', __( 'The Events Calendar', 'Events_textdomain' ),
    		                array( $this, 'EventsChooserBox' ), 'post', 'normal', 'high' );
                            add_meta_box( 'Event Details', __( 'The Events Calendar', 'Events_textdomain' ),
    		                array( $this, 'EventsChooserBox' ), 'Viatges', 'normal', 'high' );
    		}

    I hope it helps!

  6. adanarchila
    Member
    Posted 3 years ago #

    It worked! I'm gonna test it.

  7. iblastoff
    Member
    Posted 3 years ago #

    the above code does put the events calendar into a custom post type but it breaks ical functionality. every ical feed is now blank so i assume its trying to query posts from the regular post type and not the custom? any idea how to fix this?

Topic Closed

This topic has been closed to new replies.

About this Topic