Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Jim True

    (@jimtrue)

    You’re calling WP functions against the Pods API object. WP functions only work against the WP loop.

    Within that script that you reference, you’d have to use field('post_author'), which would give you the user ID (numeric) of the author, or since you have the post ID, you could do the_author( get_the_id() )

    • This reply was modified 5 years, 5 months ago by Jim True.
    Thread Starter kostritsaalex

    (@kostritsaalex)

    Thanks a lot Jim!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get_the_author’ is closed to new replies.