diff --git a/includes/client/posts.php b/includes/client/posts.php index fe02a9f..92b4d1a 100644 --- a/includes/client/posts.php +++ b/includes/client/posts.php @@ -39,6 +39,10 @@ function handle_post_status_change( $new_status, $old_status, $post ) { Return an object of type Article */ function post_to_object( $post ) { + $supported_post_types = array( 'post' ); + if ( ! in_array( $post->post_type, $supported_post_types ) ) { + return; + } setup_postdata( $post ); $permalink = get_permalink( $post ); $summary = null;