I’m fairly new to wordpress and all my previous sites have been in .asp or raw .php. and although I can tinker I’m no developer and due to time constraints I was hoping this would be an easy fix - but I'm not getting very far and suspect what I'm trying to do will be too advanced for me in the time I have.
I'm trying to migrate a site presently written in classic .asp. What I’m trying to accomplish – which is simple in the above .asp – is as follows:
I have a site which has a database of towns & postcodes, counties etc. A user can click on a list of towns which have a URL like https://example.com/delivery/?town=London - or click on a link https://example.com/delivery/London that gets re-written to the URL with parameters that calls the same page and passes the same paramaeters
I used to be able to extract the parameter “London” and use it as a parameter to generate a query to list all the supported locations in London, but also use the “London” tag to generate Meta tags, keywords and descriptions for SEO purposes – I then need the URL to be written like https://example.com/delivery/London
Using a plugin that allows me to put PHP code in the page, I can read the “london" parameter and create the sql query and produce the required list OK – but what I can’t work out in WordPress is how to use this paramter to populate metatag data and rewrite the URL “cleanly”
This could result in several 1000 pages - hence the need to dynamically generate the pages.
I apologise if this has been asked before – but given my knowledge of WordPress a lot of what I’ve seen goes over my head. Is what I’m trying to do possible – either by a bit of tinkering or ideally a plug-in of some kind? I've been told I need to invoke some functions, and create plugins - but time constraints prevent me from getting this working as the learning curve is too geat at the moment - I've no idea where these functions are, how to create a plugin etc etc.
Any suggestions, pointers or information would be greatly appreciated. My knowledge of the inner workings of Wordpress isn't great, so anything to technical probably wont help me although if there is something that explains it all I would be able to start learning, but time is against me!!
p.s. the site is running on a test server to not “live”