• 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 be

    function 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.

    • This topic was modified 7 years, 10 months ago by moostash.
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.