buster808 Posted April 30, 2021 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
buster808 Posted April 30, 2021 Author Posted April 30, 2021 daaah had to change selector <?php $workposts = $page->children("$work");?>
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