I am using this code to display the recent post from my subdomain to my main domain. I got it after spending 6-7 hours. Now I need to show the avatar image and username of the user of has posted the questions on questions.admissiontimes.com. Right now, it's coming in green and black.function print_requested_template_part() {    // Respond only to requests from the same address...     if ( $_SERVER['REQUEST_METHOD'] == 'GET' && isset($_GET['including_template_part']) && isset($_GET['load_part']) && $_GET['load_part'] != '' ) {        $part = $_GET['load_part'];        $func = 'render_' . str_replace('-', '_', $part); // if you have declared a function called render_footer_include, then ?load_part=footer_include        if ( function_exists($func) ) {            // Allow for passing parameters to the function            if ( isset($_GET['params']) ) {                $params = $_GET['params'];                $params = ( strpos($params, ',') !== false )? explode(',', $params) : array($params);                call_user_func_array($func, $params);            } else {                call_user_func($func);            }        }        exit; // if we don't exit here, a whole page will be printed => bad! it's better to have empty footer than a footer with the whole main site...    }}add_action('init', 'print_requested_template_part', 1);function render_my_recent_posts( $numberposts = 5 ) { ?>    <ul>    <?php        $args = array( 'numberposts' => '5' );        $recent_posts = wp_get_recent_posts( $args );        foreach( $recent_posts as $recent ) {            echo '<li><a href=' . get_permalink($recent[ID]) . ' title=Look '.esc_attr($recent[post_title]).' >' .   $recent[post_title].'</a> </li> ';        }    ?>    </ul><?php}
Image placed with username in recent post of WordPress
php