/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php get_header(); ?> <?php if(have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <?php the_content(''); ?> <h4>Posted in <?php the_category(', ') ?></h4> <?php endwhile; ?> <?php endif; ?> <?php get_footer(); ?>
Comments
