is_single() doesn't work with my permalink structure
-
The permalink structure I want to use seems to be breaking my single posts.
When I use the default ?p=number permalinks, a single page will display fine. But when I change my settings to /%category%/%postname%/ the is_single function returns false on single posts, and if I run it through the loop it gives me the ‘no posts’ message.
Right now my main index.php has this:
if(is_home()){include(‘homepage.php’);}
else {include(‘categorypage.php’);}And the categorypage.php starts:
if (have_posts()) : while (have_posts()) : the_post();?>
What am I doing wrong?
The topic ‘is_single() doesn't work with my permalink structure’ is closed to new replies.