Using WP functions outside of WP folder
-
Hello –
I have added WordPress to an existing site by putting it in its own directory – root/blog. However, I would like to be able to use some of the WP widgets and functionality within pages of the original site which are located in the root or the site.
I am not so hot with php, but have been learning slowly. I see that in the index.php of a page within root/blog I can call the login function by <?php wp_loginout(); ?>, but how would I reference this from the site’s root? I have tried <?php require(‘blog/wp-blog-header.php’); ?> in the <head> of the pages without any luck.
Thank you for your help!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Using WP functions outside of WP folder’ is closed to new replies.