Get users not working in ghost latest version


#1
        ``` {{#get "users" include="count.posts"}}
                 {{#foreach users}}
                    {{name}}
                 {{/foreach}}
              {{/get}} ```

Not Working In Home Page And Other Pages in Ghost 2.12 .0 version. i think it’s a bug. please fix the bug.


#2

The Content API v2 renamed users to authors.

Could you please try this instead:

{{#get "authors" include="count.posts"}}
  {{#foreach authors}}
...

I will review our docs to double check if that is clear :slight_smile:


#3

Thanks A Lot . It Works Properly Now.


#4

Thats good… But it makes a trouble for us as we used “users” in all of our old theme. Now if our customers update the ghost then theme will not work. Ghost team should not change this type of sensible api information. I checked API docs too, it was not updated… So need to be careful more i think.


closed #5

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