• logik3x

    (@logik3x)


    Alright I need to add pages to my WP but I don’t how to generate a page with the template… I’m pretty shure there is an easy .. if any1 can just tell me how or post full php source code for calling the theme so i can add extra features et would be great … thank you in advance

Viewing 12 replies - 1 through 12 (of 12 total)
  • Kafkaesqui

    (@kafkaesqui)

    You’re going to have to be a little clearer. Do you mean pages (lowercase p), as in separate php documents accessable outside your WordPress setup, of Pages (uppercase P), as in the new 1.5 feature (found under Write > Pages or Manage > Pages)?

    If the latter, see if this helps you figure out how to set up a template for a Page:

    http://codex.wordpress.org/Pages#Pages_can_use_Different_Templates

    lawtai

    (@lawtai)

    Are you using 1.5? To add a page in 1.5, just go into your admin panel -> write -> write page. And then just start writing what you want. To get your new page to look how you want it to, take a look here:

    http://codex.wordpress.org/Pages

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Just go to Write/Write Page.

    More info: http://codex.wordpress.org/Pages

    Thread Starter logik3x

    (@logik3x)

    well I guess I mean a pAGE… I’m using 1.5… I want to be able to create a page using the template from WD but having content generated by another php script (calendar)… I could reverse enginer all the code but I’m shure someone did it so please help if you know what I mean… :/

    lawtai

    (@lawtai)

    You’ll want to use the link provided by Kafkaesqui then to do what you want.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    I want to be able to create a page using the template from WD but having content generated by another php script (calendar)

    I assume you meant WP, not WD. If you want to create a page using the template from WP but having content generated by another php script (calendar), then you will need to enable this plugin: http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/

    Please search before posting next time.

    Thread Starter logik3x

    (@logik3x)

    … you guys don’t look like you understand… I need to just make a php page that will load the theme from there I’l be fine… I don’t want to have my php script in mysql db … I just want to generate one page with the theme outside WP (not using post option or any other crap)

    I’m thinking if you want to make a page *outside* WP and still use the theme, it might be a hell of a lot of work, if not downright impossible. (but what do I know?)

    What I would do is install the RunPHP plugin (or the one mentioned above), and make a new Page in WP. Yes, you can also tweak where that Page shows up on your site. Pages are *outside* the blog.

    Thread Starter logik3x

    (@logik3x)

    I’m shure some1 as made a php page that load the theme… I guess I’l reverse enginer it to figure out how … oh well wanted to save time but looks like I’m just making it harder by using WP

    Root

    (@root)

    As you create the page in admin use the drop down box for its template.

    prissed

    (@prissed)

    Is your calendar script a single php file? Is it in a separate directory (NOT inside the wordpress directory)?

    You could do one of 2 things. You could get the php-exec plugin, and just use the WP write page and put this in your page post:
    <phpcode>
    <?php require('/path/to/calendar.php'); ?>
    </phpcode>

    Or, on your calendar page:
    `<php include("/path/to/wp-blog-header.php"); ?>

    Then, just use all the functions and template code from your WP theme.

    I don’t thing there’s a way to make a page (outside of the WP structure) to automatically use themes like they do in WP…it would probably require some major hacking to do it that way.

    Thread Starter logik3x

    (@logik3x)

    bah got it too work … lots of esthetic work to do but here it is.. http://linolium.mine.nu/~logik3x/calendar.php

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Adding a page & using the theme’ is closed to new replies.