buster808 Posted April 30, 2021 Share Posted April 30, 2021 Hi, I have a list of pages with diffrent templates. Work- Web design prototype video interactive I want to create a navigation that uses one of the fields from each template so when Work is selected they show. I've been able to do this but just for one template. <?php $workposts = $page->children("template=webpages");?> <?php foreach ($workposts as $post): echo " <a href='$post->url' style='text-decoration:none'>$post->work_cat</a>"; ?> Do I have to link the pages somehow. Thanks for any help Link to comment Share on other sites More sharing options...
buster808 Posted April 30, 2021 Author Share Posted April 30, 2021 daaah had to change selector <?php $workposts = $page->children("$work");?> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now