Hi there guys, just got the following site setup: http://weddingstrategies.com/ I have the categories listed on the left sidebar. However, I'm facing problems with ONE page here: http://weddingstrategies.com/category Which page does this URL refer to? I checked 404.php, archive.php but couldn't find the flaw. The categories are made into several category-##.php files so its not using category.php Anyone can help?
That doesn't point to a page at all - that's why it comes up with the title "Nothing found..." That's loading the custom 404 error page. If you're looking for the template page that displays the category listings, that's usually archive.php I believe. - Walkere
But if it loads the custom 404.php page, then it should'nt actually look like that. The actual page has been adjusted accordingly to fit the theme. That page has some table items too, which, none of the pages now have. Any idea?
In most of the template pages, there's a basic if/else statement. If posts are found in that category, they are displayed. Otherwise, some sort of "Not Found" is displayed. For example, this is in the default archive.php template... <?php else : ?> <h2 class="center">Not Found</h2> <?php include (TEMPLATEPATH . '/searchform.php'); ?> <?php endif; ?> PHP: Might have something to do with that. - Walkere
That's exactly what I have in my archive.php too. No 404 error. I dont know where is the 404 coming from at all.. edited: Well, I removed the 404.php file from the template folder and the page is now rendering perfectly. I don't know what was causing it and I hope removing the 404 page was not a mistake to do. But thanks a lot guys. Digimaya, yeah, the problem is now solved (somewhat) but I'm up for learning if you do have a workaround..
It's referring to your 404.php template file. Are you using the Category Base Killer plugin, or did you directly edit your wp-includes/rewrite.php file to remove the category base from your category, archive and tag URL strings? If you did either one, you'll have to add a file extension (.htm, .html, .php .mydoglarry - ok, I made that last one up) to your blog posts in Options > Permalinks in the Custom Structure form field. For more information, please refer to my comment on Brian Shoff's blog (he's the creator of the Category Base Killer plugin). http://www.brianshoff.com/wordpress/category-base-removal-plugin.htm#comment-1544
Thanks Dan, but none of them were in play. Its okay though, the problem has been figured out by deleting the 404.php file and I dont seem to see anymore conflicts now. Thanks for the responses guys..
Then that tells me there's a syntax problem with your theme files as the 404.php file should NEVER do that.