Cannot use fields and include together in ghost api

Using include param with fields doesn’t display include data, as seen in the screenshot below.

Capture

Using ghost PRO.

custom_excerpt is not a valid value for include. Valid include values, for posts, are tags, authors, author (deprecated). If you want to get custom_excerpt too try add it into the fields parameter.

@HauntedThemes doesn’t seem to work, same issue.

Capture

This seems to be a bug. I remember that there was an issue on GitHub about this but I can’t find it. The only solution is to remove the fields parameter. If you leave only include: tags and formats: plaintext it should work. The problem is that you will get all the fields and not be able to select them with fields parameter.

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