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

  1. Nadiamode
    Posted 4 years 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


  2. Nadiamode
    Posted 4 years 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=");
  3. Nadiamode
    Posted 4 years ago #

    Thank you for updating plugin to version

    I notice you replace line 156

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


    $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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post Type Permalinks
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic