Custom page template
-
I can’t seem to get my custom page template to display posts right.
So far I have this in there and it’s just displaying the title of the category.
<?php get_header(); ?> <ul><?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <li> <h3><?php the_title(); ?></h3> </li> <?php endwhile; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?> </ul> <?php get_footer(); ?>Am I doing this wrong?
The pages name is page-28.php which is the id of the category I’m trying to display on this page.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Custom page template’ is closed to new replies.