exclude the current page from query result
-
Hi,
I’m struggling and hope somebody can help me.
I have this get_pages array
<?php $pages = get_pages(array('child_of' => 23, 'exclude' => 60)); ?>
But instead of excluding post ID 60 I want to exlude the page I’m on at that moment.
I know it should be something like.$post->ID
but I can’t seem to get the notation right because my theme keeps breaking 🙁Anybody?
Thnx in advance
Michael
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘exclude the current page from query result’ is closed to new replies.