List all Archives Content under a Page
-
I create a page with NEWS, n i also created some post under a new category called NEWS.
How to display the CONTENT of the posts (in News category) in the NEWS page? Because I need the page to be customized to shows the New Archives and also the Highlighted News.
I tried copy the code in Archives template into the Page template, but in results it doesn’t shows the archives data although the code is same.
The code is like this….
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php if (is_category()) { ?>
<h3>php echo single_cat_title(); ?></h3>
<?php elseif (is_day()) { ?>
……….My blogs is near the end of construction~!! Just this problem make me stuck in middle~!!~~!!
- The topic ‘List all Archives Content under a Page’ is closed to new replies.