Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a custom taxonomy (Talks)

I create for custom taxonomy taxonomy-talks.php its working on my localhost. When I upload FTP still call archive.php or taxonomy.php. It must call taxonomy-talks.phpbut not working.

How can I fix it?

My Taxonomy Code:

register_taxonomy('Talks',array (
  0 => 'videolar',
),array( 'hierarchical' => true, 
         'label' => 'talks',
         'show_ui' => true,
         'query_var' => true,
         'rewrite' => array('slug' => 'talks')) );
share|improve this question

1 Answer 1

You have a taxonomy name Talks, this must be lowecase (talks).

If you look at the register_taxonomy() Codex page the following parameter description is shown:

<?php register_taxonomy( $taxonomy, $object_type, $args ); ?>

$taxonomy
(string) (required) The name of the taxonomy. Name should be in slug form (must not contain capital letters or spaces) and not more than 32 characters long (database structure restriction).

share|improve this answer
    
Thank you @MikeMadern.I changed it but still don't working. –  Genxer Mar 11 '13 at 14:35
    
I don't know if it works, but did you refresh your permalink structure? –  Mike Madern Mar 11 '13 at 14:36
    
Yes i refresh right now still not working this is very interesting. –  Genxer Mar 11 '13 at 14:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.