Below is the archive page template which I have added the `<div class=”single-content”>
<?php the_content(); ?>
</div>` to in a hope that it would bring up a text area:
<?php get_header(); ?>
<!-- Begin Left Sidebar -->
<?php if(get_option('reedwan_sidebar_position') == 'left'): ?>
<div class="left-sidebar grid_4">
<?php get_sidebar(); ?>
</div>
<?php endif; ?>
<!-- End Left Sidebar -->
<?php /* Get author data */
if(get_query_var('author_name')) :
$curauth = get_userdatabylogin(get_query_var('author_name'));
else :
$curauth = get_userdata(get_query_var('author'));
endif;
?>
<!-- Begin Content -->
<div class="content grid_8" >
<div class="content-title">
<?php if(is_day()): ?>
<h1><?php printf(__('Daily Archives: <span>%s</span>', 'Backstreet'), get_the_date()); ?></h1>
<?php elseif (is_month()) : ?>
<h1><?php printf(__('Monthly Archives: <span>%s</span>', 'Backstreet'), get_the_date('F Y')); ?></h1>
<?php elseif (is_year()) : ?>
<h1><?php printf(__('Yearly Archives: <span>%s</span>', 'Backstreet'), get_the_date('Y')); ?></h1>
<?php elseif (is_category()) : ?>
<h1><?php echo single_tag_title(); ?></h1>
<?php elseif (is_tag()) : ?>
<h1><?php echo single_tag_title(); ?></h1>
<?php elseif (is_author()) : ?>
<h1><?php _e('All posts by', 'Backstreet'); ?> <?php echo $curauth->display_name; ?></h1>
<?php else : ?>
<h1><?php _e('Blog Archives', 'Backstreet'); ?></h1>
<?php endif; ?>
</div>
<div class="clear"></div>
<div class="single-content">
<?php the_content(); ?>
</div>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php
if(has_post_format('video') || has_post_format('audio') || has_post_format('gallery'))
{
$format_icon = 'class="' . get_post_format() . '-post-icon"';
}
else {
$format_icon = 'class="-post-icon"';
}
?>
<div class="block-post" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<a <?php echo $format_icon; ?> href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'></a>
<h3 class="post-title"><a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><?php the_title(); ?></a></h3>
<div class="clear"></div>
<?php if(has_post_thumbnail()): ?>
<?php $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'blog1-thumb'); ?>
<div class="post-image alignleft">
<?php $fullFeatured= wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full-featured-thumb'); ?>
<a class='preview-icon' rel='prettyPhoto' href='<?php echo $fullFeatured[0]; ?>'><img class="fadeover" src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>" width='285' height='160' /></a>
</div>
<?php else: ?>
<div class="post-image alignleft">
<a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><img class="fadeover" src="<?php echo get_template_directory_uri(); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" width='285' height='160' /></a>
</div>
<?php endif; ?>
<div class="post-content">
<p><?php echo string_limit_words(get_the_excerpt(), 55); ?><a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>' class="readmore"> [...]</a></p>
</div>
<div class="clear"></div>
<div class="post-head">
<span class="info-date"><?php the_time('F j, Y'); ?></span>
<span class="info-author"><?php the_author(); ?></span>
<span class="info-category"><?php the_category(', ') ?></span>
<span class="info-comment"><?php comments_popup_link('0','1','%'); ?></span>
</div>
</div>
<div class="clear"></div>
<?php endwhile;
endif; ?>
<div class="clear"></div>
<?php kriesi_pagination($pages = '', $range = 2); ?>
</div>
<!-- End Content -->
<!-- Begin Right Sidebar -->
<?php if(get_option('reedwan_sidebar_position') == 'right'): ?>
<div class="right-sidebar grid_4">
<?php get_sidebar(); ?>
</div>
<?php endif; ?>
<!-- End Right Sidebar -->
<?php get_footer(); ?>
I know need to figure out what element of the page of posts code I need to include (and where) for it to allow me to choose the category using a custom field.
Would be greatly appreciated if someone could offer me advice on this.