• supervinnie40

    (@supervinnie40)


    Hi,

    I figured out how I can show the text on my blog page. By just entering text on that page and then select that page as the page to show my posts.

    But when I go to ‘settings -> reading’ and select ‘show posts on home page’ (instead of static pages), there isn’t a page where I can put my text in.

    Is there any way around this?
    I have a small paragraph of text that I want to show on the homepage, below it is a small Facebook widget (the like box), and underneath that I want to show the wordpress posts.
    But when I select ‘show posts on home page’ I don’t have a page I can edit to put the text in.
    When I select static pages, my frontpage isn’t the one showing the wordpress posts….

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    in order to get both, a static front page and a number of blog posts on this page, you need to create a template that allows to add both.
    The general idea is that by default WordPress usually offers you either one or the other.
    But it really isn’t that hard to do it.
    You might want to read about it in the codex first, there is a pretty good description:
    Creating a Static Front Page
    and get back with your questions afterwards.

    Best of luck!

    Elisabeth

    Thread Starter supervinnie40

    (@supervinnie40)

    Thanks Elisabeth,

    I read that article already and I know how to use the home.php (or index.php if needed) for my ‘latest posts’ frontpage.

    The problem I have is that I want to include text on that page that I can edit from the dashboard.
    The only way I found at the moment, is to include my text in the home.php file, but I don’t want that because it makes editing the text difficult (and I’m not the only user).

    I tried creating a page called ‘home’. Hoping that WordPress would look at that when using ‘home.php’, but it doesn’t have any affect.
    Then I tried creating a page and changing the slug to just ‘/’ (no name or something), but that didn’t work either.

    You need to add a custom query loop to the template you use for the front page, this way you can add your posts to the static content. (All the way at the bottom of the codex article I linked to)
    Hope this helps – need to run but will be happy to help later..

    Thread Starter supervinnie40

    (@supervinnie40)

    I might know what you’re trying to say, but that just goes way over my head. I’m not a PHP specialist :P. I know how to edit HTML, write CSS and to (kinda) figure out what PHP is trying to by looking for logical English words :).
    But I don’t know what to do with custom queries, that’s a bit to much for my knowledge.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show text on home-page with blog posts’ is closed to new replies.