Showing additional image

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

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. 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)); ?>

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

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.


Sign in to Reply
Replying as Submit