Skip Navigation

[Resolved] Bug found from custom search

This support ticket is created 5 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 4 replies, has 3 voices.

Last updated by kelvinL-2 5 years, 10 months ago.

Assisted by: Waqar.

Author
Posts
#1255689
Screenshot 2019-06-01 at 10.12.12 PM.png
Screenshot 2019-06-01 at 10.12.16 PM.png

Dear Sir/Madam,

Below is the search and pagination code

[wpv-filter-controls]
  <div class="col-xs-12 col-md-3">
  	<div class="form-group">
		<label>[wpml-string context="wpv-views"]地區[/wpml-string]</label>
    	[wpv-control-postmeta field="wpcf-district" type="select" source="custom" url_param="wpv-wpcf-district" values="[wpv-view name="options-district-key"]" display_values="[wpv-view name="options-district"]"]
	</div>    
  </div>
  <div class="col-xs-12 col-md-3">
  	<div class="form-group">
		<label>[wpml-string context="wpv-views"]屋苑[/wpml-string]</label>
		[wpv-control-postmeta field="wpcf-estate" type="select" source="custom" url_param="wpv-wpcf-estate" values="[wpv-view name="options-estate-key"]" display_values="[wpv-view name="options-estate"]"]
	</div>
</div>
  <div class="col-xs-12 col-md-3">
    <div class="form-group">
	<label>[wpml-string context="wpv-views"]風格[/wpml-string]</label>
	[wpv-control-postmeta field="wpcf-style" url_param="wpv-wpcf-style"]
</div>
  </div>
  <div class="col-xs-12 col-md-3">
    <div class="form-group">
	[wpv-filter-submit name="搜尋" output="bootstrap"]
	</div>
  </div>

</div>[/wpv-filter-controls]

I build Views and output the content in Options list for selection. There is some bug when embedding the View into a page
hidden link ( only show the search, both the select with custom source are showed as a text field.)

hidden link ( search and result, both the select with custom source are shown normally.)

#1256741

Hi there,

Thank you for contacting us and I'll be happy to assist.

I've performed a few tests on my website and noticed that this issue only appears if the views which are being used to generate the custom options, include extra line breaks and spaces.

To remove any extra spaces and line breaks from the output of these views ("options-district-key", "options-district", "options-district-key" & "options-district-key"), please follow these steps:

1. Compress the content in the "Loop Editor" section, so that there are no extra spaces or line breaks.
( example screenshot: hidden link )

2. Enable the checkbox "Disable the wrapping DIV around the View" just above the "Output Editor" section.
( example screenshot: hidden link )

3. From the "Output Editor" section, remove the "[wpv-filter-meta-html]" shortcode and only keep "[wpv-layout-meta-html]" shortcode.

I hope this helps and please let me know how it goes.

regards,
Waqar

#1256923

Dear Waqar,

I tested and confirmed only task 2 and 3 from your suggestion can fix the issue. Many thanks for your help.

Best regards,

Kelvin.

#1258325

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi Kelvin

Waqar is off this week. It looks like the issue is fixed, please go ahead and mark as resolved if that's the case, thanks.

#1258361

My issue is resolved now. Thank you!