Ready to get started?Download WordPress


External Header Call Has Missing Page Title (4 posts)

  1. rpgkeys77
    Posted 1 year ago #

    I've set up a site with a great theme installed. I'm planning to have some external pages which reference the header and footer of this theme so both internal and external pages match and I can make changes to the navigation etc of the WordPress site and have those changes applied dynamically to the non-Wordpress pages as well.

    I'm able to call the WordPress header, footer, etc on my external pages by including wp-load.php at the top of the non-Wordpress pages and using get_header() etc to display the header. The problem is that when I do this, none of the options set in Appearance > Theme Options seem to be present.

    How do I use this theme on external pages AND have the customizations made in Theme Options appear as well?


  2. tomontoast
    Posted 1 year ago #

    Thats a tough question. I would recommend creating all pages from within wordpress. It will make your life a lot easier in the long run. Is there a specific reason why you don't want to use wordpress pages?

  3. rpgkeys77
    Posted 1 year ago #

    The external pages are database driven php pages that manage product purchasing and software downloading. So keeping these pages out of the wordpress world is a security concern and complexity issue due to the php calls.

  4. tomontoast
    Posted 1 year ago #

    The problem is WordPress needs many database calls to get all the data it needs just to build the header. I would create wordpress pages in lieu of the external pages you want and assign to these pages a custom template which contains your external page code.

Topic Closed

This topic has been closed to new replies.

About this Topic