How to Include a Loop Template File in a Plugin
I do it like this: // Inclusion of additional php files define( ‘MYPLUG_DIR’, plugin_dir_path( __FILE__ ) ); require_once( MYPLUG_DIR . ‘hi.php’ ); It lets you use that more easily if you have to include several files.