index.php being used instead of category.php
-
Hi thanks for viewing.
I cannot get the categories to display in the category template. It is defaulting to index.php.
Any suggestions what might be causing this?
Thanks
<?php get_header(); ?> cat TEST <div id="container"> <div id="left-wrap"> <div id="logo-home" class="logo"> </div> <!--logo--> <div id="main"> <p>Happenings run cultural events around Dublin city. Join our mailing list and we’ll let you know what’s Happening.</p> </div> <!--main--> </div> <!--left wrap--> <div id="recent"> <div id="sidebar"> <div class="side-head"> <h1>IS HAPPENING</h1> </div> <!--side-head--> <div class="side-content" class="norm-link"> <?php if (have_posts()) : while (have_posts()) : the_post();?> <h1 id="post-<?php the_ID(); ?>"><?php the_title();?></h1> <div class="entrytext"> <?php the_content(); ?> </div> <?php endwhile; endif; ?> </div> <!--side-content--> <div class="side-head"> <h1>WAS HAPPENING</h1> </div> <!--side-head--> <div class="side-content" class="norm-link"> <ul> </ul> </div> <!--side-content--> </div> <!--sidebar--> </div> <!--recent--> <div id="attribute"> © 2012 Google </div> </div> <!--container--> <?php get_footer(); ?> </body> </html>
[Moderator Note: Please post code & markup between backticks (not single quotes) or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘index.php being used instead of category.php’ is closed to new replies.