How to show the filter block when i create the listing page by own with query

Hi,
“How do I render the filter for listings in a custom template inline in the code when displaying listings mapped with a query?”

	 $listings = HivePress\Models\Listing::query()->filter(
    [
        'status' => 'publish'
    ]
)->order(['created_date' => 'desc'])->get();

Hi,

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

how to show the filter block when i create the listing page by own with query

Hi,

If you mean a custom listing template, we recommend using the existing feature: How to customize templates - HivePress Help Center, where you can choose the block you need. If you want to customize the template using code, we recommend using template hooks: Search · user:hivepress template · GitHub. Also, if you want to create a separate page, there is no simple guidance, it requires advanced customization.

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