Forum Replies Created
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
codydoodleMember
I don't know what that link is trying to tell me. Here is how I register my post type and taxonomy
// Register Custom Taxonomy function ddc_create_taxonomies() { $labels = array( 'name' => 'Categories', 'singular_name' => 'Category', 'menu_name' => 'Categories', 'all_items' => 'All Categories', 'parent_item' => 'Parent Category', 'parent_item_colon' => 'Parent Category:', 'new_item_name' => 'New Category Name', 'add_new_item' => 'Add New Category', 'edit_item' => 'Edit Category', 'update_item' => 'Update Category', 'separate_items_with_commas' => 'Separate Categories with commas', 'search_items' => 'Search Categories', 'add_or_remove_items' => 'Add or remove Categories', 'choose_from_most_used' => 'Choose from the most used Categories', ); $rewrite = array( 'slug' => 'products/category', 'with_front' => false, 'hierarchical' => true, ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_tagcloud' => true, 'rewrite' => $rewrite, ); register_taxonomy( 'ddc_product_categories', 'ddc_products', $args ); } // Hook into the 'init' action add_action( 'init', 'ddc_create_taxonomies' ); function ddc_create_post_types() { //Register Support Topics $labels = array( 'name' => 'Products', 'singular_name' => 'Product', 'add_new' => 'Add New', 'add_new_item' => 'Add New Product', 'edit_item' => 'Edit Product', 'new_item' => 'New Product', 'view_item' => 'View Product', 'search_items' => 'Search Products', 'not_found' => 'No Products found', 'not_found_in_trash' => 'No Products found in Trash', 'parent_item_colon' => 'Parent Product:', 'menu_name' => 'Products', ); $args = array( 'labels' => $labels, 'hierarchical' => false, 'description' => 'Products', 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'revisions', 'genesis-cpt-archives-settings', 'genesis-seo' ), 'taxonomies' => array( 'ddc_product_categories' ), 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 20, //'menu_icon' => 'this.jpg', 'publicly_queryable' => true, 'exclude_from_search' => true, 'has_archive' => true, 'query_var' => true, 'can_export' => true, 'rewrite' => array( 'slug' => 'products' ), 'capability_type' => 'post' ); register_post_type( 'ddc_products', $args ); } add_action( 'init', 'ddc_create_post_types' );
FYI, this code is in a plugin not the themes function.php file but that shouldn't matter
codydoodleMemberI think I didn't explain myself clearly enough. I do have that file created and everything I posted in the first post is what I have in that template file.
If I replace what I have with what you have I get a page that says no results found.
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)