• Resolved tPet

    (@firequartz)


    I have some long time WP sites. Recently, I’ve noticed that when doing a search (via the Search widget) .. on the results page .. all posts prior to 2008 show up first .. and then resumes with most recent in descending order.

    Note this only happens via Search .. clicking Tag or Category listed links .. they show up in the correct order.

    So .. um .. what’s up with that?

Viewing 7 replies - 1 through 7 (of 7 total)
  • What theme are you using? Where did you download it from?

    Thread Starter tPet

    (@firequartz)

    had it for years .. it’s been tweaked and customized a ton .. in various ways on various sites .. this is the search.php file though …

    <?php get_header(); ?>
    
    	<div id="content" class="narrowcolumn">
    
    	<?php if (have_posts()) : ?>
    
    		<h2 class="pagetitle">Search Results</h2>
    
    		<div class="navigation">
    			<p><?php next_posts_link('&laquo; Previous') ?> &nbsp; <?php previous_posts_link('Next &raquo;') ?></p>
    		</div>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    			<ul class="date">
    			<li class="day"><?php the_time('d') ?></li>
    			<li class="month"><?php the_time('M') ?></li>
    			</ul>
    			<ul class="title">
    			<li class="topic"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></li>
    			<li class="postmeta"><?php the_time('g:i a'); ?>  | <class="postmetadata">Posted in <?php the_category(', ') ?> <?php edit_post_link('| Edit'); ?></li>
    			</ul>
    
    			<div class="clear"></div>
    
    			<div class="entry">
    				<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
    
    				<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
    
    			</div>
    		</div>
    
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<p><?php next_posts_link('&laquo; Previous') ?> &nbsp; <?php previous_posts_link('Next &raquo;') ?></p>
    		</div>
    
    	<?php else : ?>
    
    		<h2 class="center">No posts found. Try a different search?</h2>
    		<?php include (TEMPLATEPATH . '/searchform.php'); ?>
    
    	<?php endif; ?>
    
    	</div>
    
    <?php include("sidebar3.php");  ?>
    
    <?php get_footer(); ?>
    Moderator keesiemeijer

    (@keesiemeijer)

    Try:
    – deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems.

    Thread Starter tPet

    (@firequartz)

    Disabling plug-ins .. no difference.

    Switch themes … no difference.

    Thanks though.

    Moderator keesiemeijer

    (@keesiemeijer)

    Can we have a link to your site?

    You can try to check in this plugin
    https://www.ads-software.com/plugins/list-category-posts/
    how is the order changed in html/php code.
    It is made using these shortcodes:
    order=desc
    order=asc

    Thread Starter tPet

    (@firequartz)

    Sorry .. got involved in other things – and this really wasn’t a hot button for me .. anyway.. looks like WP 3.8 corrected the issue.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Search Results – Old posts showing first’ is closed to new replies.