WordPress.org

Ready to get started?Download WordPress

Forums

JSON-API get_category_posts bug (2 posts)

  1. cbfuk
    Member
    Posted 3 years ago #

    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?

  2. renssies
    Member
    Posted 2 years ago #

    I've had the same problem and fixed it by putting the following code in introspector.php

    replace: http://pastebin.com/gNEfYM28
    with this: http://pastebin.com/ryeqpC1q

    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

Topic Closed

This topic has been closed to new replies.

About this Topic