• Resolved tenvolt

    (@tenvolt)


    Using CPT UI have had no problem creating a custom post type and custom taxonomy, but my links to pages via either custom code or the Category Cloud Tag widget just redirect to the home page. I’ve tried turning on Archives for the parent post type, been looking around but out of ideas for what else to try. Thoughts?

    Example: I have a custom taxonomy called topictags and one of the topictags is “leadership”, the URL generated by Category Cloud Tag is:
    http://sitename.com/blog/topictags/leadership/
    This URL just redirects to the home page with no warning.
    In my code I’m generating links such as “/blog/topictags/ceo”
    which also just redirect to the home page.

    https://wordpress.org/plugins/custom-post-type-ui/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter tenvolt

    (@tenvolt)

    To further clarify, I’ve got a custom post type called “resources”, then a custom taxonomy called “topictags” which has its “Attach to Post Type” set to “Resources” via the CPT UI plugin. The “topictags” Hierarchical setting is set to false, but I have tried changing that and it makes no different. I’ve tried going to the Settings – Permalinks page and saving to reset permalinks as well.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Have you made any headway with this one? I am earnestly not sure what’s going on with it at the moment.

    Thread Starter tenvolt

    (@tenvolt)

    I went through all plugins and disabled one at a time, the only thing that made any difference was disabling the Q&A plugin, if I did this, then you no longer got redirected to the home page, you just sat on the /blog/topictags/leadership/ page, but it just showed the content from the home page. So not really progress but at least it tells me which plugin was doing the redirect. Not sure why though. I suspect maybe WordPress is not set to display archive pages for the custom post types or taxonomies, but I tried turning off and on Archive page settings for the custom post and it made no difference. The Taxonomy settings don’t seem to have an Archive page option.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I have to wonder if there is some sort of conflict going on with slugs. Do you have any pages named “resources” as well?

    Thread Starter tenvolt

    (@tenvolt)

    Hm yes there is a Page that has the permalink of /resources, I’ll try renaming that, thanks for the idea. I figured that since these pages have the /topictags/ url not /resources/ they wouldn’t conflict, but since topictags are a taxonomy of resources, maybe that’s an issue.

    Thread Starter tenvolt

    (@tenvolt)

    The odd thing is it’s a multi-site and the French site works fine, there is a page called /resources/ that shows the archive for that post type, and pages like /fr/topictags/assessment/ work fine.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Does the french site have both a post type of “resources” and a page named “resources” ? It’s going to be a case of which sites have both, that would likely have the query confusion.

    Thread Starter tenvolt

    (@tenvolt)

    It doesn’t, but even renaming the English page to resourcehome doesn’t solve the problem. Something is messed up but I don’t know how/where to troubleshoot. Is there a file somewhere that lists all permalinks that WP uses to resolve URLs?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I believe those values are all stored in the database. I’ve had success in the past with this plugin though http://wordpress.org/plugins/rewrite-rules-inspector/

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Links to custom taxonomy/post type pages redirect to home page’ is closed to new replies.