// Match Fixture function all_forms($atts) { ob_start(); // Start output buffering include ABSPATH . 'all-forms.php'; // Include the file from the root directory $content = ob_get_clean(); // Get the buffered content and clean the buffer return $content; } // register shortcode add_shortcode('all_forms', 'all_forms');