• Hello there,

    I’m using this plugin to make taxonomy and custom post type everything works fine except one thing.

    custom-post-type/taxonomy-slug case lead me to 404 pages and I dont understand why.

    I’ve notice there is a page parameter in custom post type rewrite options but it is set to true and it does not work.

    I’m really anoyed by this thing.

    Here are my settings :

    custom post type slug : jeu/%jeux%
    taxonomy slug : jeu

    To replace %jeux% in URL i’m using this in function file

    function wpa_show_permalinks( $post_link, $id = 0 ){
        $post = get_post($id);
        if ( is_object( $post ) && $post->post_type == 'jeu' ){
            $terms = wp_get_object_terms( $post->ID, 'jeux' );
            if( $terms ){
                return str_replace( '%jeux%' , $terms[0]->slug , $post_link );
            } else {
                return str_replace( '%jeux%' , 'autres' , $post_link );
            }
        }
        return $post_link;
    }
    add_filter( 'post_type_link', 'wpa_show_permalinks', 1, 2 );

    Admin, can you please help me here ? I’ve tried everything that I can think of !

    http://wordpress.org/plugins/ultimate-cms/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Pages not working in custom-post-type/taxonomy-slug case’ is closed to new replies.