is_404() is true and have_posts() is also true?!
-
Hello, I have developed my own theme with index.php file but without 404.php
The problem is present when URL is like mysite.com/meaninglesstext, but everything is good, when URL is mysite.com/category/invalidpostname
I am testing is_404() and have_posts() at the very beginning of index.php file, no code is included before, but both conditions turn out true;
I have no self-made post types, I have turned off all plugins. Permalink settings are /%category%/%postname%/ . I tryed to change category and tag prefixes placing casual text, but no effect, though it is not important. Thanks in advance
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘is_404() is true and have_posts() is also true?!’ is closed to new replies.