How to add author name in PAGEs?

Posted in: Newspaper
Post count: 18

I want to add author name below of my page title. How can I do that?
N.B: I don’t want to link author name. Want to add author name without the clickable link that name.

  • This topic was modified 8 years by itmehedi.
Post count: 22421

Hello,

Sorry but our theme does not provide such an option. It can be only added custom by changing the page templates code. The code for the page builder + page title can be found here: https://www.screencast.com/t/ZEvcaSfe

Thank you!

Post count: 22421

Hello,

Sorry but our theme does not provide such an option. It can be only added custom by changing the page templates code. The code for the page builder + page title can be found here: https://www.screencast.com/t/ZEvcaSfe

Thank you!

Post count: 18

I will add code. But, what type code I need to use? And Isn’t I need to add code page.php? Or any other template? And also mention where I need to place that code. Thanks

Post count: 20688

Hi,

You could try a code like this in the page template

<?php echo get_the_author_meta('display_name');?>

Note the sidebar cases – https://www.screencast.com/t/Nt2Wq78GXk
For example enter the code like this with a default right side sidebar, below the page title if that is where you want it to appear
https://www.screencast.com/t/lxchcXSJ

Thanks

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.