• I’m not sure if this is theme-related or wordpress related issue. I apologize if I posted this in a wrong forum.
    My home page only shows 3 latest posts even though I set it to 10 in reading settings.
    If I go to posts page, it shows 10.
    My settings are below. Could someone help me please?

    Wordpress: 4.9.5,
    Twenty Seventeen Version: 1.5
    Reading setting:
    Your homepage displays: A static page (select below)
    Homepage: Welcome
    Posts page: Posts
    Blog pages show at most: 10
    Customize Theme:
    Page Layout: One Column
    Front Page Section 1 Content: Posts

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,
    The Blog Page (an archive page) and the “Blog” you see in the panel, are displayed differently, because they are built in different files.

    If you go to your Blog Page, you’ll see those 10 posts.
    In the panel, on the other hand, you’ll get three by default.

    You can change these three posts with a Child Theme.
    The file you’ll need to copy to your Child Theme and modify, is content-front-page-panels.php, located in twentyseventeen/template-parts/page.
    At line 55, you’ll see “post_per_page” and the value “3”; you simply need to change this number.

    If you’re not familiar with Child Themes, let me know! You can get it done in a few minutes.

    @lalyry At the risk of sounding stupid, I was wondering, in cases where you modify template-oarts in a child theme, do you copy the entire template-parts folder even though the change is in one file or just the file you want to edit? I was wondering this because it seems in this case the file is nested in a folder.

    Thread Starter accessmtech

    (@accessmtech)

    @lalyry, thank you for the reply. I haven’t heard about Child Theme until now. Do you mind helping me with getting the child theme to work?
    Also I think this would be useful thing to be able to modify little easier like in the theme setting. Is there a place where I can request this as a feature?
    Thank you so much.

    @accessmtech Sorry for the delay! It’s not going to happen again ??
    Everything you need to know about how to make a Child Theme work, is at https://codex.www.ads-software.com/Child_Themes.
    If you need extra help (we all do sometimes), reach out to me on twitter (lalyriveryork) so we can close this thread, because it’s very well explained at WordPress Codex.
    On the other hand, I don’t understand what you mean by requesting this as a feature… But again, reach out to me. The road is simple, and fun!
    Happy coding!

    @stephanieohanley Hi! Sorry for the delay!
    The answer to your question is no. Working with a Child Theme is pretty easy, and a lot of fun!
    In this case (where we have the file inside sub-directories) you simply need to copy the file from the parent theme, create the same path in your Child Theme (same sub-directories), and paste the file (and then add your changes to it ?? )

    For instance:
    First: go to twentyseventeen/template-parts/page, and copy “content-front-page-panels.php”

    Second: in your twenty seventeen-child folder, create the same path, paste the file and add your changes; like this:
    1) create a folder (in your child theme folder) and name it “template-parts”
    2) Inside “template-parts”, create a folder and name it “page”
    3) Inside “page”, paste the file “content-front-page-panels.php”
    4) Open the file; at line 55, change the number of posts; save the file.
    And that’s all!

    Let me know if you got it so we can close this thread.
    Happy coding!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can’t Change Number of Posts in Front Page’ is closed to new replies.