Support

Account

Home Forums General Issues Product featured image is missing in the api response

Solving

Product featured image is missing in the api response

  • Hello,

    I am trying to pull Woocommerce products through post object (Refer to the screenshot on the link). It does return the post data. However, it doesn’t show the product featured image and a few other meta details. Am i missing something here? Please help!

    https://prnt.sc/1zk31m6

    `“acf”: {
    “products”: [
    {
    “ID”: 266814,
    “post_author”: “427”,
    “post_date”: “2021-06-09 09:50:56”,
    “post_date_gmt”: “2021-06-09 06:50:56”,
    “post_content”: “content comes here”,
    “post_title”: “Swinging Hose Reel”,
    “post_excerpt”: “excerpt here”,
    “post_status”: “publish”,
    “comment_status”: “open”,
    “ping_status”: “closed”,
    “post_password”: “”,
    “post_name”: “swinging-hose-reel”,
    “to_ping”: “”,
    “pinged”: “”,
    “post_modified”: “2021-09-07 14:22:17”,
    “post_modified_gmt”: “2021-09-07 11:22:17”,
    “post_content_filtered”: “”,
    “post_parent”: 0,
    “guid”: “http://example.com/?post_type=product&p=266814”,
    “menu_order”: 0,
    “post_type”: “product”,
    “post_mime_type”: “”,
    “comment_count”: “0”,
    “filter”: “raw”
    },

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.