Grow your CSS skills. Land your dream job.

Urgent WP help: Permalinks, Custom Post Types , Taxonomies.

  • # October 6, 2010 at 3:18 pm

    I’m just going nuts with this problem that I have, I’m trying to show all post of taxonomies as an archive, Everything was working really well until I upload it live.

    I mean, I add my custom_post_types and taxonomies as should be in functions.php:

    //Custom Posts Types

    add_action( 'init', 'post_jewels' );

    function post_jewels() {
    register_post_type( 'jewels',
    array(
    'labels' => array(
    'name' => __( 'Jewels' ),
    'singular_name' => __( 'Jewels' ),
    'add_new' => __( 'Add New Jewels' ),
    'add_new_item' => __( 'Add New Jewels' ),
    'edit' => __( 'Edit Item' ),
    'edit_item' => __( 'Edit Jewels' ),
    'new_item' => __( 'New Jewels' ),
    'view' => __( 'View Jewels' ),
    'view_item' => __( 'View Jewels' ),
    'search_items' => __( 'Search Jewels' ),
    'not_found' => __( 'No Jewels found' ),
    'not_found_in_trash' => __( 'No Jewels found in Trash' ),
    'parent' => __( 'Parent Jewels' ),
    ),
    'public' => true,
    'show_ui' => true,
    'menu_icon' => get_stylesheet_directory_uri() . '/img/picture.png', // icon defined
    'menu_position' => 5, // 5 - below Posts | 10 - below Media | 20 - below Pages
    'hierarchical' => true,
    'taxonomies'=> array('post_tag','tags'),
    'supports' => array( 'title', 'editor', 'custom-fields', 'thumbnail' ),
    'rewrite' => array( 'slug' => 'colecciones', 'with_front' => FALSE, )

    )
    );

    }

    // List Taxonomies

    add_action( 'init', 'create_catalogo_taxonomies');
    function create_catalogo_taxonomies() {
    register_taxonomy( 'catalogo', 'jewels',
    array(
    'labels' => array (
    'name' => 'Catalogo',
    'singular_name' => 'Catalogo',
    'search_items' => 'Search Catalogo',
    'popular_items' => 'Popular Catalogo',
    'all_items' => 'All Catalogo',
    'parent_item' => 'Parent Catalogo',
    'parent_item_colon' => 'Parent Catalogo:',
    'edit_item' => 'Edit Catalogo',
    'update_item' => 'Update Catalogo',
    'add_new_item' => 'Add New Catalogo',
    'new_item_name' => 'New Catalogo Name'
    ),
    'label' => 'Catalogo',
    'hierarchical' => true, // or true
    'query_var' => 'catalogo',
    'show_ui' => 'true',
    'show_tagcloud' => 'true',
    'rewrite' => array('slug' => 'catalogo' ) )
    );



    }

    My Permalinks are set as usual:

    /%category%/%postname%/

    Then when I try to go to the url where taxonomie contain X number of post :

    http://floripa.com.mx/colecciones/beleza-private/

    I got a 404 error

    I’m use to work with taxonomies , and in fact the last site I design use the same basis of this one , but the thing is that this one is not working as it must.

    Please someone help

    thanks

    # October 6, 2010 at 3:23 pm

    UPDATE:

    I just change permalink to:

    /%category%/colecciones/%postname%/

    Don’t ask why I do that only because It comes to my mind hahahaha but it works

    check it out:

    http://floripa.com.mx/catalogo/rose-blossom-private/

    us-pass

    admin

    test

    You can see what I’m seeing?

    What I see is a login form

    thnaks

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".