Author Name above post title


#1

I want to display author name and time above post title. Please help me with it. Its Urgent


#2

Hi ravijain,

This can be done by using the rtp_hook_begin_post_title or rtp_hook_begin_post hooks. Paste the following code in your child themes' functions.php.

add_action('rtp_hook_begin_post_title', 'rtp_child_above_post_title');  
function rtp_child_above_post_title(){ ?>  
    

Written by: <?php echo get_the_author_link(); ?> on <?php echo get_the_time(); ?>

<?php }

Let me know if this helps.


#3