• Resolved SamG

    (@samg)


    My problem: I’m trying to create in-template separate pages. As in, click About and get an about page, with my header, footer and sidebar. or click Links, and get a list of links with header, footer and sidebar. or categories etc. I don’t want it to be reliant on “Pages,” and because this is for my personal site, i don’t mind if its hard wired into the the template code. perhaps i’m overlooking something. thanks for your help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Um, why not use Pages? You can (very easily) make the Page template look exactly like your site.

    Sounds like you are trying to make it more complicated than it is. 🙂

    Thread Starter SamG

    (@samg)

    1 reason, and 1 question 1) i don’t want it reliant on the database because i like to work locally on my template, then upload. i also don’t like having to link to domain.com/?page_id=15 or whatever. is their a way around this? 2) can i execute php queries via a Page? i’ve read that you need a plugin.

    thanks again

    A way around the link thingy – it’s commonly called pretty permalinks and the implementation is less scary than it looks.

    Executing php in a page: I use this plugin. Now, on that link, it talk about WP 1.2 and using it in posts, but I’m running it under 2.0 (and previously 1.5) and executing it on a Page, seen here.

    It also took me a while to wrap my head around doing things live on the server, and trusting WP to do the work for me. 🙂

    Thread Starter SamG

    (@samg)

    I tried another attempt at “pretty” permalinks, (i had tried previously and failed) but now these are working great. I tried several plugins, including the one above (and phpexec, and a 2nd plugin also called runphp). i wrapped everything in <phpcode></phpcode> and it did not work, it only printed the php. the 2nd runphp worked slightly better, but gave me a execution error. i’ve tested the code already, and it should be ready to run. thanks for the help.

    Thread Starter SamG

    (@samg)

    What i ended up doing was creating a separate template with the php code i needed, and then simply creating a blank page with that template. thanks for the help!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Creating in-template seperate pages?’ is closed to new replies.