WordPress.org

Forums

wp list posts ? (5 posts)

  1. Root
    Member
    Posted 10 years ago #

    Am I right in saying that there is not a wp tag that lists post titles? Or is there?. I have hunted all over. Thanks in advance.

    Edit: On reflection presumably I need get archives with suitable params ?

  2. MattRead
    Member
    Posted 10 years ago #

    <?php wp_get_archives('type=postbypost&limit=10'); ?>

    that will give you a list of post titles, with links.

  3. Root
    Member
    Posted 10 years ago #

    Thanks. That seems to do it. But the old wp tags are not as sexy as the new ones which have way more functionality and accept php parameters. . I am only just beginning to learn the difference. get_archives is really cool.

  4. debwire
    Member
    Posted 10 years ago #

    This doesn't work in "pages" does it? Does this require a special plugin?

  5. anabelle
    Member
    Posted 8 years ago #

    yes, you need the RunPHP plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.