Moderator
t-p
(@t-p)
Try this:
<ul>
<!--The Query-->
<?php
$args = array(
'date_query' => array(
array(
'year' => 2012,
'post_type' => 'post',
'posts_per_page' => 10,
'orderby'=> 'title',
'order' => 'ASC',
'paged' => $paged );
),
),
);
$query = new WP_Query( $args );
// The Loop
while ( have_posts() ) : the_post();?>
<li><a>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
<!-- End of the main loop -->
</ul>
-
This reply was modified 8 years, 8 months ago by
t-p.
Hi thanks for the answare:)Can you explain this code in words?
Moderator
t-p
(@t-p)
Anonymous User 15646442
(@anonymized-15646442)
You can use the List Category Post plugin and place the shortcode on the page.