I am currently using WordPress with SEO friendly permalinks.
One page of my website is a special one though, let's call it
It is using a custom page template that loads values from a database table called "locales" and echoes the content to a html table.
id, location, address, type, guid
3, Yale, Burberry street 21, Apartment, 40VIEOUKK2VA07F2
I have currently configured my PHP code in the custom page template so that the location column contains a link to the guid for each item like this:
echo "<td><a href=\"?guid=" . $row['guid'] . "\">" . $row['address'] . "</a></td>";
This gives me a link that looks like this:
Now I have two questions:
- How do I proceed to actually load the details from a locale with a specific guid if they are stored in a different database table?
- How do I make an URL rewrite for
/?guid=40VIEOUKK2VA07F2so that it becomes something like