• Hi!

    I am setting up a blog and I’m quite new to WordPress.
    I would like ‘Home’ to be my default homepage, and I would like to see my last 5 or so posts here. But the only options I can choose are 1: my last blog posts on my default homepage which is not home, or 2: Home as my default homepage but without blog posts.

    I tried to choose both options while fixing the other thing manually, but I can get it to work either way. The thing that would most make sense to me is choosing option 1 while adding recent blog posts as a widget, but then you only see the title and not the post itself. By the way, if I choose option 2 I also only see a very short piece of my blog posts, like 3 sentences.

    These options don’t make sense to me! 🙁 Anyone who can help? Thanks!!

    • This topic was modified 5 years, 6 months ago by bcworkz.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The default is to show your latest posts on the root URL of your site. Usually, the theme will default to showing excerpts because it makes more sense for a list. You might be able to change that in the theme options.
    If you want to show some other content (such as a Page you created), on the root URL of your site, you choose that Page instead. You can’t have both, using core WordPress, because it has to get the URLs right and query the correct data.
    You can, however, use a plugin or theme that will show the Page and then do another database query and show the latest posts also.

    Another way to show both is to put the Home content into a post, and make that sticky. That will make it always show first (but it will also show in the date order where it was made).

    Another way is to put the Home content into a text widget and use a plugin like Dynamic Widgets to show that widget only on the home page. But your theme needs to have a widget area in the right place for this to look right.

    There are also plugins to show a list of posts in a Page (whether excerpts or full content), but the pagination would be a problem.

    Moderator bcworkz

    (@bcworkz)

    Hi bonnie85,

    Welcome to the WP community! Unless you are planning to custom code a solution, Developing WordPress isn’t the right forum for you. We know it can be difficult to identify the correct forum, no worries if you happen to guess wrong. Based on the tenor of your topic, it doesn’t sound like you want to code your own solution. I’m moving your topic to Fixing WordPress, where the replies will be more in line with your apparent capabilities.

    Thread Starter bonnie85

    (@bonnie85)

    Hi @bcworkz,

    Thank you for your message! I’m sorry for the confusion, but I really want to fix it in the code! I have C# experience so I’m not new to coding, but I have a hard time finding the locations of all the functionalities. My husband said I could probably fix this in the editor, so I hoped I just overlook it. Because well, it would be the easy way and I’m just surprised that this isn’t something you can choose in the editor.

    So yes, I would be very happy to receive suggestions on how to fix it in the code! 🙂 Shall I edit my topic message?

    • This reply was modified 5 years, 6 months ago by bonnie85.
    • This reply was modified 5 years, 6 months ago by bonnie85.
    Thread Starter bonnie85

    (@bonnie85)

    Thanks for your help @joyously, I will look into it!! 😀

    Moderator bcworkz

    (@bcworkz)

    C# is cool, but how are you with PHP? 🙂 If you have coding aptitude, it won’t take much to pick it up. No need to edit your topic, you’ve clarified your intent. (You can’t edit any longer anyway). Which forum you are in doesn’t in reality matter much, the usual crew of volunteers here will see your topic either way. The topic organization is more for those coming after the fact looking for existing solutions.

    If you want to code up a solution, start with a custom page template. You can start with your theme’s page.php template, or whatever your homepage is based upon. You would then add a custom query to get the most recent posts. Follow the query with a loop to output the results.

    Like Joy intimated, pagination of subsequent posts gets tricky. You might wish to simply link to the blogs page instead of trying to paginate posts on your home page.

    Thread Starter bonnie85

    (@bonnie85)

    Thanks! ^_^
    I am a PHP beginner, but it is not that different. 🙂 The syntax is new for me, but that’s just something I have to get used to. However, finding certain pieces of code can be a pain in the ass.. 😐

    But, a query makes sense, I think I can make that work! I’m gonna give that a try, thanks!! 😀

    Moderator bcworkz

    (@bcworkz)

    Any time! I’ve had the same experience when I started with WP. Indeed finding code that does X is the biggest challenge. I think learning where to find such code can only be gained through experience. In the mean time, if you get stuck, you know where to ask! 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Default home page with blog posts?’ is closed to new replies.