use do_shortcode on extern wordpress page
-
hello
I created a directory in wp-content/plugins in which I put php files that I called from a wordpress page such as:<?php $file = $_SERVER['DOCUMENT_ROOT'] . "/../fr/wp-content/plugins/mydir/" . "test.php"; require_once($file); ?>
it works very well if, for example test.php contains simple instructions as
echo "coucou";
but if I want to add the call to a plugin nothing happens:
for exampleecho do_shortcode("[osm]");
thanks for you help
- The topic ‘use do_shortcode on extern wordpress page’ is closed to new replies.