wyntonmagazine theme and index.php code…
-
is anyone else using this?
here is what i’m working on…
http://www.herndonhouse.com/ksd/
i’m having a bit of trouble with the “featured articles” …. the small promos at teh bottom showing up twice… and the designer has shut down his forum until july…
here is the code for the left col only…from the index.php file… (mid and right col is about the same….)
<div id=”homeleftcol”>
<?php
// enter the IDs of which categories you want to display
$display_categories = array(3,4,);
foreach ($display_categories as $category) { ?>
<div class=”clearfloat”>
<?php query_posts(“showposts=1&cat=35”);
$wp_query->is_category = false;
$wp_query->is_archive = false;
$wp_query->is_home = true;
?>
<div class=”cat-head”>
<h3>“>
<?php
// name of each category gets printed
single_cat_title(); ?>
</h3>
</div>
<?php while (have_posts()) : the_post(); ?>
<?php
// this grabs the image filename
$values = get_post_custom_values(“home-category-image”);
// this checks to see if an image file exists
if (isset($values[0])) {
?>
” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><img class=”home-cat-img” src=”<?php bloginfo(‘url’); echo ‘/’; echo get_option(‘upload_path’); echo ‘/’; $values = get_post_custom_values(“home-category-image”); echo $values[0]; ?>” alt=”image” />
<?php } ?>
” rel=”bookmark” class=”title”>
<?php
// this is where title of the article gets printed
the_title(); ?>
<?php the_content_rss(”, TRUE, ”, 35); ?>
<?php endwhile; ?>
</div>
<?php } ?>
</div>
<!–END LEFTCOL–>i’ve followed the designer’s instructions on how to put the category in …<?php query_posts(“showposts=1&cat=35”);… but why is it showing up twice and how do i get a different category to show?
i’d like six all together… three in each col…
The topic ‘wyntonmagazine theme and index.php code…’ is closed to new replies.