[resolved] Integrating the Loop into a Template (4 posts)

  1. universal1300
    Posted 8 years ago #

    I installed WordPress in a subdirectory, but opted for the "blog homepage to be different from the directory where [I] installed it," so the main content shows up at "www.example.com." instead of "www.example/wordpress.com"

    I then opted to have my front page display a static page, instead of the Loop. So far, so good. . .

    Now, I want to create a page (www.example.com/blog) that has the Loop and displays the most recent posts, as the front page did before I opted for the static front page.

    I've tried creating a template called "blog" with the Loop code integrated into it, and then made a blank page with that template and the slug "blog," but it only shows the page title.

    If it matters, I've set my permalink structure to:/blog/%year/%month/%post-name.

    Does anyone know how I can put the Loop that I lost when I set a static front page into a different page?

    My thanks in advance.


  2. MichaelH
    Posted 8 years ago #

    With the Static front page option you can tell it what to use for the Front Page as well as the Posts page. You shouldn't need to manipulate a template to get the posts to show on the blog page.

    See Administration > Options > Reading.

    Or am I making this too easy?

  3. universal1300
    Posted 8 years ago #

    Well, I'll be! I'm so grateful and embarrassed at the same time that I don't know what to say other than, "Thank you!"


  4. tev
    Posted 7 years ago #

    Related topic: How do I make a template with the Loop on it? It's probably really obvious but I'm new to WordPress.

Topic Closed

This topic has been closed to new replies.

About this Topic