is_single
-
I am trying to show two different sidebars, one on the home page, one on pages and single posts. Here’s what I have so far on index.php
<?php if (is_single(true))
include ('sidebar2.php');
else
include ('sidebar.php');
?>What am I doing wrong?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘is_single’ is closed to new replies.