Forum Replies Created

Viewing 16 replies (of 16 total)
  • Thread Starter rdmckelvey

    (@rdmckelvey)

    Rev. Voodoo,

    The “News and Events” header is purely editorial. The client will post content of the news/event flavor once the site goes live.

    The front page is not static. It has a loop that came from another theme (I used the “beach” theme, which I’ve modified to suit my needs).

    The front page is to show a limited number of posts. There’s currently a limit of the last three and an omission of category 17…

    Here’s the code of the current index.php page:

    <?php
    /**
     * @package WordPress
     * @subpackage JRW
     */
    
    get_header(); ?>
    
    <?php get_sidebar(); ?>
    
    <div id="main" class="home_main">
    <div id="slider">
    	<a href="https://www.jamesriverwriters.org" target="_blank"><img src="<?php bloginfo("template_url"); ?>/images/slide_1.jpg" alt="" /></a>
    	<a href="https://www.jamesriverwriters.org" target="_blank"><img src="<?php bloginfo("template_url"); ?>/images/slide_2.jpg" alt="" /></a>
    	<a href="https://www.jamesriverwriters.org" target="_blank"><img src="<?php bloginfo("template_url"); ?>/images/slide_3.jpg" alt="" /></a>
    </div>
    <div id="main_center_column">
      <h1>News and Events</h1>
      <?php /* Start the Loop */ ?>
      <!-- Start the Loop. -->
      <?php query_posts($query_string . '&cat=-17&showposts=3'); ?>
      <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    
     	<div class="post">
    
     		<!-- Display the Title as a link to the Post's permalink. -->
     		<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    
     		<!-- Display the date -->
     		<small><?php the_time('F jS, Y') ?></small>
    
      		<div class="entry">
        		<?php the_content(); ?>
      		</div>
    
      		<p class="postmetadata">Posted in <?php the_category(', '); ?></p>
     	</div> <!-- closes post div box -->
    
     <?php endwhile; else: ?>
     	<p>Sorry, no posts matched your criteria.</p>
     <?php endif; ?>
     </div> <!-- closes center_column div box -->
     <div id="right_sidebar">
        <ul id="tweets">
          <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right Sidebar') ) : ?>
    				<?php endif; ?>
        </ul>
     </div><!-- closes right_sidebar box -->
    </div>
    <!--Extra DIV to house the floating illustration at the bottom of the page-->
      <div id="illustration_footer"></div>
    <?php get_footer(); ?>
Viewing 16 replies (of 16 total)