Byline

Posted in: Newspaper
Post count: 35

I have read through the posts on this topic and I changed the code, but the site is still not displaying bylines. Help?

Post count: 6600

hi,

I’m not sure I understand what code have you changed, please provide more details, also a screenshot would be helpful. If you refer to this: http://screencast.com/t/IOIVhFJPsIR note that this will apply to the default post template and will not add the author the other post templates.
Please let me know!

Thanks

Post count: 35

I am referring to the screenshot that you linked to.

I would ideally want bylines to appear on these two locations for posts: http://www.screencast.com/t/CyFjunsTwk7 and http://www.screencast.com/t/WqoLJo5NzN.

Is that possible, or can it be in the very near future?

  • This reply was modified 11 years by rparlier.
Post count: 388

The edits are good but they only apply to one of many possible templates your posts can have. Do the exact same code edit (uncommenting the byline) in each of the following files:

loop-single.php, loop-single-1.php, single_template_2.php, single_template_3.php, single_template_4.php, single_template_5.php

And if you want, a similar edit for each of these files in includes/modules (the modules display posts in blocks and archive pages mainly):

td_module_1.php, td_module_2.php, td_module_3.php, td_module_4.php, td_module_5.php, td_module_6.php, td_module_8.php, td_module_9.php, td_module_aj_search.php, and td_module_search.php (if it isn’t already uncommented in that last one).

Happy editing!

Post count: 6600

Thanks TheMediumUTM!

Post count: 35

Thank you! The bylines are now showing on posts, but not on the homepage. Is this still possible? —I can’t find where to edit the modules.

  • This reply was modified 11 years by rparlier.
Post count: 388

Great! Yeah, your homepage will be using the modules. They can be found in your WordPress directory like this: /wp-content/themes/Newspaper/includes/modules. The specific line is:

<?php //echo $this->get_author();?>

Which will become:

<?php echo $this->get_author();?>

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