Hello, I would like to add a brand logo as well as the featured image to post grid. 'Brand' is added to a page via advanced custom fields, and then shown on the product page, e.g. http://www.logicool-ac.com/products/mitsubishi-electric-air-conditioning-m-series-ln-wall/. The code below is used to add the brand logo to product pages.
Can you think of a way to display this logo in Post Grid as well? Thank you, Paul.
<?php $brand_id = get_post_meta($post->ID, 'brand_link', true); ?>
<?php $logo_id = get_post_meta($brand_id, 'logo_image', true); ?>
<?php echo wp_get_attachment_image($logo_id, array(220,150)); ?>
Welcome to our forum.
By default there is no way to display custom image under media/thumbnail image area, you will need to override or add via filter hook or via shortcode under layout editor.
Please see this documentation I have shared the code example to work with ACF
Let me know for more help.