SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast scott g's Avatar
    Join Date
    Jun 2012
    Location
    STL . MO
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Website Search Results, Archives - Need Thumbnails by Excerpts.. HELP!

    Title says it all... I've got a new site that I'm working on:

    (a search result page too)
    http://motherapists.com/?s=jon

    How do I get thumbnails floating left of the post excerpts? There's one picture in each post. If I set a "featured image" it just floats atop, center... Looks like crap.

    How do I get my search results and archive results to show thumbnails with the excerpts, images float=left?

    Any help would be greatly appreciated! I'm stuck

    Scott

  2. #2
    SitePoint Mentor silver trophy
    Rubble's Avatar
    Join Date
    Dec 2005
    Location
    Cambridge, England
    Posts
    2,357
    Mentioned
    80 Post(s)
    Tagged
    3 Thread(s)
    I might be a bit concerned with the website name as it can read as something else

  3. #3
    SitePoint Enthusiast scott g's Avatar
    Join Date
    Jun 2012
    Location
    STL . MO
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow.. I didn't even see that! LOL! Good thing it's going to be reffered to as "Missouri Therapists" and MO Therapists.com -- Now that you mention it though.. I think I might change the URL! Lol! In the testing/building phase anyways.

    Question in hand: How to get a thumbnail/picture with search results. Here's the code in search.php
    Code:
    <div class="eleven columns">
    		<?php
    		if (have_posts()) :
    			while (have_posts()) : the_post();
    				get_template_part('loop', get_post_format());
    			endwhile;  else :
    			    get_template_part('loop', 'none');
    		endif;
    		?>
    </div>
    I don't know why I'm posting this from function.php -- as the excerpt code doesn't even work.. Unless It's not being called in the above search.php?!
    Code:
    function typo_excerpt_length($length) {
    	if (has_post_format('status')) {
    	return 140;
    	} else {
    	return 60;
    	}
    }
    Love this forum... Thank you for all the help!

    Scott

  4. #4
    SitePoint Enthusiast scott g's Avatar
    Join Date
    Jun 2012
    Location
    STL . MO
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    EXAMPLES

    This is what the search result Excerpt looks like:
    1.jpg


    If I add a FEATURED IMAGE I get a post excerpt WITH a left floating thumbnail... But also for some reason a duplicate image centered not aligned... I want the thumbnail left of the Excerpt ONLY! And it's gold!
    2.jpg

    Thanks!

    Scott


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •