Search Results Don't Show Post Titles

resolved (6 posts) (2 voices)

  1. Rich_Dub
    Member

    Hi when I search on my site the results display the Featured Image and text from each post but no Post title. Is there any way to get them to show? (url: http://amplifiedaccess.com/?s=amplified+access)

    Also I am trying to find a solution to Wordpress' not so great search engine to provide more accurate search results with higher weighting for Title, Tags, and Categories and sorting by relevance rather than by date. Is there any plugins you've come across/recommended before that accomplish this?

    I've tried Search Everything doesn't seem to be quite what I'm looking for and Relavanssi which looks great but I can't get to work.

    Thanks in advanced!

    Posted 5 years ago #
  2. Hi!

    I've found a way to do it. Please, open your loop.php file and between lines 32-34, where you have this:

    <div class="post_excerpt">
    	<?php mysite_post_content( array( 'blog_layout' => $layout['blog_layout'] ) ); ?>
    </div>

    Replace with this:

    <div class="post_excerpt">
    	<?php if (is_search()) { echo "<h1>"; the_title(); echo "</h1>"; } ?>
    	<?php mysite_post_content( array( 'blog_layout' => $layout['blog_layout'] ) ); ?>
    </div>

    Let me know how it works for you!

    []'s

    Posted 5 years ago #
  3. Hi!

    I've found a way to do it. Please, open your loop.php file and between lines 32-34 you'll need to do this:
    http://pastebin.com/cN3Y83au

    Let me know how it works for you!

    []'s

    Posted 5 years ago #
  4. Rich_Dub
    Member

    Worked perfectly! Although this fix makes the new Title plain text rather than a link to the post. If the post does not have a featured image with a "Read More" button on it, there's no clickable link to the post. (URL: http://amplifiedaccess.com/?s=twitter)

    PS: Found a plugin "WP Search 2" that works and resolves my 2nd original question.

    Posted 5 years ago #
  5. Oops, my bad :)

    Follow these instructions instead:
    http://pastebin.com/UDgDNhAG

    []'s

    Posted 5 years ago #
  6. Rich_Dub
    Member

    Perfect! Thanks for the immediate help :)

    Posted 5 years ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme