I have created a custom post type, and it works ok. I can go to the edit screen and click on 'View' and it properly uses the correct template (and pretty permalink) to show the single custom post type.
I then have a page with the following code:
When you select a term from the drop down list, I get a Error 404 page not found. This is the link that it is trying to show:Code:<form action="<?php bloginfo('url'); ?>" method="get"> <div> <?php wp_dropdown_categories(array('taxonomy' => 'Membership Category')); ?> <input type="submit" name="submit" value ="view" /> </div> </form>
webste/wp-development/?cat=16&submit=view
It seems like the permalinks/redirect is not working properly.
In my custom post type setup, I have this:
I have went to the permalinks in setup and re-saved everything to flush the permalinks and this didn't help.Code:function memberlist_register() { $labels = array( 'name' => _x('Member List', 'post type general name'), 'singular_name' => _x('Member List', 'post type singular name'), 'add_new' => _x('Add New', 'member list'), 'add_new_item' => __('Add New Member'), 'edit_item' => __('Edit Memeber'), 'new_item' => __('New Member'), 'view_item' => __('View Member'), 'search_items' => __('Search Member'), 'not_found' => __('Nothing found'), 'not_found_in_trash' => __('Nothing found in Trash'), 'parent_item_colon' => '' ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, '_builtin' => false, 'query_var' => true, 'menu_icon' => get_stylesheet_directory_uri() . '/article16.png', 'capability_type' => 'post', 'hierarchical' => true, 'rewrite' => array ('slug' => 'memberlists'), 'menu_position' => null, 'supports' => array('title','thumbnail') ); register_post_type( 'memberlist' , $args );}


LinkBack URL
About LinkBacks
Reply With Quote