Link to file in plugin directory from wordpress template?
I know that plugins and theme files should be kept separate but for for internal use I need to do it this way.
In my themes header.php file I want to include a php file which just contains html, from my plugin directory.
The path is basically /wp-content/plugins/my_plugin/my-html.php
I can't seem to figure out the proper code for wordpress to look in the plugins directory, and grab the my-html.php file from within the my_plugin folder. I want to include this file so the html in it is included in the header.php within my theme.
What would be the best way to go about this??
Topic template-include php templates Wordpress
Category Web