Taxonomies not display the content
-
I create a custom post and a page to post a specific content.
My
functions.php
:add_action( ‘init’, ‘create_post_fotos’ );
function create_post_fotos() {
register_post_type( ‘Fotos’,
array(
‘labels’ => array(
‘name’ => __( ‘Fotos’ ),
‘singular_name’ => __( ‘Fotos’ )
),
‘public’ => true,
‘has_archive’ => true,
‘supports’ => array( ‘title’, ‘editor’, ‘thumbnail’ ),
‘taxonomies’ => array( ‘category’, ‘post_tag’ ))
);}
I can post the content and usually create any category, but when I open my site and I click on the category you just created, nothing is displayed.
This problem is occurring ONLY on
custom post
that I created. The categories that create inindex
work perfectly.How can I solve this?
- The topic ‘Taxonomies not display the content’ is closed to new replies.