1


i am quite confused about the permalink stuff. So here is whats up...
I have a page called tours as well as custom post type called mc_tours. At first i just changed page permalink to mydomain/mc_tours/ but then i wanted permalink to show just "Tours" so i assigned archive-mc_tours template to my tours page and changed permalink back to mydomain/tours/ (well when i click on single post permalink still changes to mydomain/mc_tours/post-name no idea what to do with that... but id like it to be mydomain/tours/postname). And now i added categories as Tours page submenus. and when i click on a certain category the permalink changes from mydomain/tours/ to mydomain/category/category0-name, how can i set it that that permalink will be at least something like this mydomain/tours/category/category-name. Ideal situation would be this: mydomain/tours/category-name... is there a way deal with this? or should i create pages for each category.


P.S i also want to have sidbar drowpdown category menu.

1
  • Please properly format your question. It is a mess and hard to read. Please see How to Ask Jan 14, 2016 at 17:09

1 Answer 1

0

You need to modify the rewrite argument when you register your post type:

$args = array(
    // [...]
    'rewrite' => array( 'slug' => "Tours" ),
);
register_post_type( mc_tours, $args );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.