Get the username of the author of CPTs

[ad_1]

Hi

I have a webpage where I want to list some data of a CPT. So, I use something like this:

[pods name="cpt-with-more-authors" ...] 
... by {@post_author,get_the_author}
[/pods]

It seems that {@post_author,get_the_author} returns the username of the Administrator as he created that page and not the author of the CPT.
If I use simply {@post_author} it returns the IDs of the CPT’s authors correctly.

Is this a PODS error or I’m doing something wrong?
(or how can I get the username of the authors of the CPT?)

  • This topic was modified 1 hour, 46 minutes ago by tazar64.
  • This topic was modified 1 hour, 45 minutes ago by tazar64.
  • This topic was modified 1 hour, 43 minutes ago by tazar64.
  • This topic was modified 1 hour, 43 minutes ago by tazar64.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer