Results 1 to 2 of 2

Thread: Can't get Custom Post Type to display after select with Drop Down List

  1. #1
    keith70 is offline Hello World
    Join Date
    Jul 2010
    Posts
    27

    Default Can't get Custom Post Type to display after select with Drop Down List

    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:
    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>
    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:
    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:
    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 );}
    I have went to the permalinks in setup and re-saved everything to flush the permalinks and this didn't help.

  2. #2
    keith70 is offline Hello World
    Join Date
    Jul 2010
    Posts
    27

    Default

    I ran across this: http://core.trac.wordpress.org/ticket/13258 maybe mfields can tell us a work around?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •