using custom post type

31 views
Skip to first unread message

Bage

unread,
Dec 23, 2011, 7:53:48 AM12/23/11
to wp-simile...@googlegroups.com
I have created  a custom post type. I actually don't need to have any categories and wish to use all the posts from the custom post type on the timeline. Is it possible with 0.4.8.4?

Thanks.

Tim

unread,
Dec 23, 2011, 7:59:27 AM12/23/11
to wp-simile-timeline
You can feed custom post types into the timeline, yes.
But you need to specify a taxonomy to which the custom posts are
associated to.
To maintain a separation between the default blog posts and custom
posts, I'd suggest that you set up a generic custom taxonomy for your
post type and enable the taxonomy on the plugins' admin page.

Bage

unread,
Jan 8, 2012, 5:36:52 AM1/8/12
to wp-simile...@googlegroups.com
I have created a custom post type and I am able to populate the timeline without any problem. But The only problem i have is, I am not able to add date ranges as i couldn't get that box in the custom post type.

Is there any way i can do that?

Bage.

madhavaji

unread,
Mar 2, 2012, 5:16:48 AM3/2/12
to wp-simile...@googlegroups.com
I "fixed" this issue by hacking the plugin. It's only one line of hack and I'm hoping the next version of the plugin fixes this so I can remove the hack.

I inserted a line to timeline.php at 230, like this

add_meta_box( 'stl-timeline-event-data', __( 'SIMILE Timeline', 'stl_timeline' ), array('WPSimileTimelineAdmin', 'outputCustomPostDateOptions'), 'custom_post_type', 'advanced' );

Where "custom_post_type" is the 'name' of the Custom Post type. By 'name' I mean the $post_type specified when registering the post type, like this..

register_post_type( $post_type, $args )

Hope that helps..

Michael.

Tim

unread,
Mar 21, 2012, 1:38:25 PM3/21/12
to wp-simile-timeline
Thank you for figuring this out.
The current update (0.4.8.5) enables the event dates in the custom
post type interface.

On 2 Mrz., 11:16, madhavaji <mich...@thisisdeliberate.co.uk> wrote:
> I "fixed" this issue by hacking the plugin. It's only one line of hack and
> I'm hoping the next version of the plugin fixes this so I can remove the
> hack.
>
> I inserted a line to timeline.php at 230, like this
>
> *add_meta_box( 'stl-timeline-event-data', __( 'SIMILE Timeline',
> 'stl_timeline' ), array('WPSimileTimelineAdmin',
> 'outputCustomPostDateOptions'), 'custom_post_type', 'advanced' );*
>
> Where "custom_post_type" is the 'name' of the Custom Post type. By 'name' I
> mean the $post_type specified when registering the post type, like this..
>
> *register_post_type( $post_type, $args )*
Reply all
Reply to author
Forward
0 new messages