I need to include a file from plugin Folder in my template file. How can I do that? Is there any other way to do that rather than:



1 Answer 1


plugins_url( 'file_location/relative_to.plugin', 'plugin/file/location' );, or something along those lines at least, should do it for you. Alternatively, you could work from the top down and say something like include( '/wp-content/plugins/you-plugin-name/file.php' ) to get it, whichever is easier.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.