WordPress.org

Ready to get started?Download WordPress

Forums

Can I repeat my blog loop from home page on another page? (4 posts)

  1. macman8022
    Member
    Posted 1 year ago #

    I am making a website for a good friend of mine and was wondering if I can create a page for her blog and also keep the blog loop on the homepage like it is now, having the posts going to both locations. (perhaps I'll replace the FAQ page with a Blog page instead) I am not super experienced with WordPress, and I followed and then modified from a tutorial when building the site. I tried to build a custom page template using the info from the index.php file, but the posts still only show up on home page. I'd really appreciate any help.

    The site I'm working on is NomadicSpiritualHealings.com

    Mathew

  2. Hi Mathew, sorry, but I'm not sure what you mean.
    A page normally doesn't contain blog posts. A page usually displays the content of Page content type.
    Perhaps what you want to do is to have the FAQs as post and then have them in a category? Then that "page" could be the category FAQ.

    I'm not really sure why you would want to do that.

    If you just want a different way to display the FAQs, have a look at this FQA manager plugin - http://wordpress.org/extend/plugins/wordpress-faq-manager/

    That might make it easier for you.

  3. macman8022
    Member
    Posted 1 year ago #

    Hi Christine, and thanks for getting back with me. I probably shouldn't have mentioned the FAQ, I was considering getting rid of that altogether and replacing it in the nav menu with an actual page that displays all the posts from her blog, so I'm looking to have the home page remain with just showing a few blog posts, but having a full page accessible through the navigation menu called "blog" that will display like 10 blogs per page instead of just the 4.

    Hope that makes a bit more sense.

    Thanks again!

    -Mathew-

  4. What you could do then is set up a front-page.php in your theme. On that template, you can then do a WP_query loop and limit the number of posts to say 4.

    Then create two pages in your admin. One called blog and the other home . Just add a page the titles, but don't add any content.

    Next go to Settings > Reading and select the Front page display "A static page (select below)"
    Then below in the drop downs, choose your "Home" and then "Blog".

    The home page will use the template front-page.php if you created it and called it exactly that. The blog section will use the index.php.

    Have a look at the template hierarchy to learn more about front-page.php

Topic Closed

This topic has been closed to new replies.

About this Topic