Wordpress Related Posts Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rick Diculous
    Confirmed User
    • Jul 2008
    • 2384

    #1

    Wordpress Related Posts Question

    I sometimes come accros blogs using a related post plugin that shows thumbs instead of a text link. Anyone know a good plugin that can do this?
  • HandballJim
    Confirmed User
    • Sep 2008
    • 4024

    #2
    I would just get premium word press theme with the bells and whistles already in place.

    I just did a search on yahoo
    HOW I MAKE LOTS OF $$$

    Comment

    • EddyTheDog
      Just Doing My Own Thing
      • Jan 2011
      • 25433

      #3
      Originally posted by Rick Diculous
      I sometimes come accros blogs using a related post plugin that shows thumbs instead of a text link. Anyone know a good plugin that can do this?
      You can add an image with any link - Then just use a theme that uses them....

      I have been playing with Suffusion - very cool....

      Comment

      • fris
        Too lazy to set a custom title
        • Aug 2002
        • 55679

        #4
        Originally posted by Rick Diculous
        I sometimes come accros blogs using a related post plugin that shows thumbs instead of a text link. Anyone know a good plugin that can do this?
        yarpp does this with the templating feature.

        http://urbangiraffe.com/2010/10/31/r...ls-with-yarpp/
        Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

        Comment

        • Catalyst
          Confirmed User
          • Jun 2003
          • 3243

          #5
          if you find a blog that does that.. I can see if I can pull a plug-in list from that site.. that might help

          Comment

          • madtwin
            Confirmed User
            • Aug 2009
            • 274

            #6
            Related Posts Thumbnails - best and free wordpress plugin. Some themes need adding thumbnail function into functions.php to properly show any thumbs.

            Comment

            • fris
              Too lazy to set a custom title
              • Aug 2002
              • 55679

              #7
              Originally posted by Rick Diculous
              I sometimes come accros blogs using a related post plugin that shows thumbs instead of a text link. Anyone know a good plugin that can do this?
              or you could go without a plugin, maybe something along these lines?

              Code:
              <?php
              
              function my_related_posts_thumbnail($width = 120,$height = 160){
              	global $post;
              	$permalink = get_permalink($post->ID);
              	$title = $post->post_title;
              	$post_img = '';
              	ob_start();
              	ob_end_clean();
              	$output = preg_match('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);   
                  $post_img_src = $matches [1]; 
              	if(empty($post_img_src)){
              		$post_img = '<a href="' . $permalink . '" title="'.$post->post_title.'"><img src="'.get_bloginfo("template_url").'/images/default_thumb.jpg" alt="'.$post->post_title.'" />'.$post->post_title.'</a>';
              	}else{
              		$post_img = '<a href="' . $permalink . '" title="'.$post->post_title.'"><img src="'.$post_img_src.'"  alt="'.$post->post_title.'" />'.$post->post_title.'</a>'; 
              	}
              	echo $post_img;
              }
              
              function my_related_posts($post_num = 4) {
              	global $post;
              	$exclude_id = $post->ID;
              	$i = 0;
              	$cats = ''; 
              	foreach ( get_the_category() as $cat ) $cats .= $cat->cat_ID . ',';
              	$args = array(
              		'category__in' => explode(',', $cats),
              		'post__not_in' => explode(',', $exclude_id),
              		'caller_get_posts' => 1,
              		'orderby' => 'rand',
              		'posts_per_page' => $post_num - $i
              	);
              	query_posts($args);
              	while( have_posts() ) { the_post(); 
              		echo "<li>" . my_related_posts_thumbnail() . "</li>";
              		$i++;
              	} 
              	wp_reset_query();
              	if ( $i == 0 )  echo '<li>No related posts!</li>';
              }
              
              ?>
              Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

              Comment

              • cybermike
                Confirmed User
                • Jan 2002
                • 4121

                #8
                Related Posts Thumbnails wish these plugins work with nextgen generated galleries
                Hey surfers how about some The Best Porn Sites

                Comment

                • fris
                  Too lazy to set a custom title
                  • Aug 2002
                  • 55679

                  #9
                  Originally posted by cybermike
                  Related Posts Thumbnails wish these plugins work with nextgen generated galleries
                  you could make it work.
                  Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                  Comment

                  • rogueteens
                    So fucking bland
                    • Jul 2006
                    • 8005

                    #10
                    I use http://rmarsh.com/plugins/similar-posts/
                    Free traffic and backlinks from one of the fastest growing adult pinsites on the net - SAUCY PICTURES!
                    Easily my best performing webcam sponsor - CLICK HERE!!

                    Comment

                    Working...