WPIntell

Source evidence

custom post types

The Future Is Now · support · 2013-02-07T20:50:00+00:00

complaintsentiment
mediumseverity
0.8relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

7 / 35 rows with source links

20.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
tpaolillo unresolved
I cannot get this to work with custom post types. I saw the previous post about custom post types but i have tried to copy the code without any luck also. Can someone please post a fix that will allow this to work on custom post types also. Im using it on a classipress theme at http://www.sellmyapp.com Thanks Tony http://wordpress.org/extend/plugins/the-future-is-now/ Had the same issue. Figured it out. Replace the plugin’s main code with this: function publish_future_events_now($depreciated, $post) { wp_publish_post($post); } remove_action('future_shows', '_future_post_hook'); add_filter( 'wp_insert_post_data', 'futurenow_do_not_set_posts_to_future' ); function futurenow_do_not_set_posts_to_future( $data ) { if ( $data['post_status'] == 'future' && $data['post_type'] == 'shows' ) $data['post_status'] = 'publish'; return $data; } Replacing “shows” (my custom post type) with yours. Working for me. Hello I’m trying to use this plugin on V3.8 using the above code, but it’s not working. My custom post type is called ‘events’ so I’m using this code: function publish_future_events_now($depreciated, $post) { wp_publish_post($post); } remove_action('future_events', '_future_post_hook'); add_filter( 'wp_insert_post_data', 'futurenow_do_not_set_posts_to_future' ); function futurenow_do_not_set_posts_to_future( $data ) { if ( $data['post_status'] == 'future' && $data['post_type'] == 'events' ) $data['post_status'] = 'publish'; return $data; } Anyone got it working for a CPT on 3.8? Thanks

Comments

2 shown
darrelly84 2013-04-06T06:38:00+00:00

Had the same issue. Figured it out. Replace the plugin’s main code with this: function publish_future_events_now($depreciated, $post) { wp_publish_post($post); } remove_action('future_shows', '_future_post_hook'); add_filter( 'wp_insert_post_data', 'futurenow_do_not_set_posts_to_future' ); function futurenow_do_not_set_posts_to_future( $data ) { if ( $data['post_status'] == 'future' && $data['post_type'] == 'shows' ) $data['post_status'] = 'publish'; return $data; } Replacing “shows” (my custom post type) with yours. Working for me.

spurwing 2013-12-16T14:21:00+00:00

Hello I’m trying to use this plugin on V3.8 using the above code, but it’s not working. My custom post type is called ‘events’ so I’m using this code: function publish_future_events_now($depreciated, $post) { wp_publish_post($post); } remove_action('future_events', '_future_post_hook'); add_filter( 'wp_insert_post_data', 'futurenow_do_not_set_posts_to_future' ); function futurenow_do_not_set_posts_to_future( $data ) { if ( $data['post_status'] == 'future' && $data['post_type'] == 'events' ) $data['post_status'] = 'publish'; return $data; } Anyone got it working for a CPT on 3.8? Thanks