Forums

Search everything working but only get "Title" for search results (4 posts)

  1. kudzinskas
    Member
    Posted 4 months ago #

    Hi i was wondering if anyone could help me...

    I installed search everything and it seems to work but i still get same search results as on the default theme...can anyone help me ? do i need to change the search.php file to get more results?

    here is an example http://www.rubikdesign.co.uk/client_area/wordpress/

    Many thanks in advance

  2. kudzinskas
    Member
    Posted 4 months ago #

    Anyone have any suggestions to extend the results code?

  3. whooami
    Member
    Posted 4 months ago #

    you waited NINE minutes before bumping this?? wow. :<

  4. whooami
    Member
    Posted 4 months ago #

    your search.php is displaying titles because that is how that page is set up.

    You mention clients -- so put on your glasses and start looking at the files.

    here is the important bits of the loop inside the default theme's search.php:

    <?php while (have_posts()) : the_post(); ?>
    
    			<div <?php post_class() ?>>
    				<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>

    I see right there, that ALL thats going to be dispplayed is the title of the post.

    IF you want something else displayed, or rather your client does .. then LOOK at how other themes are doing it. For that matter, just look at how the default theme's index.php is set up.

    Theyre called template tags, theyre discussed ad nauseum on these forums, and theyre also covered in the codex. Instead of impatiently bumping threads, go do some reading.

    the_title
    the_content
    the_excerpt

    so on and so on, and so on. You want to work with WordPress, than you need to get a handle on how it works.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.