• Resolved digitalmikey

    (@digitalmikey)


    Hello all, I am trying to get my downloads template to display all posts that are in the downloads category correctly. For some reason I can’t get it to work at all and have become stumped completely. Below is my template code:

    <?php
    /*
    Template Name: Downloads
    */
    ?>
    
    <?php get_header(); ?>
    
    	<div id="wrapper"><a name="top"></a>
    <div id="mid" class="fix">
    	<div id="mainCol" class="fix"><a name="main"></a>
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    	<div id="pageMain">
    
    			<div id="download">
    <h1><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
    </div>
    
    				<div class="post" id="post-<?php the_ID(); ?>">
    
    <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
    
    </div>
    </div>
    
    <?php endwhile; ?>
    	<div class="navigation">
    	<?php posts_nav_link(); ?>
    </div>
    <?php endif; ?>
    
    </div>
    
    <?php get_sidebar(); ?>
    </div>
    <?php get_footer(); ?>

    I have my page header <h1> and right below that I would just like the title of each post in the “downloads” category. For some reason I can only get it to either display ALL blog posts or just a blank page. Any help will be greatly appreciated.

    [moderated–mutiple bumps removed. Please, please, please, refrain from bumping as per Forum Rules]

Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Page Template Not Displaying Specific Category Post Problem’ is closed to new replies.