Support » Plugins » JSON-API get_category_posts bug

  • We find core.get_category_posts does not use optional parameters – specifying count or page make no difference, results are always paged in blocks of 25 (not 10 as stated). Also, the total_count return parameter is missing.

    Ideally, we need a single result set containing all matching posts; is this a known fault, and is there any fix/workaround other than processing paged returns?

Viewing 1 replies (of 1 total)
  • I’ve had the same problem and fixed it by putting the following code in introspector.php

    with this:

    Than instead of using the count parameter use ‘showposts’.
    ‘count’ can still be used for other request methods.

    I hope this helped

    PS. I know this is a old post but maybe it will help someone, because you can’t find the solution anywhere

Viewing 1 replies (of 1 total)
  • The topic ‘JSON-API get_category_posts bug’ is closed to new replies.