Forums

How to "call" wordpress header? (6 posts)

  1. shaye
    Member
    Posted 2 years ago #

    Hi guys
    I am trying to call my wordpress header from an external page.
    i could just go ahead and view the page source, then copy the html + css and it's OK, but then it's static and not dynamic, e.g if i add a new page to my wordpress site it won't replicate... is there any way around this?
    thank you

  2. shaye
    Member
    Posted 2 years ago #

    anyone?

  3. shaye
    Member
    Posted 2 years ago #

    so how long does it takes to get a reply around here guys? :(

  4. jbbrwcky
    Member
    Posted 2 years ago #

    AFAIK, know where your WP install is, and include this file which is in the blog base directory:

    <?php include('wp_blog_header.php'); ?>

    Then you can call the normal procedures such as:

    <?php wp_head(); ?>
  5. alexisronse
    Member
    Posted 1 year ago #

    @jbbrwcky- Would this work for an external site?

    I understand that this is the procedure for calling the header within the WordPress installation- but if you are linking to an external site, wouldn't you have to show the absolute URL?

    In any case, I am hoping to do the same thing as Shaye and I have had no luck so far with either approach.

    Any other ideas?

  6. esmi
    Theme Diva & Mod
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.