wp list posts ? (5 posts)

  1. Root
    Posted 11 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
    Posted 11 years ago #

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

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

  3. Root
    Posted 11 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
    Posted 11 years ago #

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

  5. anabelle
    Posted 9 years ago #

    yes, you need the RunPHP plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.