Wordpress CPT Taxonomy Page Not Working

This has been set many times in stackoverflow, but I do everything and nothing works. I still get "Oh! This page could not be found."

I got a template in which I looped CPT taxa with the link [ image ]

When I click one of the categories, I get the URL

http://comisionpais.com/categorias/educacion/ http://comisionpais.com/categorias/{taxonomy} 

I created these files

 taxonomy-comision-publicaciones.php taxonomy.php category-publica.php category.php 

and this is the code for 3 CPT that I use

 /****************** Custom Post Type ***************/ // Our custom post type function function create_posttype() { register_post_type( 'publica', // CPT Options array( 'labels' => array( 'name' => __( 'Publicaciones' ), 'singular_name' => __( 'Publicaciรณn' ) ), 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'publicacion'), // Features this CPT supports in Post Editor 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail' ), 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', 'menu_icon' => 'dashicons-book', ) ); register_post_type( 'entrev', // CPT Options array( 'labels' => array( 'name' => __( 'Entrevistas' ), 'singular_name' => __( 'Entrevista' ) ), 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'entrevista'), // Features this CPT supports in Post Editor 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail' ), 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', 'menu_icon' => 'dashicons-video-alt3', ) ); register_post_type( 'reco', // CPT Options array( 'labels' => array( 'name' => __( 'Reconocimientos' ), 'singular_name' => __( 'Reconocimiento' ) ), 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'reconocimiento'), // Features this CPT supports in Post Editor 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail' ), 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', 'menu_icon' => 'dashicons-awards', ) ); } // Hooking up our function to theme setup add_action( 'init', 'create_posttype' ); /****** CPT Category Link ******/ function create_comision_taxonomies() { $labels = array( 'name' => _x( 'Categories', 'taxonomy general name' ), 'singular_name' => _x( 'Category', 'taxonomy singular name' ), 'search_items' => __( 'Search Categories' ), 'all_items' => __( 'All Categories' ), 'parent_item' => __( 'Parent Category' ), 'parent_item_colon' => __( 'Parent Category:' ), 'edit_item' => __( 'Edit Category' ), 'update_item' => __( 'Update Category' ), 'add_new_item' => __( 'Add New Category' ), 'new_item_name' => __( 'New Category Name' ), 'menu_name' => __( 'Categories' ), ); $args = array( 'hierarchical' => true, // Set this to 'false' for non-hierarchical taxonomy (like tags) 'labels' => $labels, 'show_ui' => true, 'show_admin_column' => true, 'query_var' => true, 'rewrite' => array( 'slug' => 'categorias' ), ); register_taxonomy( 'comision-publicaciones', array( 'publica' ), $args ); register_taxonomy( 'comision-entrevistas', array( 'entrev' ), $args ); register_taxonomy( 'comision-reconocimientos', array( 'reco' ), $args ); } add_action( 'init', 'create_comision_taxonomies', 0 ); 

So, I am worried that I wrote the file names incorrectly, but with all reads, if I use the main file name, for example taxonomy.php or category.php, these files will be used, but nothing happens.

enter image description here

0
php wordpress taxonomy custom-post-type custom-taxonomy
source share

No one has answered this question yet.

See similar questions:

7
Custom posts with the same slime. Redirecting to the wrong post with the same slug

or similar:

1906
How does PHP foreach work?
one
Wordpress custom post on how to display custom fields in a listing
one
The default Wordpress blog and custom email taxonomy paths
one
WordPress Custom Permanent Page Structure for: Pages, Posts, and Custom Post Types
0
Wordpress - Custom Ordering on CPT and Taxonomy Pages
0
Get image post by taxonomy / WordPress category
0
Wordpress WP_Query inside get_categories does not work with CPT
0
The WP taxonomy used with a custom type breaks my statistics pages.
0
The name of one wordpress page
-one
Scroll through wp_get_post_terms and select a taxonomy name

All Articles