Hi everyone,
I'm working with a template called "Scarlett", and it has a featlist.php file that I think could work great for me if I can get it to do what I want.
It currently lists random posts with a picture on the right side of the screen. Since I'm using WordPress to try and create a website, I'd like for the code to be changed so the page instead will show ALL posts, sorted by name (the title of the post).
Does anyone know how to change the code so this will work properly? I'm a complete newb at coding, so the help would be greatly appreciated.
The code as it looks at the moment is posted at the end of this message.
Best regards,
Merc.
<div id="postlist">
<ul class="spy">
<?php $my_query = new WP_Query('orderby=rand'); ?>
<?php while ($my_query->have_posts()) : $my_query->the_post();?>
<?php $screen = get_post_meta($post->ID, 'screen', $single = true); ?>
<img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $screen; ?>&h=60&w=100&zc=1" alt=""/>
<h2>" title="<?php the_title(); ?>"><?php the_title(); ?></h2>
<?php endwhile; ?>
</div>
<div class="clear"></div>