Tag Cloud links not finding page
-
I created a custom post type for my projects and later needed to add tags and categories to the info, code below:
// Creates Projects post type register_post_type('projects', array( 'label' => 'Projects', 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'hierarchical' => false, 'rewrite' => array('slug' => 'projects'), 'query_var' => true, 'supports' => array( 'title', 'editor', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'thumbnail', 'author', 'page-attributes'), 'taxonomies' => array('category', 'post_tag') // this is IMPORTANT ) ); add_action('init', 'projects_add_default_boxes'); function projects_add_default_boxes() { register_taxonomy_for_object_type('category', 'projects'); register_taxonomy_for_object_type('post_tag', 'projects'); }
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
This worked great and my new tags appeared straight away in my footer widget…..but when clicked I get a ‘nothing found’ message and it doesn’t link to the project? Have I missed out a step?!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Tag Cloud links not finding page’ is closed to new replies.