PHP Code:
<?php
wp_reset_query();
query_posts( array( 'post_type' => 'post', 'cat' => 47 ) );
global $more;
// set $more to 0 in order to only get the first part of the post
$more = 0;
// the Loop
while (have_posts()) : the_post();
// the content of the post ?>
<a href="<?php the_permalink(); ?>" title="Read <?php the_title(); ?>"><h2>
<?php the_title(); ?></a></h2>
<?php the_post_thumbnail(array(100,100)); the_excerpt(); edit_post_link('Edit', '', '');
endwhile;
?>
I will be replacing the number for 'cat' in the query with the relevant category number based off an array to attach categories to page id's.
Anyone have a solution or know why this won't save to the atahualpa options? Works perfectly in the page template. Thanks!