# How do I make it so the Listing photo is the vendor's profile photo?

**URL:** <https://community.hivepress.io/t/how-do-i-make-it-so-the-listing-photo-is-the-vendors-profile-photo/5978>\
**Category:** ExpertHive\
**Tags:** experthive\
**Created:** [May 24, 2023, 6:09pm UTC](https://community.hivepress.io/t/how-do-i-make-it-so-the-listing-photo-is-the-vendors-profile-photo/5978 "2023-05-24T18:09:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![marissaseshadri](https://community.hivepress.io/letter_avatar_proxy/v4/letter/m/b5ac83/32.png) [@marissaseshadri](https://community.hivepress.io/u/marissaseshadri)\
**Post date:** [May 24, 2023, 6:09pm UTC](https://community.hivepress.io/t/how-do-i-make-it-so-the-listing-photo-is-the-vendors-profile-photo/5978/1 "2023-05-24T18:09:06Z")

</div>

I have several test Listings that I have created. I’ve added an attribute where photos can be uploaded. I also have a profile photo uploaded in my vendor profile. However, when I look at all of the Listings, there’s still a default grey photo for all of them. How can I make it so the Listing photo is the vendor’s profile picture?

---

<div class="post-metadata">

**Author:** ![marissaseshadri](https://community.hivepress.io/letter_avatar_proxy/v4/letter/m/b5ac83/32.png) [@marissaseshadri](https://community.hivepress.io/u/marissaseshadri)\
**Post date:** [May 24, 2023, 6:18pm UTC](https://community.hivepress.io/t/how-do-i-make-it-so-the-listing-photo-is-the-vendors-profile-photo/5978/2 "2023-05-24T18:18:46Z")

</div>

I used the below PHP snippet but it distorts the sizes of the photos. Is there anyway I can change this PHP snippet so that the photo simply display as a circle?

```auto
 add_filter(
	'hivepress/v1/templates/listing_view_block/blocks',
	function( $blocks, $template ) {
		return hivepress()->helper->merge_trees(
			['blocks' => $blocks],
			[
 				'blocks' => [
 					'listing_image' => [
 						'path' => 'listing/view/block/listing-image',
 					],
 				],
 			]
 		)['blocks'];
 	},
 	1000,
	2
 );

```

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [May 25, 2023, 10:59am UTC](https://community.hivepress.io/t/how-do-i-make-it-so-the-listing-photo-is-the-vendors-profile-photo/5978/6 "2023-05-25T10:59:33Z")

</div>

Hi,

Vendor photos are displayed by default. The code you posted, shows the listing photo instead of the vendor photo.

---

<div class="post-metadata">

**Author:** ![marissaseshadri](https://community.hivepress.io/letter_avatar_proxy/v4/letter/m/b5ac83/32.png) [@marissaseshadri](https://community.hivepress.io/u/marissaseshadri)\
**Post date:** [May 31, 2023, 11:28pm UTC](https://community.hivepress.io/t/how-do-i-make-it-so-the-listing-photo-is-the-vendors-profile-photo/5978/7 "2023-05-31T23:28:10Z")

</div>

What if the vendor’s profile photo is not the default? The default image seems to be a grey placeholder image. The website is not showing the vendor’s profile picture or any other pictures that have been uploaded to the Listing

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [June 1, 2023, 11:58am UTC](https://community.hivepress.io/t/how-do-i-make-it-so-the-listing-photo-is-the-vendors-profile-photo/5978/11 "2023-06-01T11:58:26Z")

</div>

Hi,

​Please send more details about the issue, and we will do our best to help you.

A gray placeholder is displayed accordingly if the vendor does not have an image.

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [July 1, 2023, 11:58am UTC](https://community.hivepress.io/t/how-do-i-make-it-so-the-listing-photo-is-the-vendors-profile-photo/5978/12 "2023-07-01T11:58:37Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
