List all title posts in blog
I want to have a list with all posts (only title and date) that i’ve written. I’m trying the following code:
<?php $posts = query_posts('showposts=-1');?>
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
- <h4><?php the_time('d M Y'); ?>" rel="bookmark" title="Link: <?php the_title(); ?>"><?php the_title(); ?></h4>
<?php endforeach; else: ?>
<?php _e('No posts!'); ?>
<?php endif; ?>
But “query_posts(‘showposts=-1’);” doesn’t work. I get a blank page.
If i try “query_posts(‘author=1&posts_per_page=-1’);” I get another blank page 🙁
I have around 650 posts but I only want to show the title of posts.
How can I do it?
Thanks for all, cya!
- The topic ‘List all title posts in blog’ is closed to new replies.