Support » Themes and Templates » new pages?

  • hi can any 1 help me i want o make a new page for my blog, and link it to the side bar page, thx for any help

    ive tryed making a new page calling it mmorpgs.php and adding <?php get_header(); ?> and the rest to show the template i use but all i get is atal error: Call to undefined function: get_header() in /home/tosk069/public_html/blog/wp-content/themes/tosk/mmorpgs.php on line 7

    i just know aht im doing wrong :/

Viewing 15 replies - 1 through 15 (of 21 total)
  • Are you also including the path the to the file?
    where the “wordpress” is the name of the directory that you have wordpress installed.

    that dont work to :/

    can the page be viewed direct from the folder where its in? like ?

    You say, “that dont work to”, but did you use that in conjunction with the <?php get_header(); ?>? And did you change “wordpress” to “blog”, as I see your directory is called?

    Also, why not just create a new Page in the Write –>Page feature built into WP?

    hi yea i changed the wordpress to blog, and for making pages from the page thing i know i can do that but i dont want the data to be stored in the mysql db, i want to make a new page and set the template into it and add the content with in it and link the page to the sidebar

    i see that u have done it with ur blog nice 🙂 ur pages made with that page thing ? or r they page files?

    have you tried creating a page in the admin, and then just php including what you wanted into the page?

    hi corefx, i dont want to make the pages that way, i want to make them as a php file and link the templates headers and footer then set them in the sidebar page

    ive made my mmorpgs page that way but i want to make it as a self php file so i dont have data saved into the mysql db

    All of my pages were created with the page feature, some use a plugin to allow php directly in the page.

    IF you don’t want to use the page feature then <?php

    <?php wp_head(); ?>
    Should work to allow WP functions to be called in the page.
    To link to it, you are going to have to hard code the link to the new page, as it lies outside WP, and wouldn’t be able to be called in a function like wp_list_pages.

    yea im trying to hardcode it now but having no luck :/

    What code are you using?

    ive tryed
    <?php include (TEMPLATEPATH . ‘blog/header.php’); ?>

    <? include(“blog/header.php”) ?>

    <?php require(‘blog/wp-blog-header.php’); ?>

    with the full psth to the files to and no luck here is the page im trying to make

    here is the code to the page

    After you put the php require, are you still using the <?php wp_head(); ?>

    You need both.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘new pages?’ is closed to new replies.