I am trying to add a view more button on the listing block footer so user can click and get to the listing details page. I have this snippet and I am trying to figure out the dynamic link for listing details.
Can you help me with figuring out what should go in the listing_details_link_here so that the link opens the view listing details for the listing? Thanks.
Please try to use this hook: hivepress/v1/templates/listing_view_block/blocks Filter: hivepress/v1/templates/{template_name}/blocks | HivePress Hook Reference. This hook has two parameters, you can get the context from the template: $template->get_context(‘listing’), and then get the listing URL: get_permalink($listing->get_id())
We still recommend that you try using this hook: hivepress/v1/templates/listing_view_block/blocks, because the listing_footer of the block is not in the listing_view_page.