Search page results conflicting logic – Search result caching?
Hm, I’m not sure, but your use of have_posts may be problematic. Note the codex states “As a side effect, have_posts starts, steps through, or resets The Loop.”. High up in your code you have <?php if ( have_posts() ) : ?> <?php if ( have_posts() ) : the_post(); ?> This may be causing unexpected … Read more