[Resolved] How to get ordered list of Categories and Posts?
I’m trying to get output that looks like this:
get_poststo get a listing of posts:
<?php $posts = get_posts('numberposts=50');
foreach($posts as $post) : setup_postdata($post); ?>
<div id="post-list"><a href="<?php the_permalink(); ?>"
id="post-<?php the_ID(); ?>">
<?php the_title(); ?></a>
<?php endforeach; ?>
Is there a template tag I could use in conjunction with this to get the results I am looking for?
Thanks in advance.
- The topic ‘[Resolved] How to get ordered list of Categories and Posts?’ is closed to new replies.