How to Generate contents
-
Hi all,
i’d like to know how to generate this line of table <tr> under the loop in a template<tr> <td><?php the_ID(); ?></td> <td><?php the_title(); ?></td> <td><?php the_category(', ') ?></td> <td><?php the_date(); ?></td> <td><?php the_author(); ?></td> <td><a href="<?php the_permalink(); ?>">More...</a></td> </tr>
and this my try – Not work
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <tr> <td><?php the_ID(); ?></td> <td><?php the_title(); ?></td> <td><?php the_category(', ') ?></td> <td><?php the_date(); ?></td> <td><?php the_author(); ?></td> <td><a href="<?php the_permalink(); ?>">More...</a></td> </tr> <?php endwhile; endif; ?>
Thanks in Advance.
Viewing 12 replies - 1 through 12 (of 12 total)
Viewing 12 replies - 1 through 12 (of 12 total)
- The topic ‘How to Generate contents’ is closed to new replies.