• Resolved markp

    (@markp)


    Hi all,

    In WP1.5 we have the new option to create Pages not just Posts.

    What I want to do is create a Page which will be the site’s home page. When users go to the site I want them to see that page.

    I’ve tried a few things. I’m already managing to get the site home page to appear in the Page template (as in default Kubrick) and not the Posts template (or any other template) by fiddling with the end of wp-blog-header.php:
    } else if ( is_home() && file_exists(get_page_template()) ) {
    include(get_page_template());
    exit;

    but it still shows the latest posts and not the page. I’ve tried writing the ‘ID’ of the page into a variable but I’m getting nowhere there either.

    Any ideas?

    I’m imagining that this type of setting might just become a standard option in the admin console.

    I’m using build ‘wordpress-2005-01-17’

    Cheers,

    Mark

Viewing 15 replies - 31 through 45 (of 71 total)
  • Sometimes the more obvious…. DUH!!!

    Shame on me… I *NEVER* saw the “Next Page” thing. So I was bitching (4 TIMES, DUH!!! again) about being able to post. I’m very sorry!

    I think bbPress should get you to your last post. Sorry again.

    mxtrader, apparently there’s another way you could’ve done it:

    http://wordpress.org/support/topic.php?id=19722#post-113708

    hopefully your way still works, or you could try this out.

    Yes… I thought of that. But never did it.

    I was planing to have my flat pages under the root directory (/) and WP installed under /wp for example. That would work, guaranteed.

    But… I wanted also to keep my “home” page to have the look and feel of the rest of the site, and better yet if it would work when I changed the “skin”. That why I ingored the installation under a directory.

    So I chosed the home.php thing instead, and works quite well. In fact, if I copy my home.php to another template, it works quite well with little changes.

    I was looking at your blog. It is quite nice. It only shows that there is LOTS of things to know for me πŸ™‚

    Thanks!

    I’ve been trying to do the same thing for the last few hours and I’m not sure the solution above (the plugin) would fit my case very well.
    1. I want a static webpage for /
    2. I want the current index.php output (last X posts) in /weblog
    The auto-generated rewrite rules put all the articles in /weblog/yyyy/mm/dd/title.

    I’ve fixed (2) by adding “RewriteRule ^weblog$ /index.php [L]” at the end of the rules list. My only problem is (1) right now.
    In case I get to use the above plugin, will the RewriteRule above still work?

    mxtrader: you would actually install wordpress in the root, and still use home.php like you wanted to. It’s just a trick, by editing the permalink structure like was mentioned in the link.

    1. Installed the blog at mydomain.com
    2. Created the Home page and noted the ID of the page
    3. Installed Ryan’s plugin (editing with the correct Page ID)
    4. Edited the Permalink structure

    WordPress Address: http://mydomain.com/blog
    Blog Address: http://mydomain.com/
    Permalink Structure: /blog/%year%/%monthnum%/%day%/%postname%/

    This would ideally save you space from having 2 copies of blog-header. Not that big a deal, but it actually does what you wanted.

    Alright! got it! I think I misunderstood the point the first time. I have to check that… it would be a cleaner solution. Thank you very much! I’ll post on how it works

    cool πŸ™‚

    Can’t see what all the fuss is about, the pages, categories and the posts come up in the menu as soon as you’ve created them + the most recent articles. Isn’t that enough to link back to your blog?

    lawtai: I did exactly what you said and regarding the wordpress address and blog address, how do i change them?

    thanks

    you change your wordpress addres/blog address in your admin panel -> options -> general. then you need to change your permalinks as well afterwards.

    ya, i found the change address parts. But after changing the address, suddenly the admin became ‘styleless’. And I’m unable to do anything else. Did I miss any step?

    Cause /blog doesn’t exist. Should I create /blog directory?

Viewing 15 replies - 31 through 45 (of 71 total)
  • The topic ‘WP Page as static home page’ is closed to new replies.