Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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:



share|improve this question

1 Answer 1

up vote 2 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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