How to embed a video on the listing page?

My vendors want to add a video of them showing their activity. What is the best way to do this?

I was able to do this - next question is how to place it after the description?

There are 2 ways to embed videos:

  • Adding the video URL to the listing description, e.g. add it to the end of the description
  • Using a custom Embed attribute, but in this case, attributes appear only in 2 pre-defined areas on the listing page

can I get the embed after description? or change the size to keep in on the primary page?

Yes, please try to add it to the end of the description or it is possible to use this PHP snippet

add_filter(
	'hivepress/v1/templates/listing_view_page',
	function( $template ) {
		return hivepress()->helper->merge_trees(
			$template,
			[
				'blocks' => [
					'page_content' => [
						'blocks' => [
							'custom_listing_video' => [
								'type' => 'content',
								'content' => 'Please put your embeded code or link here',
								'_order' => 61,
							]
						],
					],
				],
			]
		);
	},
	1000
);
1 Like

Its still not working after I added the php snippet

Please try to embed the video into the listing description without a PHP snippet after all content in the listing description. It was tested locally and seems to be ok

Thank you - that works!

I have added embed video to the listing description and appears on Wordpress but does not appear on listings after update

It seems like you have put embedded code but please try to put just the video URL in the text