Live Filter – show the filters and result in different places (for example: filters in sidebar, result in page)

Normally, Live filters will show above the result.
Since Content Views Pro 4.9.0 and Content Views, you can put the filters and the result in different places.

1. Show filters in Sidebar, show result in a page

  • to show the filters in Sidebar, please add this shortcode to a Text widget in Sidebar:

    [pt_view id="VIEW_ID" show="filter" submit_to="URL_OF_RESULT_PAGE"]
  • to show the result in a page, please add this shortcode to the page’s content editor:

    [pt_view id="VIEW_ID" show="result" submit_to="URL_OF_RESULT_PAGE"]

Please replace VIEW_ID with ID of your View,
replace URL_OF_RESULT_PAGE with URL of the result page.

Please add shortcode to the “Text” tab to ensure that shortcode is not modified unexpectedly:
CVP - add shortcode to text tab

2. Show filters in left side, show result in right side of a page

If your theme has no Sidebar for a page, you can show filters in the left side, show result in the right side of a page with this code:

<div class="pt-cv-wrapper">
	<div class="row">
		<div class="col-md-4 col-sm-6">
			[pt_view id="VIEW_ID" show="filter"]
		<div class="col-md-8 col-sm-6">
			[pt_view id="VIEW_ID" show="result"]

You can switch positions of shortcodes to show filters in the right side, show result in the left side.
To change the width of each side, please change the col-md-4 and col-md-8, the sum of numbers must equal to 12.


The VIEW_ID to show filter and result must be the same. It is NOT possible to use 2 different Views there.

When showing the filters and results in different places, the page will be reloaded when selecting or changing the filter option.

Best regards,