Add multiple custom post types in functions.php, but only one custom post type show in dashboard

add add_action(‘init’, ‘create_new_cpt2’); in your snippet and modify add_db_to_article function as below, function add_db_to_article ($post_types) { $custom_post_types = array (‘article’, ‘news’); $output = array_merge($post_types, $custom_post_types); return $output; } Note: ‘news’ is added in $custom_post_types array.

Custom taxonomies, with custom rewrites/slug, AND loading a taxonomy archive template from a plugin

Background & Core Functionality Why a Taxonomy Path Slug Alone Produces a 404 However this slug doesnt work. mysite.com/wiki/help-topics throws a 404. WordPress does not provide a mechanism for “an archive of taxonomy terms” out of the box – that is, neither the template hierarchy nor the WP_Query/WP_Tax_Query logic support a direct display of terms … Read more

How can I fix those issues generated by the Themecheck plugin

Registering custom posts is a plugin territory. It means that you need to remove them from the theme’s functionality and register them via a plugin (usually recommended when installing the theme using TGM Plugin Activation or something else). Here are the recommendations of the Theme Review Team. Themes must not incorporate the following, Plugin-territory functionality. … Read more