• Resolved priyankac

    (@priyankac)


    Hello,

    Recently installed and activated publish press author plugin. Plugin displayed wrong author title

    Example: If an article has 3 authors (First Author, Second Author, Third Author), then in all the three authors archive pages the title is ” Article by First Author” although the list of articles is correct.

    Why author title showing wrong?

    How to resolve this problem?

    Please let us

    Thank You

    • This topic was modified 2 years, 11 months ago by priyankac.
Viewing 6 replies - 1 through 6 (of 6 total)
  • I came here to post the same bug. Everything else seems to work fine.

    I’m using Oxygen Builder, in case that’s relevant.

    If it would help the plugin author, I can provide the login credentials to a development site with the problem.

    • This reply was modified 2 years, 11 months ago by richpav.
    Plugin Author Steve Burge

    (@stevejburge)

    Hi @richpav and @priyankac

    Archive pages can be tricky because themes often add their own extra information.

    We have child themes available to help with compatibility with some common themes:
    https://publishpress.com/knowledge-base/publishpress-authors-child-themes/

    If it’s not on the list, click here for details on customizing your theme: https://publishpress.com/knowledge-base/modify-theme-output-authors/

    Steve,

    I’m using Oxygen builder, which doesn’t use themes. If logging into a dev site and looking at the problem would help, that can be arranged.

    Plugin Author Steve Burge

    (@stevejburge)

    Hi @richpav

    That level of support is available for our Pro members.

    With Free users, we can give advice, but ask you to take the lead with debugging.

    The issue is more likely to be with your theme than Oxygen, but I’d recommend that you do a normal debugging process (disabling themes, plugins etc).

    Fair enough. I’ll see if I can fix your plugin’s bug myself.

    • This reply was modified 2 years, 11 months ago by richpav.

    Someone with a bigger brain than I have came up with a solution:

    “The PHP function that Oxygen uses is a standard WordPress one and normally works as you can see but as soon as PublishPress is active, it doesn’t.
    I checked how 2021 theme does it and found that it uses a different function, get_the_archive_title(). Tested it in Oxygen and it works.

    “To display the correct author display name, you could use this in a Code Block:
    <php
    echo str_replace( ‘Author: ‘, ”, get_the_archive_title() );
    ?>

    • This reply was modified 2 years, 11 months ago by richpav.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Wrong author name displayed in author archive title’ is closed to new replies.