Forums

[resolved] General newb questions (3 posts)

  1. inthrees
    Member
    Posted 1 year ago #

    Here's the situation - I wanna use image links for some static pages with content not sourced via the WP engine, like about, contact, press, etc. I'd like the url to these pages to be about.php, contact.php, etc. When I add the content to these pages, I get errors about undefined function get_header(), etc. If I just manually include the header, then of course now I get undefined function blog_info since that function is called in the header. If I try to add a functions file from a different theme, it has undefined functions, and I can't re-define the default WP functions or the general WP blog itself won't work (index etc).

    What do I do here? I'm trying to build a new theme and running into a wall. How do you add a static directly-linked page that still supports WP functionality?

    Is it even possible? Should I just use a switch statement in index and $_GET['page_id'] ?

  2. webjunk
    Member
    Posted 1 year ago #

    If the content is not part of WP you will have to do it with an iframe. Either the iframe in the html of a WP page or there is a couple of plugins that help with iframe use.

  3. inthrees
    Member
    Posted 1 year ago #

    Ok thanks, that helps a lot, and solves the problem! Appreciated. =D

Topic Closed

This topic has been closed to new replies.

About this Topic