gallamine
Member
Posted 2 years ago #
I recently moved my site to the latest version because of a hack. I exported my data into a completely new site. I did this in the public_html/wordpress/ directory, got everything working, then moved the contents of ../wordpress to ../
Now, the main page doesn't return any posts via "have_posts()". All the posts are still there - I can go to the archives, etc. and find them, but it seems the mainpage have_posts() function doesn't return anything. I'm baffled. Help!
gallamine
Member
Posted 2 years ago #
The main index.php template calls:
<?php get_header(); ?>
<?php get_sidebar(); ?>
<div id="content" class="narrowcolumn">
<?php if (have_posts()) : ?>
... which is identical to search.php which WORKS:
search.php
<?php get_header(); ?>
<?php get_sidebar(); ?>
<div id="content" class="narrowcolumn">
<?php is_tag(); ?>
<?php if (have_posts()) : ?>
gallamine
Member
Posted 2 years ago #
If I *disable* permalinks (set to default), everything works.
When I have it set to my original settings, "/%category%/%postname%/" it does not, and YES, I did modify the .htaccess file.
gallamine
Member
Posted 2 years ago #
If I choose any of the permalink settings other than Default, the home page doesn't display the posts.
gallamine
Member
Posted 2 years ago #
I have read through all of http://codex.wordpress.org/Using_Permalinks and still no luck. I've deleted and recreated the .htaccess file. I've had WP create it for me - no dice.
gallamine
Member
Posted 2 years ago #
Ah ha! It was the "Redirection" plugin that was causing issues. Once I deactivated it, the homepage displayed the posts correctly.