Help to get a looper provider to pull a list of authors who have posted a custom post type

I want to make a custom authors page, only of authors that have published a custom post type and I ran into the following issues:

  • I don’t know what to put In the looper provider, after some digging, I ended up here https://developer.wordpress.org/reference/functions/wp_list_authors/
    but I cannot wrap my mind around how to use it on a dynamic content string like {{dc:global:authors}}
    I tried to loop through the custom posts and only output the author name, but then I get a repetition for all posts, resulting in the same author being repeated over and over. I intend to have a dynamic display of all authors of a custom post type, and when clicked, that will link to an archive page with all the posts of that author, ordered by date.
  • where or how to assign it:
    right now is assigned to the custom post type I intend to use, I thought that I could make a looper that loops through the posts and returns an array of only the authors within it. but again, have tried to no avail. I know the URL of this page but I see that cannot be assigned that easily.

Some notes:

  • I am fairly inexperienced with the inner mechanics of WP so I imagine that part of my issue is that I am conceiving how WP works under the hood.
  • I have the impression that if I knew how, I could use ACF for this, as a side note, I am using forminator to let the users write their posts in the front end.
  • I took for granted that once a user was registered, an author page was automatically created, which I see now that is not the case.
  • maybe I shouldnt be using an layout but a page? I might be looking at the whole thing in the wrong way?

Thanks for the help guys!

Hello Carlos,

Thanks for writing in!

Regretfully the Looper Provider does not give you a list of Authors. The Looper provider will display posts, pages, categories, taxonomy, custom post type and among other things. The author is not one of those things. You may need to use the Custom Looper Provider (https://theme.co/docs/loopers#custom) and this will need custom coding to display the list of authors in an array and apply return it via the Looper.

Please note that custom coding is outside the scope of our support. Issues that might arise from the use of custom code and further enhancements should be directed to a third party developer.

We are unable to provide support for customizations under our Support Policy. If you are unfamiliar with code and resolving potential conflicts, you may select our One service for further assistance.

To display a list of all your authors, you may need to install a 3rd party plugin instead. Kindly check this out:

Best Regards.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.