dynamic url in wordpress for query

Say I have a page like this: www.somewebsite.com/jobs

On this page I simply have links with the names of job categories like: engineer, accountant and so on. For now, the href property is empty.

I also have a php file that processes job queries based on user input and returns matching results.

I want to basically just take whatever the name of the category that was selected (in this case engineer) and just generate a page called: www.somewebsite.com/jobs/engineer that is populated with content by the mentioned php file that processes job queries.

Examples of what im trying to do:


-The site just takes whatever comes after Jobs/ and uses that as the search value.


-Same thing here but with “foo”.

I noticed that the actualy links for these look like this:


Read more here:: dynamic url in wordpress for query

Leave a Reply

Your email address will not be published. Required fields are marked *