I need some pages for tracking purposes. I have some forms and depending of what city and course the user chooses, it redirects to the corresponding page (the url need to be like domain.com/course-city).
Is there a way to do this without create this pages? Ou create them dynamically
2 Answers
You can create pages via techniques similar to this https://clicknathan.com/web-design/automatically-create-pages-wordpress/ . That might give you the basics of the code needed to create a page dynamically.
The question is ‘when’ you will do this. You will need to tie your code into some action that corresponds to the ‘when’ you want the page to be created. The example above shows how to create pages when a sub-site is created in a multisite site (say an ‘about’ page that you want to be included on all sub-sites when a new sub-site is created).
The link above (and many similar links if you ask the googles) might get you started.