Cannot implement byline into posts container in single.php

On single.php, as I mentioned earlier, there is no loop to put the PHP code into.

If your theme follows WordPress standards, there will be a loop. You’ll likely find it in the Template Part files that are being called in your If/Then statement.

Look for the following files under [theme folder]\templates\:

  • template_single_multi.php
  • template_single.php

Right now, the best I can do is get the byline to show outside of the content box on posts

Depending on how your theme is built, there are a couple ways to accomplish this. I would start by searching your theme for calls to the_title or get_the_post_title. This should give you a list of places where the title is echoed to the screen. Most likely, you’ll find it in the Template Parts described above, or in functions.php

If the individual Template Parts call something like <?php the_title() ?>, then you can add your code right below that.

If the Title is being called inside a function or hook, this gives you greater flexibility. You can add your code to it, like above. Or, with some advanced WordPress knowledge, you could write your own hook or filter to modify the original function. Keeping your code cleaner.