Using is_page($pageID) on single.php when pages are using single.php?
-
Hi there,
I’m trying to use this code on single.php to output a list of certain categories. It works fine when I use it on page.php but I thought I’d try *not* using page.php as I don’t need an extra template file as I feel I can get pages themed the way I want using just single.php.
However this code just won’t work on single.php for the page even when page.php isn’t being used anymore.
<?php if ( is_page(10231) ) { ?> <?php wp_list_categories('show_count=0&child_of=60&title_li='); ?> <?php } ?>
Is it possible to use is_page($pageID) on single.php even when pages are using single.php as it’s theme file?
I hope that my question is clear.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Using is_page($pageID) on single.php when pages are using single.php?’ is closed to new replies.