• Resolved cinnoi

    (@cinnoi)


    I need help. I’m using the Twenty Eleven theme but my search results lose all formatting and end in “aaa”. Here’s an example.

    I’m using a child theme, but I haven’t made any changes to the original search.php file and have no idea what is causing this to happen. All I want is for the search results to bring up the post until the <–more–> tag, just link the index pages.

    Any help would be much appreciated; I’ve absolutely no idea what’s going on.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Make sure the <–more–> tag is outside blockquote

    end in “aaa”.

    that is a bit unusual.

    to get full posts (up to the ‘more-tag’ if used) edit content.php:

    <?php if ( is_search() ) : // Only display Excerpts for Search ?>
    		<div class="entry-summary">
    			<?php the_excerpt(); ?>
    		</div><!-- .entry-summary -->
    		<?php else : ?>
    		<div class="entry-content">
    			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
    			<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
    		</div><!-- .entry-content -->
    		<?php endif; ?>

    change that to:

    <div class="entry-content">
    			<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?>
    			<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'twentyeleven' ) . '</span>', 'after' => '</div>' ) ); ?>
    		</div><!-- .entry-content -->
    Thread Starter cinnoi

    (@cinnoi)

    Thank you so much. That worked perfectly.

    Thanks for this =)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Search Results on Twenty Eleven remove post formatting, not working.’ is closed to new replies.