Skip to main content
Small formatting changes
Source Link
Pieter Goosen
  • 55.4k
  • 23
  • 115
  • 209

Is there any way to display different data in an author.phpauthor.php profile template depending on the role of the profile displayed? (NOT of the person viewing it, but the author that particular profile refers to).

If a profile is being displayed of an author with role editoreditor, then some content would be displayed, and if the profile belongs to an author with role contributorcontributor, then some other stuff would be displayed.

I haven't found an answer for this anywhere yet. Can it be done?

Is there any way to display different data in an author.php profile template depending on the role of the profile displayed? (NOT of the person viewing it, but the author that particular profile refers to).

If a profile is being displayed of an author with role editor, then some content would be displayed, and if the profile belongs to an author with role contributor, then some other stuff would be displayed.

I haven't found an answer for this anywhere yet. Can it be done?

Is there any way to display different data in an author.php profile template depending on the role of the profile displayed? (NOT of the person viewing it, but the author that particular profile refers to).

If a profile is being displayed of an author with role editor, then some content would be displayed, and if the profile belongs to an author with role contributor, then some other stuff would be displayed.

I haven't found an answer for this anywhere yet. Can it be done?

Source Link

Conditional tag based on the role of author in author.php

Is there any way to display different data in an author.php profile template depending on the role of the profile displayed? (NOT of the person viewing it, but the author that particular profile refers to).

If a profile is being displayed of an author with role editor, then some content would be displayed, and if the profile belongs to an author with role contributor, then some other stuff would be displayed.

I haven't found an answer for this anywhere yet. Can it be done?