• So I’ve taken the plunge and upgraded a site to version 1.5.
    Now I want to take advantage of using themes and avoid hacks to present static pages.

    How can I make the pages created from the “write page” section of admin appear as “myblog.com/about.php” instead of “myblog.com/?page_id=8”?

    Is this where I’d use permalinks?
    Or is there a template page that I should create to go with my current theme, Mallow?

    I’m new here, so please be kind.

    _debra

Viewing 5 replies - 1 through 5 (of 5 total)
  • You need to enable permalinks.

    Admin Console -> Options -> Permalinks.

    And by the way, it wouldn’t be about.php it would be: http://www.yoursite.com/about/

    Good luck.

    Thread Starter _debra

    (@_debra)

    I found the permalinks options, but I do not see how to relate them to the pages I’ve created. Is there a way to connect page_id’s to categories?

    What’s the correct permalink structure to say:

    http://www.yoursite.com/about/
    and
    http://www.yoursite.com/contact/
    and
    http://www.yoursite.com/privacy/
    etc
    ?

    because the only thing that differentiates the pages right now is the %page_id%

    page_id =8
    page_id =9
    page_id=10

    and so on.

    I’m no PHP expert, so please forgive my ignorance.

    Hmm well this is what I did with my theme, you should be able to take an existing template such as links.php, strip out the link related stuff and just save the file as about.php go to your Pages in admin area and select the template in the drop down menu within write pages, then create a name for the page and click edit page.

    <?php /*
    Template Name: About
    */
    ?>

    <?php include "header.php"; ?>

    <div id="insidewrapper">
    <div class="pagesonly">
    <?php the_content(); ?>
    <?php endwhile; endif; ?>
    </div>
    </div>

    <?php include "footer.php"; ?>

    That’s all I use really.

    Hope that helps.

    EDIT: Ah sorry just glanced ove ryour page. Yes Permalinks as suggested above will resolve this issue, it basically creates shorthand URIs of your posts and everything else really.

    So your post which ends in id=5252151 would be http://yourdomain.com/the-title-of-the-post

    The same is true of pages:

    http://yourdomain.com/idwhatever would become
    http://yourdomain.com/about

    You need to CHMOD your .htaccess file to 77 just to be sure when creating any page as well as using permalinks. Then youc an set it back to default.

    To create your htaccess file, create a new notepad file save as “.htaccess” (including quotes) then upload to the root of your Wp install directory. Then create the permalinks with the CHMOD options set on htaccess, and you should be all set. You can copy the example permalink if yo’ure not too sure about want or don’t want in your permalinks.

    http://codex.wordpress.org/Main_Page is a great resource and youc an a do search for permalink in the search box for several threads covering this.

    if your server has mod_rewrite enabled you can change your permalink structure to look like what you want it. For example, mine: http://87rounds.com/minutes/absolute-linking/
    which is a link page made from the new page function and the minutes folder is my root.

    The first thing you have to make sure of is having a .htaccess and having its permission set to 666 so that it is user rewriteable. Then you go to:

    Options > Permalinks>

    then change your permalink structure to :

    /%year%/%monthnum%/%day%/%postname%/

    then just click on the button at the bottom to update your permalink struckture.

    Thread Starter _debra

    (@_debra)

    Thanks everyone, for your suggestions.

    The solution involving .htaccess and permalink structure works wonderfully!

    I was thinking that the:
    /%year%/%monthnum%/%day%/%postname%/ structure
    would only apply to dated posts. (silly me!)

    The other thing that matters, is that the %postname% comes from whatever is entered in the “Post Slug” field when you edit.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Creating about.php with Mallow after 1.5 upgrade’ is closed to new replies.