WordPress.org

Ready to get started?Download WordPress

Forums

Where is the blog when using Static Front Page? (23 posts)

  1. amirs
    Member
    Posted 8 years ago #

    I just installed the semiologic Static Front Page plugin, which creates a home Page just fine. but where is the rest of the blog?! the navigation sidebar has the archives of posts, but using this plugin, can't I just have a page that has the latest several posts...like in a normal (standard) WP installation?

    Thanks.

  2. Kafkaesqui

    Posted 8 years ago #

    You can set up a Page with a Page template that through the query_posts mechanism displays the most recent posts. However, if your goal is to just have the latest posts on your home page, why even use the plugin?

  3. amirs
    Member
    Posted 8 years ago #

    Thanks, but my goal isn't just to have the latest posts on my home page; it's to have a home page (with some introductory nonsense but no blog posts), and then have a link to where the actual blog is.

  4. Denis de Bernardy
    Member
    Posted 8 years ago #

    use it in conjunction with opt-in front, e.g. as on my site.

  5. rendezvouscp
    Member
    Posted 8 years ago #

    I'm trying to do the same thing. I'm happy with making my own front page, but I'd like to have my blog be under /blog/ but still be able to have my pages under their own url name, not /blog/pagename/.

    So far I've tried to use the Static Front Page plugin, which works fine, but I can't seem to get a page working that will show the latest posts.

    Any suggestions?

  6. Denis de Bernardy
    Member
    Posted 8 years ago #

  7. amirs
    Member
    Posted 8 years ago #

    Denis, thanks, but I'm not sure you understand precisely what we want. Or if you do, I don't see a fix for it on your FAQ page. In this blog/ directory that your FAQ says to create, I don't want just the titles of the posts; I want the blog home page there, just as if I had installed WordPress in a blog subdirectory. Is your static front page able to accomplish this?

    I hope this makes sense. Thanks.

  8. Denis de Bernardy
    Member
    Posted 8 years ago #

    Sure. The fact that my theme displays a simple list comes from my category archives template. :)

    So do exactly as it says in the faq:

    1. Use the static front page plugin normally
    2. Create a category called 'Blog', make it the default category, and put every post in it
    3. Link to the 'Blog' category in your navigation menu

    And voilà, a static front page, and a 'blog' page that displays what would normally have appeared in your front page.

    Also, and as an aside, if you activate the opt-in front page as well, and then activate my fuzzy recent posts plugin, an 'archives' link will appear after the list of recent posts (exactly like on my blog).

  9. Denis de Bernardy
    Member
    Posted 8 years ago #

    I've added the following to the FAQ question:

    "Note that your theme's category archives template will be used. And that you can make a custom template for this specific category if you would like this blog 'home' page to look different from your other categories."

    Let me know if it makes things more clear.

    Cheers,
    D.

  10. rendezvouscp
    Member
    Posted 8 years ago #

    Ok, it's what I had expected. Your solution is perfect for most people, although I'm afraid that, as a perfectionist, I can't stand the thought of having a category named Blog that doesn't really need to exist. However, the plugin is great, and I'd really like to use it if it weren't for that one detail. Unless...

    Is it possible to make a blog home page that includes all categories ordered by date? I'm not handy with PHP, and a search in the codex didn't bring up anything that seemed useful.

  11. Denis de Bernardy
    Member
    Posted 8 years ago #

    try the area related to making a custom page template.

  12. flardin
    Member
    Posted 8 years ago #

    Check my blog at flardi.net on how to do it with templates, without plugin, in a few easy steps. The plugin + "blog" category solution however has the advantage that it works independently from theme. But if you anyway need to create new templates or theme, my solution may be what you are looking for. FL

  13. jfowler
    Member
    Posted 8 years ago #

    Dennis,

    I wanted to have the same thing that amirs wanted-- a static front page and a blog that displays posts either fully or with an excerpt. I have done everything you suggested, but it still displays a list of links to posts categorized as blog. Do I need to change the category archives template to make the blog display in one of the above fashions? If so, I am not sure exactly how to change it, nor have I been able to find it so that I can change it. Do you have any suggestions?

  14. Denis de Bernardy
    Member
    Posted 8 years ago #

    if you're using the semiologic theme, you want to edit the wp-content/plugins/sem-theme/sem-theme.php file and change the display category function as appropriate.

  15. jfowler
    Member
    Posted 8 years ago #

    Denis,

    Is there any way you could help me out with editing the code so that an excerpt from the post would appear on the page. This is far beyond my abilities at present.

  16. estjohn
    Member
    Posted 8 years ago #

    I had the same problem at one time. I was wanting to diaply the front page with X amount of posts that would be on the front page all the time no matter what I posted after. I ended up using the adhesive plugin to tell X amount of psots to stay on the front page as a sticky and then just posted everything else.. making the new content start on the second page.

    It may not have been the same result you are trying for, but it seems you got the same result from the plugin I did.. only I did not know enough about WP at the time to do more with it.

  17. jfowler
    Member
    Posted 8 years ago #

    estjohn,

    That's not quite the same problem I have. I want a static front page and then a normal blog as a link. In other words, I want the /archives/category/blog/ section to actually work like a blog (ie. to list an excerpt after each title) rather than just offer a list of titles from posts.

  18. Denis de Bernardy
    Member
    Posted 8 years ago #

    @ jfowler:

    line 1043 of the sem-theme.php file, change:

    to:

    <?php the excerpt(); ?>

  19. jfowler
    Member
    Posted 8 years ago #

    @ Denis,
    Line 1043 appears to be:

    } // end sem_display_category(

    When I change it, it gives me an error at line 1043. If you could, give me the line before and the line after it so that I can make sure I am replacing the correct line. Thank you for all your help.

  20. Denis de Bernardy
    Member
    Posted 8 years ago #

    <?php endif; ?>
    <?php edit_post_link('Edit', '<span class="edit_link"> | ', '</span>'); ?>

    Change to:

    <?php endif; ?>
    <?php edit_post_link('Edit', '<span class="edit_link"> | ', '</span>'); ?>
    <?php the_excerpt();?>

  21. jfowler
    Member
    Posted 8 years ago #

    Thanks Denis. It works great.

  22. jfowler
    Member
    Posted 8 years ago #

    Thanks Denis. It works great.

  23. brasscupcakes
    Member
    Posted 8 years ago #

    wow, this is great -- can't wait to try it. thank you, Denis -- very generous of you to explain all this.

Topic Closed

This topic has been closed to new replies.

About this Topic