haywars
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Children of Parent Category Post?At the moment that code does not work at all.
What I am trying to accomplish is take a category and display all posts from a specific child category and display theses posts in a random order and have them paged with 6 posts displaying on a page. In this form:
<?php global $more;?> <?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('child_of=16&showposts=6&orderby=rand'.'&paged='.$paged); while (have_posts()) : the_post();the code works the way I want except not being able to display a specific category child posts.
For example if I had a category named “Bob” and had a sub category of “jack” and “jill” under “Bob”. I want all the posts from “jack” to be displayed.
Forum: Fixing WordPress
In reply to: Query Thumbnails?I feel completely silly, thanks! You are a life saver!
Forum: Themes and Templates
In reply to: Theme Slider not DisplayingFigured it out…phew!
Forum: Themes and Templates
In reply to: Post Display StyleActually I have figured out how to add the images. It was fairly easy.
Thank you for all the help!
Forum: Themes and Templates
In reply to: Post Display StyleThanks esmi. Got the code to what I want it to be.
<h1>Top Stories</h1> <?php $postslist = get_posts('numberposts=3&order=ASC&category=3'); foreach ($postslist as $post) : setup_postdata($post); ?> <div> <h5><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h5> <?php the_date(); ?> <?php the_content(__('Read more'));?><div style="clear:both;"></div> <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?><br /> </div> <?php endforeach; ?>Ill change the CSS later on to fit my needs. But I was wondering about the Picture situation, does that have to be added within the CSS? but then it would display the same picture for each post….its kind of a head scratcher.
If it can be done that would be great but I just need to be pointed in the right direction.
Cheers!