Random Posts with Thumbnail script help

Discussion in 'PHP' started by grafx77, Jun 27, 2008.

  1. #1
    I have a script below that shows a large thumbnail, title, description, etc on my wordpress blog. This script was given to me by someone within the Wordpress community. I don't have alot of PHP knowledge, but do know enough to manipulate. Can someone please look at this script and let me know how to display only the "title" and "thumbnail" ONLY. Plus I need to resize the thumbnail. Any help would be greatly appreciated.

    <?php query_posts('showposts=999&random=true');?>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    	<div>
    		<h1><?php the_title(); ?> (<?php the_time('j. F Y'); ?>)</h1>
    		<p><?php the_content(); ?></p>
    	</div>
    <?php endwhile; else: ?><p>Oops, no posts!</p><?php endif; ?>
    Code (markup):

     
    grafx77, Jun 27, 2008 IP
  2. dannet

    dannet Well-Known Member

    Messages:
    864
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    153
    #2
    It seems like your script take the displayed info from the_title() and the_content() functions, you should post the content of these functions here and we will be able to help you.
     
    dannet, Jun 28, 2008 IP
  3. grafx77

    grafx77 Well-Known Member

    Messages:
    810
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Its a simple Wordpress install. Do you have any clue as to what file I would find these functions?
     
    grafx77, Jun 28, 2008 IP