Add term slug in URL of custom post type details page

by Rigal   Last Updated June 21, 2019 07:08 AM

I have created a custom post type called "movies" and I have added custom taxonomy "Available for " and it contains two terms

  1. Rent
  2. sales.

Current movie post details page URL

movies/avengers-endgame/

I want URL Like

movies/sales/avengers-endgame/
movies/rent/avengers-endgame/
movies/{%selected term%}avengers-endgame/

Anyone, please suggest a possible solution to fix the above issue?

Thanks



Related Questions




Custom Taxonomy - Using URL Parameters to Filter Posts

Updated October 14, 2018 04:08 AM

WP Rewrite Rules - Custom post type & taxonomy

Updated April 22, 2015 23:03 PM