This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Author field format question

Home Forums Product Support Forums Related Posts Pro for WordPress Support Author field format question

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15901
    emmydalasemmydalas
    Participant

    Hello. I’d like to know how do I change the author in related posts results from this:

    “username”

    to this:

    “Author Name” (the name I place in WordPress settings).

    I’ll attach an image of what I mean.

    I dont’t know what to put in “Author field format” to change that, and couldn’t find anything about it in your knowledge base either in the pdf documentation.

    I need the author name to appear in results, but I don’t wanna show usernames at all.

    I’d really appreciate your help.

    Regards,

    #15930
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Well, there is no option for it, but a small custom code snippet may do the trick for you.

    Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case! Let me know if you need help with that.

    Make sure to save the plugin options after this, to clear the cache as well.
    This should replace the author names with the display name, as it appears in wordpress posts.

    #15953
    emmydalasemmydalas
    Participant

    It works perfectly now, thank you so much!

    #15969
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Author field format question’ is closed to new replies.