Easy Digital Downloads user – missing field ‘brand’ on just one item

#29196
  • Resolved Lou
    Rank Math pro

    Google Search Console is giving me a “missing field ‘brand'” warning on just one item. I thought it might be an anomaly so I revalidate, but it still appears.

    I’m using RankMath with Easy Digital Downloads to generate Rich Snippets, and the only solution I could find for this problem seemed to be for WooCommerce.

    I do not have the WooCommerce module activated, as I figured it didn’t apply to me a as a user of a different eCommerce plugin.

    Please advise how to fix, thanks.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I can suggest that you make use of the following filter with some additional logic to check the current product and assign the brand:

    /**
     * Filter to add Brand Name for Products.
     *
     * @param array $entity Snippet Data
     * @return array
     */
    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
        $entity['brand'] = 'Rank Math';
        return $entity;
    });

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Easy Digital Downloads user – missing field ‘brand’ on just one item’ is closed to new replies.