Using PHP include and WordPress
-
I don’t think this is possible, but I figured I’d try to ask anyway. Since I’m very new to PHP and WordPress, please forgive any ignorance. ??
I am curious if there is a way to use include the header.php and other modules of wordpress themes in a file that is not part of the wordpress blog.
For example, if I host my blog on a separate subdomain (blog.example.com) and I want to have my main site (www.example.com) have a portal page that links to the blog but still uses the same header and footer that my wordpress theme uses, is this possible?
Obviously PHP include will grab these files… however it brings back errors due to (I’m guessing) WordPress-specific commands.
Things like: “Fatal error: Call to undefined function: is_category()”OK, so I guess this is a silly question… but I’m just curious if there is a way to let the portal page refer to files in the wordpress blog. I appreciate any advice that you can give me on this idea.
Thanks.
- The topic ‘Using PHP include and WordPress’ is closed to new replies.