I create some dynamic pages in Wordpress through PHP. Lots of them.
Those are not visible in Wordpress backend, as all the data is taken from different database. Each of them use signle PHP template, but have unique URL. Its working just fine.
I have also created taxonomy tags in Wordpress.
How to tell Wordpress that each of those dynamic pages with unique URLs should use specified tags?
Example: I have pets. Dogs and cats, each of them have their names.
I have tags in Wordpress: john, dog, joe, cat
I have page in Wordpress: mydomain.com/pets/
And I have dynamic pages created in PHP from external DB (as dynamic categories, not visible in Wordpress backend): mydomain.com/pets/cats/ mydomain.com/pets/dogs/
And dynamic subpages with names of pets created in PHP from external DB (also not in backend): mydomain.com/pets/cats/joe/ mydomain.com/pets/dogs/john/
How to tell Wordpress that page: mydomain.com/pets/cats/joe/ should be related to tags 'joe' and 'cat' and page: mydomain.com/pets/dogs/john/ should be related to tags 'john' and 'dog'
So if someone uses tag: mydomain.com/tag/john/ it will show him corresponding dog page........
Is it possible? I have plenty of names and a lot of pets ;)
edit: updated title