Hi,
Is it possible to render data stored within a template outside of that template?
Here's an example of what I mean...
I have a template: animals.php
Within that template there are three defined categories: dogs, cats, whales
site.com/animals.php renders a list of all animals
site.com/animals/dogs.php renders a list of all animals in the dogs category etc.
So far, so good, all standard stuff. But here's where I'm stuck:
I have a page pets.php, the url is site.com/pets.php I need this page to render all animals from the dogs and cats categories. Can it be done?
I hope this makes sense, and any help is gratefully received!
Is it possible to render data stored within a template outside of that template?
Here's an example of what I mean...
I have a template: animals.php
Within that template there are three defined categories: dogs, cats, whales
site.com/animals.php renders a list of all animals
site.com/animals/dogs.php renders a list of all animals in the dogs category etc.
So far, so good, all standard stuff. But here's where I'm stuck:
I have a page pets.php, the url is site.com/pets.php I need this page to render all animals from the dogs and cats categories. Can it be done?
I hope this makes sense, and any help is gratefully received!