Molongui Authorship

  1. Molongui
  2. >
  3. Docs
  4. >
  5. Molongui Authorship
  6. >
  7. Byline

Byline

The byline on a post gives the name of the writer. It might also display some other post data like publication date, categories and comments count. Whether and where it is displayed depends on your theme.

Now you can use Molongui Authorship Premium shortcodes to display the post byline anywhere you like. Learn more

Themes normally make author name on bylines to link to that author’s archive page (click here to learn more about author archives). That’s standard behavior so everyone expects it to work like that. However, Molongui Authorship allows you to disable that feature preventing author names to be a link.

To disable author name linking to its author archive page, just:

  1. Go to: Molongui > Authorship Settings > Byline tab > Author Name section
  2. Switch off the setting labeled “Name Link”
  3. Save changes

For guest or multi-authored posts, Molongui Authorship needs to tell your theme which authors to display, however, this may not always work or it can even cause unexpected issues with other plugins. If that happens, please open a support ticket and we will try our best to fix it.

On multi-authored posts, that is posts which have more than one author (click here to learn more about multi-authors feature), you can configure what the byline will display:

  • All authors names. All the co-authors of the post are shown.
  • Only the main author name. Only the first author of the post is shown.
  • Main author name and remaining authors count as number. Only the name of the main author is shown followed by the string “and N more”, where “N” is the number of remaining co-authors.
  • First two authors names and remaining authors count as number. The name of the first two authors are shown followed by the string “and N more”, where “N” is the number of remaining co-authors. If the post has only two authors, nothing is added after the names.
  • First three authors names and remaining authors count as number. The name of the first three authors are shown followed by the string “and N more”, where “N” is the number of remaining co-authors. If the post has only three authors, nothing is added after the names.

When displaying more than just one author name, you can also configure which separators to use between names. By default, a comma is used between first items and the particle “and” is used between the last two items.

There is another setting labeled Multi-Author Link Support. It is only displayed if the Name Link option is enabled. It is enabled by default and it makes each author name to link to its author archive page. Disabling it the whole byline will link to the main author’s archive page — which might have no sense at all.

As you can see, these settings provide a high level of customization. But there is more. What if you needed to add some string before the byline? Let’s say you wanted to remark it by adding an illustrating “Written by”. How in the heck would you do that without hacking in your theme or functions file? Molongui to the rescue! We provide two more customization settings that allow you to prepend and append any string — even HTML code! — to your bylines. We call them byline modifiers and you can learn more about them here.

If you are a theme or a plugin developer, you might think “All these features are really awesome… but I would like to integrate Molongui Authorship Bylines with my theme/plugin”. OK, no problem! You can do that making use of the provided template tags :) Check out template tags support article to know everything about them.

Displaying fully customized and functional bylines can be achieved using the provided template tags. It requires some basic coding skills, but using template tags is the best way to go in order to avoid issues with other plugins. Some parameters can be provided to the template tags so bylines can be fully localized and customized with custom HTML code and CSS styles.

Articles

Was this article helpful to you? Yes No 1

How can we help?