• Resolved whateverfree2

    (@whateverfree2)


    Hi
    I want display Author name in GravityForm so I need write a custom function to output the Author name.

    What is the variable to output the current Author name in page/post?

    example: $currentauthor = get_molongui_author_title(); ??

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Molongui

    (@molongui)

    Hi @whateverfree2,

    you might find useful a function named “get_the_molongui_author_name”. It returns the author(s) display name(s) of the current’s page. Keep in mind that it must be used within ‘The Loop’.

    Does it serve your purpose?

    Regards,
    Molongui Support Team

    Plugin Author Molongui

    (@molongui)

    Hi @whateverfree2,

    latest update (3.1.9) allows you to use the above mentioned template tag outside the loop as long as you provide the post’s ID as a first attribute.

    Hope that helps!

    Since there hasn’t been any answer from you, I’m closing this ticket. Feel free to reopening it if you need further assistance.

    Regards,
    Molongui Support Team

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to call Author name via php code?’ is closed to new replies.