WordPress.org

Support

Support » Themes and Templates » Display Posts within a Page using The Loop

Display Posts within a Page using The Loop

  • grough
    Member

    @grough

    I’m using WordPress Pages as a CMS. Pages are being used for content and Posts for “news items”.

    I’ve set up a special Page template for the front page that displays some content, and underneath this I’m trying to show a summary of the news items by calling The Loop in the home page template.

    However, when I call The Loop to list news Posts, it only returns the current Page. Is there some way I can get The Loop to run in a Post context? I’m new to WordPress, and it appears that what The Loop returns depends on the page context.

    Is this correct? How can I override it?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display Posts within a Page using The Loop’ is closed to new replies.