• Resolved Shakur

    (@shakur81)


    Hi,

    Sorry for the noob question ??
    Right now, with the plugin I am getting the URL like this:

    siteurl/customposttype/taxonomy1/taxonomy2/taxonomy3/

    How can I change the rewrite rules to remove the CPT from the URL? to have it like this:

    siteurl/taxonomy1/taxonomy2/taxonomy3/

    Thanks in advance!

    • This topic was modified 7 years ago by Shakur.
    • This topic was modified 7 years ago by Shakur.
Viewing 1 replies (of 1 total)
  • Plugin Author Jonathandejong

    (@jonathandejong)

    Hi @shakur81

    Unfortunately that is not possible with BTF.
    The reason for this is because the urls *without* the cpt slug is reserved for WordPress core urls for watching a particular taxonomy->term archive. And I do not want to mess with these for many reasons.

    However if you want to experiment with it you’ll find the function for the rewrite rules in admin/class-beautiful-taxonomy-filters-rewrite-rules.php and particularly the CPT is added on line 71.

    Best of luck!

Viewing 1 replies (of 1 total)
  • The topic ‘Remove the CPT in the rewrite rules’ is closed to new replies.