• Resolved thegooddealshop

    (@thegooddealshop)


    Hello guys,

    I noticed that in Pinterest, the products coming from the feed have a field for ALT Image tag, which is not listed in the attributes in your plugin.
    We do have ALT image values in all our images in Woocommerce, and it will from the SEO perspective be good to have it mapped to it.
    Is that something you are aware of? Any workaround I can implement?

    https://paste.pics/d06ebf3300ac4aca2e0308652d598aea

    Thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Thanks for using our plugin and reaching out to us.

    We have just pushed out a new release of the plugin (version 11.5.4) that has the alt text attribute added in the Pinterest template. So just make sure to update the plugin and you should be able to use the new attribute on the field mapping section of our plugin.

    Hope this helps?

    Thread Starter thegooddealshop

    (@thegooddealshop)

    Hello,

    I wanted to say THANKS for your support.
    Also, thanks for the support from the team at Custom Field Pro that came with this custom formula to extract the ALT tags to a field to be mapped in your plugin.

    copy_alt_from_product_featured_image_to_custom_field( 'image_alt_text' );
    function copy_alt_from_product_featured_image_to_custom_field( $image_alt_text ) {
    	$args     = array(
    		'post_type'   => 'product',
    		'numberposts' => -1,
    	);
    	$products = get_posts( $args );// Retrieve all products.
    	foreach ( $products as $product ) {
    		$featured_image_id = get_post_thumbnail_id( $product->ID );
    		$alt               = get_post_meta( $featured_image_id, '_wp_attachment_image_alt', true ); // Retrieve ALT text.
    
    		update_field( $image_alt_text, $alt, $product->ID );// Update
    	}
    }

    We were able to map it properly to Pinterest
    https://paste.pics/ae354b98bcf60b90005bc265f7a7680c

    perfect, thanks for the heads-up

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pinterest ALT Image tag’ is closed to new replies.