I've been using a modified home.php which would show multiple threads of posts from different categories.
example: the left side would show all posts in the 'feature' category, and the right side would show all posts in the 'web' category.
I'm trying to do something new, by showing the contents of a page slugged with 'home', but allowing a list of latest posts show from a 'news and announcements' sidebar.
Here is what i've been using for showing mulitple categories. Would anyone know what i should use to show a specific page by its id?
<!-- Begin Feature Story --> <?php $posts = get_posts( "category=14&numberposts=1" ); ?> <?php if( $posts ) : ?> <?php foreach( $posts as $post ) : setup_postdata( $post ); ?> <div id="feature"> <h2 class="posttitle"> <a href="<?php the_permalink() ?>" title="Click to read <?php the_title(); ?>"><?php the_title(); ?></a> </h2> <div class="meta"><span class="left"><?php the_time('F jS, Y') ?> <span class="postcomments"><?php comments_popup_link(__('(0)'), __('(1)'), __('(%)')); ?></span></span> Posted By <?php the_author() ?>.</div> <div class="postbody"><?php the_excerpt_reloaded(100, '<img><p>', 'none', 'content_rss', 'Read More »', FALSE); ?></div> <?php edit_post_link('Edit this entry','<span class="editentry">','</span>'); ?> </div><!-- end feature --> <?php endforeach; ?> <?php endif; ?> <!-- End Feature Story -->
I'm assuming it's a modification of this call
<?php $posts = get_posts( "category=14&numberposts=1" ); ?>
by changing it to
<?php $posts = get_pages(); ?>
I've managed it to show all pages in a thread. What changes to this 'get_pages();' would i make to call a specific page id?
Thanks for any help.