• Hello!

    When I call get_tag_posts or get_post my attachment block contains empty values like this:

    "attachments": [],
            "comment_count": 1,
            "comment_status": "open",
            "thumbnail": null,
            "custom_fields": {},
            "thumbnail_size": "post-thumbnail",
            "thumbnail_images": []

    but it works with get_posts, example:

    "attachments": [
                    {
                        "id": 57,
                        "url": "https://dba:8888/wp/wp-content/uploads/2014/10/lorempixel.jpg",
                        "slug": "lorempixel",
                        "title": "lorempixel",
                        "description": "",
                        "caption": "",
                        "parent": 33,
                        "mime_type": "image/jpeg",
                        "images": []
                    }

    Should I file a bug somewhere, or does anyone know of a fix?

    Using WP 4.0 and JSON API 1.1.1

    Thank you

    https://www.ads-software.com/plugins/json-api/

  • The topic ‘get_tag_posts/get_post do not contain featured image’ is closed to new replies.