Ok so I want to use the plugin "wp-polls.php" except I don't want to use it as a plug and play widget. Instead I want to execute somewhere else in the page other than the sidebar. So I need to call the function using PHP right. My question is, how can I call the function from the plugin directory since the theme is in .../wp-content/themes/mytheme/index.php and the plugin is in .../wp-content/plugins/myplugin/wp-polls.php
If you want to include the wp-polls.php in any file, you can reference its absolute path: require_once($_SERVER['DOCUMENT_ROOT'].INSTALL_DIRECTORY."/wp-content/plugins/myplugin/wp-polls.php"); Code (markup): INSTALL_DIRECTORY in the above code would be the string or variable holding the value of the install directory. You can leave this out if you have installed Wordpress into your website root.
ForumHelper has the correct info....you can even go seriously absolute and type it out like http://www.yoursite.com/wp-content/plugins/myplugin/wp-polls.php