GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Wordpress Related Posts Question (https://gfy.com/showthread.php?t=1046794)

Rick Diculous 11-21-2011 09:52 PM

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 11-21-2011 10:03 PM

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

I just did a search on yahoo

EddyTheDog 11-21-2011 10:24 PM

Quote:

Originally Posted by Rick Diculous (Post 18577276)
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....

fris 11-22-2011 11:02 AM

Quote:

Originally Posted by Rick Diculous (Post 18577276)
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/

Catalyst 11-22-2011 11:39 AM

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

madtwin 11-22-2011 11:44 AM

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

fris 11-22-2011 01:45 PM

Quote:

Originally Posted by Rick Diculous (Post 18577276)
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>';
}

?>


cybermike 11-22-2011 01:56 PM

Related Posts Thumbnails wish these plugins work with nextgen generated galleries

fris 11-22-2011 02:04 PM

Quote:

Originally Posted by cybermike (Post 18579123)
Related Posts Thumbnails wish these plugins work with nextgen generated galleries

you could make it work.

rogueteens 11-22-2011 02:06 PM

I use http://rmarsh.com/plugins/similar-posts/


All times are GMT -7. The time now is 10:27 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123