• Thank you very much for this plugin: it adds much needed functionality to WordPress. However, I’ve run into a pickle in dealing with permalinks relating to a custom post type.

    Scenario:

    Custom post type “services” attached to blog posts, so that posts can be organized by what service they related to.

    If I set things up so that Has Archive Page is false, Query Var: false, Rewrite: Enable Permalinks is true, Rewrite: With Front false, I get this permalink: “[site_url]/[post-type]/[post-slug].” What I want is “[site_url]/[post-slug].”

    I thought I’d found a solution by enabling archives for my custom post type and setting the Archive Page Slug to “$term_slug.” I then get the desired url structure for my custom post type, but all my other pages return 404 errors. Setting an Archive Page slug to “[anything]/[$term_slug]” takes the 404 errors away, but I no longer have the permalink structure I want. Additionally, this solution creates two separate displays for one post type, one controlled by archive.php and one controlled by single-[post-type].php, making it possible for a site visitor to see the page in two very different ways (with two different links).

    Based on experimentation it seems to me that links are not truly being overwritten but rather forwarded to the original link (which may be WordPress rather than a plugin thing, I’m not sure). For example, in a scenario with archives disabled and Permalinks with a front slug of “test” enabled, typing “[site-url]/test/[post-title]” returns the post as expected, but typing “[site-url]/test/[post-title]” returns the same post with the navigation bar reading “[site-url]/[post-type]/tax/[post-slug],” as if no rewriting had occurred.

    At this point I’m simply looking for a solution to get my desired permalink structure for custom post types created with CPT-onomy ([site-url]/post-slug). The other info was to alert the plugin author of other perceived issues and background information to aid in bug hunting.

The topic ‘[Plugin: CPT-onomies] Permalink structure for CPT-onomy’ is closed to new replies.