Support » Plugin: Custom Content Type Manager » Rewrite Slug – What's It Supposed To Do?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Mike,

    If Archives are enabled, CCTM/WP will use the post type name as the rewrite slug, for exaple /my-post-type (will show the post type archive). The rewrite slug field overwrites this option with a value of your choice.

    Thanks, kieranbarnes. That’s what I would have expected. But the rewrite slug is NOT overwriting the post-type name.

    And, yes, I have enabled Archives in CCTM.

    This works:

    This does not:

    Any suggestions how I might track this down?

    One more piece of information: I have defined a custom taxonomy that uses the same slug. That works, in this sense:

    However, this does not:

    Again, the taxonomy slug is the same as the CCTM slug. Any chance that’s causing a problem? (If I disable the taxonomy, I still can’t access the CCTM post-type archive using the CCTM slug.)

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    For the record, my methodology here has been to create a GUI that allows for all inputs to the register_post_type() function to be passed to that function. That does not always mean I know exactly what those inputs are for, however. I just see that the register_post_type() function requires a string or a boolean etc. and I try to make my forms in the plugin pass that data as transparently as possible.

    I really dislike how WP implements URLs, and I find the rewrite slug to be poorly conceived. I’ve had bad luck using it myself, if that’s of any consolation. I’d look to the official WP docs for discussion as to what the various inputs are for. As of yet, I haven’t had to create any sites that required full custom URL support, so the CCTM plugin doesn’t offer much explanation on how or why you’d use some of these or even worse, it may be inadvertently sabotaging other WP functionality. If that’s the case, please file a bug and I’ll add a few test-cases to my unit tests.

    Hope that helps illuminate the issue a bit.

    This functionality is working for me (0.9.6.7) WP 3.5. I have a CCT of ‘clients’ with a rewrite slug of ‘design’. Each client is available at /design/client-name/. Changes to the rewrite slug are reflected. As a test I enabled archives in the advanced tab of the CCTM settings page for clients after which an archives page started being generated at /design/.

    I know the rewrite slug for an individual client was working in 3.4.x, not sure if the archive page was.

    If there’s anything you’d like to know about my settings, I’m happy to followup.

    I can see the WP_query getting mixed up if you’re trying to share the same slug with your taxonomy and CCT. I wonder if you need to flush the rewrite rules after disabling your custom taxonomy?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Rewrite Slug – What's It Supposed To Do?’ is closed to new replies.