[wp-hackers] How to load a sidebar/footer from non-WordPress environment

David Garcia Watkins david at earth.org
Fri Apr 1 10:32:17 UTC 2011


> Visually, when a user is on the donation page(s), I'd like to still show the
> sidebar and footer from the main WordPress blog to maintain consistency.
> But, obviously, I can't simply include those php files or call get_sidebar()
> from another application.

You could do:

require_once "path-to-wordpress/wp-load.php";
get_sidebar();

Best
David


More information about the wp-hackers mailing list