Forums

Custom Post Type Permalinks
404 not found when using custom taxonomy = "type" / (3 posts)

  1. nadiamode
    Member
    Posted 5 months ago #

    I have custom taxonomy (not custom post type) = "type"

    example http://example.com/type/digital-sound/

    But this permalink return 404 not found page / Permalink work if I deactivated plugin

    ------

    I'm testing by using "type" as custom post type (not custom taxonomy) and it work perfectly, it only not work when use it in custom taxonomy

    Could you help me to find where it cause plugin conflict with slug = "type"

    I would like to use "type" in slug

    Thank you

    http://wordpress.org/extend/plugins/custom-post-type-permalinks/

  2. nadiamode
    Member
    Posted 4 months ago #

    i found that this function made something conflict with custom taxnomy = "type"

    I try remove below code from plugin and it work, I can access http://example.com/type/digital-sound/

    $taxonomies = get_taxonomies(array("show_ui" => true),'objects');
    		foreach ( $taxonomies as $taxonomy => $objects ):
    			$wp_rewrite->add_rewrite_tag("%$taxonomy%", '(.+?)',"$taxonomy=");
    		endforeach;
  3. nadiamode
    Member
    Posted 4 months ago #

    Thank you for updating plugin to version 0.7.3.1

    I notice you replace line 156

    $taxonomies = get_taxonomies(array("show_ui" => true),'objects');

    with

    $taxonomies = get_taxonomies(array("show_ui" => true, "_builtin" => false),'objects');

    but permalink that use "type" as custom taxonomy still doesn't work when activate plugin

    http :// example. com/type/digital-sound/

Reply

You must log in to post.

About this Plugin

About this Topic