function aws_page_results( $num ) {
return 350; // number added so as not to make the search very slow but in doing so it does not show all the results but always limits to 350
}
add_filter(‘aws_posts_per_page’,’aws_posts_per_page’);
function aws_posts_per_page( $num ) {
return 48;
}
add_filter(‘aws_indexed_data’, ‘my_aws_indexed_data2’);
function my_aws_indexed_data2( $data ) {
if ( $data[‘type’] === ‘child’ ) {
return false;
}
return $data;
}
add_filter(‘aws_indexed_data’, ‘my_aws_indexed_data’);
function my_aws_indexed_data( $data ) {
$new_terms = array();
foreach ( $data[‘terms’] as $source => $all_terms ) {
if ( strpos( $source, ‘title’ ) === 0 || strpos( $source, ‘category’ ) === 0
|| strpos( $source, ‘attr_pa_fantasia’ ) === 0 || strpos( $source, ‘attr_pa_materiali’ ) === 0
|| strpos( $source, ‘attr_pa_taglia’ ) === 0 || strpos( $source, ‘attr_pa_altezza-vita’ ) === 0 || strpos( $source, ‘attr_pa_collezione’ ) === 0 || strpos( $source, ‘attr_pa_scollatura’ ) === 0
|| strpos( $source, ‘attr_pa_stile’ ) === 0 || strpos( $source, ‘attr_pa_stile-borsa’ ) === 0 || strpos( $source, ‘attr_pa_stile-capospalla’ ) === 0 || strpos( $source, ‘attr_pa_stile-gonna’ ) === 0
|| strpos( $source, ‘attr_pa_stile-pantaloni’ ) === 0 || strpos( $source, ‘attr_pa_stile-portafoglio’ ) === 0 || strpos( $source, ‘attr_pa_stile-tacco’ ) === 0 || strpos( $source, ‘attr_pa_stile-vestito’ ) === 0
|| strpos( $source, ‘attr_pa_stagione’ ) === 0 || strpos( $source, ‘attr_pa_stile-camicia-blusa’ ) === 0 || strpos( $source, ‘attr_pa_stile-coprispalle’ ) === 0
|| strpos( $source, ‘attr_pa_tipo-chiusura’ ) === 0 || strpos( $source, ‘attr_pa_tipo-costume-da-bagno’ ) === 0 ) {
$new_terms[$source] = $all_terms;
}
}
$data[‘terms’] = $new_terms;
return $data;
}`
My problem is how can I make the search bar extract this info?
is there a plugin to do this kind of verification? or is there another way to solve this problem?
Any idea?
Thanks
I am a bit baffled at the following settings Search Plugins in WordPress admin. I am trying to work out what it actually does? The following is the instructions for this settings.
Select the plugins you would like to disable/enable on the search results page.
What results page is it referring to?
Thank you in advance for your reply.
Regards
]]>I wonder, why isn’t it possible to search for the most populair plugins or themes when one enters a search term?
For example; when I search for a popup plugin, I see popup plugins with a bad rating and a small amount of downloads first. This happens a lot of times when I search for a theme or plugin.
Why isn’t it possible to search for a term and then select ‘by popularity’, ‘amount of downloads’ or by the amount of stars?
Just a thought.
Have a great day my WordPress friends,
DutchMan
]]>strip_tags() expects parameter 1 to be string, object given in /xxx/wp-admin/includes/class-wp-plugins-list-table.php on line 214
This warning is shown five times, but everything is still working. Console doesn’t throw an error either (debug mode activated).
Any idea how to find out where the error is? It’s on a big client site, so unfortunately I can’t just deactivate all plugins and switch to standard theme.
I can’t tell when the error first occured either since I don’t use that feature on a regular basis (who does? :D)
Thanks in advance,
Simon