• I need help with custom permalinks. I have created Custom Post Type Products and Custom Taxonomy Product_Types using CPT UI. I’ve used ACF for custom fields. My issue is when I create a post, it’s coming like /products/post-name/. But I want to add taxonomy terms to the URL. So I’ve used Custom Post Type Permalinks plugin to add the tag %property_type% in front of the post type permalink. Now the URL is /products/parent_term/child_term/post_name as expected . But I’m getting a 404 error. I’ve checked the Rewrite – True while creating a taxonomy. I don’t know what I’m missing. I’m working on my local machine. So I not able to share the link. Please Help

    • This topic was modified 3 years, 9 months ago by Dhinesh Ramalingam. Reason: forget to add tags
Viewing 2 replies - 1 through 2 (of 2 total)
  • You need to ask at the support forum for the plugin you are using. Because you are using more than one, I suggest you ask at the Custom Post Type Permalinks support forum and mention the settings used for ‘rewrite’ in CPT UI.
    Be sure you try saving Permalinks (which regenerates rewrite rules) before you ask them.

    The default values for these URLs are category and tag. You can change them, but you can’t remove them from the URLs altogether.

    Custom permalinks work on most systems without any problems, but there are still some conditions where problems occur.

    Using %category% with multiple categories on a post. When you assign multiple categories to a post, only one can show up in the permalink. The categories are ordered alphabetically. In each group of sub-categories the order will also be alphabetical (see Manage Categories). The post will still be accessible through all the categories as normal.

    Try the WP Category Permalink plugin if you want to choose which category will show up in the permalink.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding taxonomy slug in URL before post name returns 404’ is closed to new replies.