• I am wanting to purchase for a project but testing the free version to see if what I need is possible.

    I am returning posts where the taxonomy is a nested category

    The category is Nigeria and the parent category of Nigeria is Africa

    Africa -> Nigeria

    When I add taxonomy of category to output I am getting

    {
            "ID": 6771,
            "post_name": "Nigeria post",
            "post_type": "post",
            "post_modified": "2020-10-15 11:25:06",
            "category": [
                {
                    "term_id": 17,
                    "name": "Nigeria",
                    "slug": "nigeria"
                }
            ]
        }

    What I need to be able to do is return the parent category as well or at least a nested object in category that shows the parent child category relationship.

    Is this possible?

Viewing 1 replies (of 1 total)
  • Plugin Author Rest Routes

    (@wp-making)

    Hello,

    Thank you for your message! In version 5.0 that we launched yesterday, it is possible to output the taxonomy parent.

    Regards,
    Adriano

Viewing 1 replies (of 1 total)

The topic ‘Output Nested Taxonomy’ is closed to new replies.