mattmey Posted May 5, 2005 Posted May 5, 2005 Hello, I'm just starting to play with PHP and I've also been playing around with WordPress for a little while. My site has a WordPress blog in a subdomain (blog.matthewmeyer.net) and I wanted to know if it is possible to use PHP in my regular site (matthewmeyer.net) to reference files from the blog the same way wordpress does. For example, WordPress's index.html file references the header.php, footer.php, index.php, sidebar.php, etc. from whatever them you are using, so you just have to use PHP to place the header or footer or whatever in your page. I'd like to be able to reference the header, footer, sidebar, etc. as well from my main site... sort of to create a portal that leads to my blog as well as other pages... but is built from the same files as my blog. Is this possible? Quote
TCH-Don Posted May 5, 2005 Posted May 5, 2005 You should be able to include the files, why not try it include ("blog/header.php"); in a test.php file to see what happens. Thats half the fun Quote
j2k4b Posted May 5, 2005 Posted May 5, 2005 I have been using Wordpress forever and that is too complex for me... LoL Welcome to the boards. Glad to have you! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.