• When using the /api/core/get_posts I am passing in a custom taxonomy. For some reason that I can’t explain, the SQL that is generated includes a where clause that includes the children under my custom taxonomy. And the same data on another server does not include the children.

    If I was doing this using my own WP_Query, I would use the ‘include_queries’ clause.

    array(
            'taxonomy' => 'tax_agreement',
            'field' => 'slug',
            'terms' => 'partnering',
            'include_children' => false,
            'operator' => 'IN'
          )

    How might I pass in a query param that let’s me control the value of ‘include_children’?

    http://ww.wp.xz.cn/plugins/json-api/

The topic ‘Custom taxonomy with/without children’ is closed to new replies.