WordPress.org

Ready to get started?Download WordPress

Forums

How to display all posts on one page? (5 posts)

  1. el terrible bmw
    Member
    Posted 5 years ago #

    I looked through codex and searched the forum but couldn't find anything. Is it possible to just add a simple template tag to display a list of all post titles linked to each post?

    Thanks!

  2. el terrible bmw
    Member
    Posted 5 years ago #

    Any ideas?

    I'm kinda thinking like this:

    <?php the_author_posts_link(); ?>

    But just somehow for all authors?

  3. el terrible bmw
    Member
    Posted 5 years ago #

    BUMP? anyone?

  4. jbjweb
    Member
    Posted 5 years ago #

  5. bustherh
    Member
    Posted 4 years ago #

    This will show all posts I just can't figure out how to get the pagination to work. If you set the posts_per_page=10 parameter it will only show 10 posts and the next and previous links will display the same 10 posts.

    <?php query_posts('posts_per_page=10'); ?>
    <?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
    
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
    
    <?php endwhile; ?>
    <?php endif; ?>

    If anyone knows how to get the pagination to work with this I would really appreciate it!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.