Hello how is everyone doing? I am working on a wordpress site for another company and I am perplexed in how to get my home page to do what I am wanting it to go. As of now the main.php is grabbing posts. What I would like it to do is just grab a content box or constantly grab the same post and not the most recent. If anyone has any suggestions I would be thankful. Here is the code to the main page and where I am working on it for viewing.
www.thesavingsbandit.com
PHP Code:
<?php get_header(); ?>
<div class="container_24">
<div class="grid_9" id="sidebar-left">
<div class="indent"><?php if ( ! dynamic_sidebar( 'Sidebar Left' ) ) : ?>
<!-- Widgetized Header -->
<?php endif ?></div>
</div>
<div class="grid_11">
<div id="content">
<?php query_posts('category_name=featured&showposts=1'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="post-meta">
<?php the_time('M j, Y'); ?> <?php the_time() ?> Posted by <?php the_author_posts_link() ?>
</div><!--.post-meta-->
<div class="post-content">
<div class="excerpt"><?php the_excerpt(); ?></div>
<div class="post-meta-bot"><a href="<?php the_permalink() ?>">Read more</a><?php comments_popup_link('No comments', 'One comment', '% comments', 'comments-link', 'Comments are closed'); ?></div> </div>
</article>
<?php endwhile; else: ?>
<div class="no-results">
<p><strong>There has been an error.</strong></p>
<p>We apologize for any inconvenience, please <a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>">return to the home page</a> or use the search form below.</p>
<?php get_search_form(); ?> <!-- outputs the default Wordpress search form-->
</div>
<!--noResults-->
<?php endif; ?>
<?php wp_reset_query(); ?>
<?php if ( ! dynamic_sidebar( 'Content' ) ) : ?>
<!-- Widgetized Header -->
<?php endif ?>
</div>
<!--#content-->
</div>
<div class="grid_4"><?php get_sidebar(); ?></div>
</div>
<?php get_footer(); ?>
Thanks in advance.