Forums

How to list posts within a page (2 posts)

  1. midwestbonsai
    Member
    Posted 2 years ago #

    Hello,

    What I want to do should be simple enough (I think).
    I wan to be able to list the post titles within a page, without altering the template files.
    Because I do not want to do this on all pages.

    Any thoughts?
    Thanks

  2. minnellium
    Member
    Posted 2 years ago #

    You need to PHP Exec plugin (here), to execute php within a post or page area. Then, in the post (or page) you want the listing, use the php you want to call on the database - probably something like this
    <p><?php wp_get_archives('type=postbypost&limit=20&format=custom'); ?></p>
    See http://codex.wordpress.org/Template_Tags/wp_get_archives to tweak the results of what shows up....

Topic Closed

This topic has been closed to new replies.

About this Topic