Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #17046

    Hi there,

    today I decided to change the standard related post images function which is placed in the bottom part of every single page. That because, in my opinion, the standard “related posts” is not really accurate, and sometimes the content is not really realted with the posts which are shown below the author description.

    So I decided to use a plug-in “nrelated” instead the standard function used in Shoutbox, now the problem is that I’d like to add the new thumbnails in the same position as the old were shown, procedure that should be really simple, because they give the option to place manually the related content adding the following code where you like is displayed:

    <?php if (function_exists(‘nrelate_related’)) nrelate_related(); ?>

    I tried to add that code inside the singlepage.php, where the funcion is call, but without success..

    I hope you can help me out





    Please try to open includes > related-posts.php. Find this code which renders the thumbnail.

    $output .= "<div class='relThumb relThumb".$count."'>n";
    $output .= "<a href='".get_permalink()."' class='relThumWrap noLightbox'>n";
    $output .= $image;
    $output .= "<span class='relThumbTitle'>n";
    $output .= "<strong class='relThumbHeading'>".avia_backend_truncate(get_the_title(), 50)."</strong>n";
    $output .= "</span>n</a>";
    $output .= "</div><!-- end .relThumb -->n";



Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Replace standard related post thumbnails’ is closed to new replies.