diff --git a/classes/plugin.php b/classes/plugin.php index 8a3620d..e11bc9a 100644 --- a/classes/plugin.php +++ b/classes/plugin.php @@ -376,6 +376,10 @@ public function api_slurp() { } $result = wp_remote_get( add_query_arg( 'time', time(), $this->get_option( 'slurp_url' ) ) ); if ( $result['response']['code'] == 200 ) { + + // Ensure that our post type is registered prior to any operations that might get executed downstream + $this->register_post_type(); + $topics = new WP_Query( array( 'post_type' => self::POST_TYPE, 'posts_per_page' => -1,