I can’t figure out where to load one or more photos for the slider. Very frustrating.
]]>This is what I have now:
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
<?php
/*
Template Name: Blog page
*/
?>
<?php get_header(); ?>
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$sticky=get_option('sticky_posts');
$i = 0;
foreach(opt('blog_news_page') as $j=>$page)
{
if(is_page($page)) {$i = $j; break; }
}
$bnc = opt('blog_news_cat');
$bnlp = opt('blog_news_limit_posts');
$args=array(
'cat'=> $bnc[$i],
'caller_get_posts'=>1,
'posts_per_page'=> $bnlp[$i],
'post__not_in' => $sticky,
'paged'=>$paged,
);
query_posts($args);
?>
<?php
$page_headline = get_post_meta($post->ID, 'page_headline', true);
$page_description = get_post_meta($post->ID, 'page_description', true);
if($page_headline || $page_description) { ?>
<div class="wrap_wide slogan">
<div class="wrap">
<h1><?php echo $page_headline; ?></h1>
<div class="clear"></div>
<p><?php echo $page_description; ?></p>
</div>
</div>
<?php } ?>
<div class="wide_wrap content">
<div class="wrap padding-top-bottom">
<!--wide content area-->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="post_entry news">
<div class="post-date">
<div class="month"><?php the_time('M') ?></div>
<div class="day"><?php the_time('d') ?></div>
</div>
<div class="news_title">
<h1 class="title"><a>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
<div class="post_meta_top">
<ul>
<li>Posted in: <?php echo get_the_category_list(','); ?></li>
<?php if( has_tag() ) { ?>
<li class="tags">
? <?php echo the_tags(__('Tags: '), ', '); ?>
<?php } ?>
<li> ? <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></li>
</ul>
</div>
</div>
<div class="news_content">
<?php global $more; $more = FALSE; ?>
<?php the_content('Read more →'); ?>
</div>
</div>
<?php endwhile; ?>
<div class="clear"></div>
<!--Pagination -->
<?php if(get_next_posts_link()|| get_previous_posts_link()) { ?>
<div class="pagination_wide">
<ul>
<li class="left"><?php next_posts_link('<span>? Previous</span>') ?>
<li class="right"><?php previous_posts_link('<span>Next ?</span>') ?>
</ul>
</div>
<?php } ?>
<!--End pagination -->
<div class="clear"></div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div>
<!--End wide content area-->
</div>
<?php get_footer();?>
]]>