Since I don't think the_excerpt is going to give you exactly what you want, I would create a custom field called 'description'. What the code below does is check to see if that field has been filled in, if it has it will display it.
The query at the top of the page makes sure that it is only looping through pages. If you want it to loop through specific sections you'll need to dig a little deeper into the query.
<?php query_posts('post_type=page'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
Perfect dude!!! You're the man! One last thing, I'm trying to use box resizing to automatically resize my post thumbnails, but it doesn't seem to be working. I'm putting this in my functions.php file.
The 'true' means it will hard crop the image to make sure it fits your dimensions exactly. I prefer it as it ensures all of the images will be similar.
You might need to regenerate your thumbnails. There is a plugin to do this (so you don't have to re-upload all of your images).
I'm trying to get WordPress to display an unordered list of pages in one of my templates. I'm trying to achieve something like this.
Any help will be appreciated. Thanks in advance.
The query at the top of the page makes sure that it is only looping through pages. If you want it to loop through specific sections you'll need to dig a little deeper into the query.
Any idea on how I'd call sub-pages, for example, if I only wanted to show pages that are children of a parent page called "Culture"?
Then in your template:
The 'true' means it will hard crop the image to make sure it fits your dimensions exactly. I prefer it as it ensures all of the images will be similar.
You might need to regenerate your thumbnails. There is a plugin to do this (so you don't have to re-upload all of your images).
http://wordpress.org/extend/plugins/regenerate-thumbnails/