Showing additional image

Ticket for: Combo Blocks
0
Showing additional image 1
admin56
Feb 25, 2019 07:16 PM 1 Answers
Member Since Feb 2019
Subscribed Subscribe Not subscribe
Flag(0)

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.

<div class="brand-logo">
<?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)); ?>
</div>

2 Subscribers
Showing additional image 1
Showing additional image 3
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
0
Showing additional image 4
PickPlugins
Feb 25, 2019
Flag(0)

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

https://pickplugins.com/documentation/post-grid/filter-hooks/filters-post_grid_filter_html_media/

Let me know for more help.

Regards

Sign in to Reply
Replying as Submit