• i’m sure this must be easy to do but for some reason i’m not figuring it out. I would like to use a wordpress page as the main opening page to my site.

    Any ideas?

    Thanks!

    Shelly

Viewing 10 replies - 1 through 10 (of 10 total)
  • I use and like the Static Front Page plugin, https://www.semiologic.com/software/static-front/.

    Simplest way to accomplish this using what’s built into WordPress is to initialize The Loop in your theme’s home.php (if your theme does not have a home.php (most don’t) make a copy of index.php and name that home.php) using query_posts():

    <?php query_posts('page_id=100'); ?>

    Just change the value of page_id to the ID of the Page you want displayed. Then edit home.php to suit your needs.

    Thread Starter slvhobbs

    (@slvhobbs)

    Thanks Kaf. I haven’t been able to figure this out yet though. If i create a home.php where do i place this line?

    <?php query_posts(‘page_id=100’); ?>

    On a line just before the start of The Loop, which will typically look like this:

    <?php while (have_posts()) : the_post(); ?>

    or this:

    <?php if(have_posts()) : while (have_posts()) : the_post(); ?>

    Kaf,
    the only problem with that solution [and i just did it] is that the homepage now has the “read more” permalink at the bottom of it. so it still makes it look like a blog entry of sorts.

    lone007, you’re using the <!--more--> tag in a Page? If so, why?

    If this read more link is just hardcoded into the template, you only need edit home.php to remove it.

    If this is due to the ‘more Quicktag placed in the Page’s content (…), one way around it is replace the_content() in your template with:

    <?php
    echo apply_filters('the_content', $post->post_content);
    ?>

    That’ll display the Page’s content, applying any formatting filters to it (built-in and plugin-based), while bypassing handling of the ‘more’ tag and such.

    Thread Starter slvhobbs

    (@slvhobbs)

    sguler:
    That plugin works easy peasy. thanks! but i cant get to my blog at all now. when i hit the BLOG link it goes to the new homepage that i set. should i change to something else to link my BLOG link to my actual blog?

    i hope you get what i’m talking about ??

    Thread Starter slvhobbs

    (@slvhobbs)

    oh! nevermind. i just changed to

    no problem.

    Thread Starter slvhobbs

    (@slvhobbs)

    sorry about those last two posts.. for some reason any code that i’ve typed isn’t showing up. what i did was change the
    link in my header file to send people to https://www.ficklefish.net/bog instead of <?php echo get_settings(‘home’); ?>

    This worked.

    BUT whenever i install a new plugin it wont work unless i uninstall my old ones. Is this normal?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘a page as the main page’ is closed to new replies.