• Marcomail

    (@marcomail)


    I must create a new page for my template with a calling for an external page like the header:

    <?php get_header(); ?>

    i put wp-blog-header.php page at the top of my external page

    <?php require_once(‘/home/mysite.com/wp-blog-header.php’); ?>

    and i must recall the new tamplate page like this <?php get_header(); ?>

    ho i can do it ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Marcomail

    (@marcomail)

    if i create my page

    newpage.php

    i can recall with

    <?php get_newpage(); ?>

    ??

    moshu

    (@moshu)

    No, since that function is not defined in the core WP files. The calls like “get_header” are based on functions written in the WP engine files.
    Use a “normal” PHP include.
    Is this a Page template? And where has to be called? The more specific your question, the more chances you get a useful answer.

    Thread Starter Marcomail

    (@marcomail)

    Is not a page template…is in another subdirectoy of my site.

    works good with a simple include ?

    moshu

    (@moshu)

    It should if the path is correct.
    I am still confused what you are calling into what…

    Thread Starter Marcomail

    (@marcomail)

    it’s not a wordpress page…is it strange ?

    Chris_K

    (@handysolo)

    This article isn’t exactly about what you’re doing, but you may find it worth looking over as conceptually it seems like it would address what you’re after:

    http://codex.wordpress.org/Creating_a_Static_Front_Page#Integrating_WordPress

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

The topic ‘a new template page with calling’ is closed to new replies.