Hi again,
I am trying out another approach - inserting some of the code from catalog.php in a custom page template, "page_events.php."
For instance, I have an Events page which has a tab in the top navigation menu. This page is using the "page_events.php" template. On this page I want to display posts that are in the Events category. The category ID is 6.
In the page_events.php I put between <div id="content"> </div><!-- #content --> the following code below from category.php. Needless to say this didn't quite work. I got the following error: Warning: preg_split() expects parameter 2 to be string, object given in /wp/wp-includes/formatting.php. I do not know what this means and how to fix it or is there another way to do this? -Amy
<h1 class="page-title"><?php _e('Category Archives:', 'Events') ?> <span><?php echo single_cat_title(); ?></span></h1>
<div class="archive-meta"><?php if ( !(''== category_description()) ) : echo apply_filters('archive_meta', category_description()); endif; ?></div>
<div id="nav-above" class="navigation">
<?php if(function_exists('wp_pagenavi')) { ?>
<?php wp_pagenavi(); ?>
<?php } else { ?>
<div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> Older posts', 'thematic')) ?></div>
<div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'thematic')) ?></div>
<?php } ?>
</div>
<?php while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="<?php thematic_post_class(); ?>">
<?php thematic_postheader(); ?>
<div class="entry-content">
<?php the_excerpt(''.__('Read More <span class="meta-nav">»</span>', 'thematic').'') ?>
</div>
<?php thematic_postfooter(); ?>
</div><!-- .post -->
<?php endwhile; ?>
<div id="nav-below" class="navigation">
<?php if(function_exists('wp_pagenavi')) { ?>
<?php wp_pagenavi(); ?>
<?php } else { ?>
<div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">«</span> Older posts', 'thematic')) ?></div>
<div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">»</span>', 'thematic')) ?></div>
<?php } ?>
</div>