-
Author
-
September 19, 2017 at 08:06 #174078simlimParticipant
There is a bug with the search when a user search multiple content type (including custom post types).
To reproduce, example use search string: https://seventhqueen.com/themes/kleo/?s=the&post_type[]=post,product,page,kleo-testimonials
Expected to show all post results, but it just show only the post results, and gets cut off (turn on WP_DEBUG to see error).
Reason for bug:
/kleo/kleo-framework/lib/function-core.php:311
The use of array_map(‘urlencode’, $query_args) is causing a “urlencode() expects parameter 1 to be string, array given” error, because the first item in the array is post_type which is an array not a string (because the url parameter for multiple post types is an array). To rectify, need to refactor the code for this line to consider situation where $query_args contains an array of array, instead of always an array of strings.
September 19, 2017 at 19:24 #174142LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! ?Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
September 21, 2017 at 16:00 #174309RaduModeratorHi,
Thank you for reporting this, added to buglist we will let you know when it’s fixed.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.