Not loading additional post types [FIXED]
-
I found a bug in your functions.php, in this function:
function wp_cip_get_posts($post_type = NULL) { $options = 'numberposts=-1&offset=0'; if ($post_type) { $options .= '&post_type=' . $post_type; } return get_posts($post_type); }
You pass $post_type to get_posts() instead of $options so no other post type is loaded to the list of pages/posts.
It should befunction wp_cip_get_posts($post_type = NULL) { $options = 'numberposts=-1&offset=0'; if ($post_type) { $options .= '&post_type=' . $post_type; } return get_posts($options); }
And that fixes this bug.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Not loading additional post types [FIXED]’ is closed to new replies.