For some purposes i want to have custom php file in my Wordpress that will output content from 3 plugins.
This is the PHP code in the file :
<div class="wrap"> <div class="sidebar1"> <?php dynamic_sidebar('sidebar1'); ?> </div> <div class="sidebar2"> <?php get_template_part('sidebar2'); ?> </div> <div class="sidebar3"> <?php dynamic_sidebar('sidebar3'); ?> </div>
However, when i try to open / execute the file i get error like
Fatal error: Call to undefined function dynamic_sidebar() ...
i guess its because i have to include some files to make all the functions / classes available to the custom PHP file.
How can i run this file without errors ?