Reputation: 77
I want to require_once an html file from plugin directory of wordpress in the custom page of wordpress
i have tried
require_once(WP_PLUGIN_URL."/sinetiks-schools/images/t1.php");
but getting an error
require_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0 i
Upvotes: 2
Views: 1836
Reputation: 4270
Try this:
<?php
echo '<img src="' . plugins_url( 'images/wordpress.png', dirname(__FILE__) ) . '" > ';
$dir = plugin_dir_path( __FILE__ );
var_dump($dir);
?>
Upvotes: 2