phpharness is a WordPress plugin by guy morazain that creates a shortcode that lets you specify a php file that you wish to include into a page. Whatever is returned by your specified function will be displayed. [phpharness path=”path to file to require_once” func=”function to fire “]
Author otes: The function should be in the form of function_name(‘1’,2…) where parameters,if any, are also passed in the stringf defining the function. The Path is relative to your root directory.