Excluding Current Page AND Specific Other Pages with wp_list_pages
-
Using
wp_list_pages
, it makes complete sense to exclude either specific pages via ID -or- the current page via'exclude' => $post->ID,
.However, I wish to exclude BOTH specific pages and the current page from the list.
So, if I wanted to exclude pages with IDs ‘1,’ ‘2,’ and ‘3’ plus the current page, is there some way to combine the two excludes?
I’ve tried things like
'exclude' => '1,2,3,'.$post->ID.,
but nothing I’ve tried has yet to work.Any help is appreciated!
(My searches through this forum & online in general have only resulted in one form of exclude or the other – not both.)
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Excluding Current Page AND Specific Other Pages with wp_list_pages’ is closed to new replies.