ok, so this was my best attempt. I tried making this a shortcode plugin, so this is the code for said plugin, but when i tried to activate, it said could not activate, plugin triggered a fatal error. Thanks again for the help…
<? php
/**
*Plugin Name: statpage_iframe
*Plugin URI: example
*Description: Stat page plugin
*Author: example
*Author URI: example
*Version: 1.0
*/
add_shortcode('statpage_iframe', 'getuser_iframe');
function getuser_iframe($atts, $content = null) {
$rid = wp_get_current_user();
return $rid->user_login;
$html = '<iframe src="https://example.com/ccXML.php?part=' . $rid . '"> </iframe>';
return $html;
}
Thanks again, this is a massive help!