Bonjour Mathieu
Je commence à tester cette excellente extension pour un site intranet de “base de connaissance”. J’avais 2 choses à vous partager :
1) Dans le résultat, le terme trouvé n’est pas visible. Le terme est à la fin du post et seules les quelques premières lignes du post sont affichées. Serait-il possible de centrer le résultat sur le terme trouvé avec N caractères devant et N derrière ? (si plusieurs correspondances dans le même texte, les séparer par […])
2) j’utilise aussi “User Role Editor” : j’y ai décoché “read_private_pages” pour le r?le “éditeur”. Je crée ensuite une page en privé et me loggue avec un utilisateur ayant ce r?le “éditeur”. Lorsque je lance la recherche, cela affiche “rien n’a été trouvé”, juste en-dessous “1 résultat pour votre recherche” et ensuite les premières lignes de la page trouvée, ce qui n’est pas normal. En cliquant sur le résultat, la page ne s’affiche pas (normal, le r?le “éditeur” n’a pas le droit de la voir), ouf ! Si je suis en administrateur, j’ai bien en haut “Résultat de recherche pour [ici le mot recherché], “1 résultat pour votre recherche.” et le résultat en dessous. Pourriez-vous regarder ce droit lors de l’affichage du résultat ?
Merci beaucoup pour ?a et bonne continuation !
PS : erreur 405 sur le formulaire de commentaire en bas de https://blog.internet-formation.fr/2013/10/wp-advanced-search-moteur-de-recherche-avance-pour-wordpress/
]]>You use switch_to_blog() incorrectly in your plugin. After each switch, after you are done on the blog, you must call restore_current_blog().
Using just switch_to_blog() leaves WordPress in a switched state which is not good karma and breaks other plugins.
]]>Hi
i have placed:
[advanced-search] in my editor body for test.
unfortunately, it is not working + generating an error
ols see:
https://our-sex-life.com/aha/?
thanks
]]>Hi
is there any “short code snippets” for this plugin that we can insert directly to pages?
thanks
]]>Hello,
Votre plugin est génial et permet déjà pleins de choses tout en restant simple d’installation.
J’ai cependant un soucis avec le multisite. En effet, pour un client, je fais un teste sur mon serveur en installant un multisite, qui, malheureusement est utilisé en répertoire. Je ne sais pas comme changer cela, car au final ?a sera 3 sites sur avec chacun un nom de domaine différent.
Mon soucis est, dès lors, que les tables sont incrémentées automatiquement (bd_posts, bd_1_posts, bd_2_posts), je ne peux faire mes recherches que sur une table. Est-ce que j’ai un moyen d’ajouter plusieurs tables de recherches ?
Merci d’avance pour votre réponse.
––––– ENGLISH –––––
Your plugin is awesome and can already make a lot of things with a simple installation.
I got a issue with multisite. I’m working in a client project in my own hosting server doing some test and installing a multisite which is working only in directories. I don’t know how to change that, cause at the end I will have 3 differents sites with for each other different address names.
My issu is, my tabs in the DB get an auto increment (bd_posts, bd_1_posts, bd_2_posts), and I only can make my search on only one tab. How can I do to get a search in 3 differents tabs at the same time ?
Thanks for your answer.
]]>Bonjour,
J’utilise ce plug depuis longtemps et en suis très satisfait !
Je cherche toutefois à mettre en place deux occurrences : une occurrence générale pour chercher dans toutes les pages, ce qui fonctionne bien aujourd’hui. Et une occurrence pour chercher dans une seule catégorie (recherche lancée depuis une page particulière).
Dans l’idéal, j’aimerais pouvoir utiliser plusieurs formulaires dans plusieurs pages avec la possibilité à chaque fois de placer un champ “hidden” qui listerait les catégories dans lesquelles faire la recherche.
Est-ce possible ?
Merci
]]>Hi Sir,
kindly help me out solving this issue.
Notice: Undefined index: wp_advanced_search_autocompletion_create in
/plugins/wp-advanced-search/WP-Advanced-Search-Autocompletion.php on line 221
Regards.
]]>Hello all!
I was recently using your WP Advanced Search plugin on a WordPress Multisite installation, and saw some issues with the free version of Yoast SEO (https://www.ads-software.com/plugins/wordpress-seo/). I have verified that it is the WP Advanced Search plugin that is causing my troubles. Disabling the plugin fixes the problem.
The basic problem I encountered was that, when we were filling in SEO data for the pages, Yoast was not saving the data. This was because it was thinking that the site was switched to another blog via the “switch_to_blog()” function.
Searching through all of the plugins we have on our site, I saw some use of the switch_to_blog() function within yours, but it uses it in the following manner (this snippet is taken from WP Advanced Search’s install function):
$blogids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
foreach($blogids as $blog_id) {
switch_to_blog($blog_id);
WP_Advanced_Search_install_data($wpdb->prefix.$tableName);
}
switch_to_blog($original_blog_id);
As I understand it, this is rather bad practice because, although you switch back to the original blog id after you finish your loop, the site still thinks that it is switched to another blog. Yoast uses a function “ms_is_switched()” to tell if the site is in this state and, if it is, it will not save any changes to the metadata the user has made, which was causing our previously mentioned issue. To avoid this, you should instead use the “restore_current_blog()” function.
A better solution would be the following:
$blogids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
foreach($blogids as $blog_id) {
switch_to_blog($blog_id);
WP_Advanced_Search_install_data($wpdb->prefix.$tableName);
restore_current_blog();
}
The “restore_current_blog()” function is the best solution for switching back to the main blog. Unfortunately, it shouldn’t be run outside of the loop, but should be run after each loop iteration. This will restore the current blog’s data to the site, and prevent these errors from happening.
Your plugin is great otherwise! It is simple to install and work with and, besides this one issue, it has been working great for us.
Thank you and have a great day. Please let me know if you have any other questions about my issue.
More information on this issue can be found at:
https://wordpress.stackexchange.com/questions/89113/restore-current-blog-vs-switch-to-blog
https://codex.www.ads-software.com/WPMU_Functions/restore_current_blog
Hello,
Is this plugin can separate Post/page search and woocommerce search?
When I search on the website, I don’t want found product of woocommerce.
But if I search in woocommerce, of course I want found products.
Is it possible?
Best Regards
]]>Hi –
Is it possible to get help getting this plugin to work? I added <?php WP_Advanced_Search(); ?>
to search.php but it is not doing the job…[redacted]
[Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]
Stacy
]]>Hello Mathieu … I have being trying configure this plugin according to this documentation https://wpadvancedsearch.com/docs/setup/ … but it seems like that wpas.php is not available and the register_wpas_form
function is not working … What could be the issue … is there a updated documentation.
Hello,
When I activate the plugin, I get the following error message: “L’extension a généré 186 caractères d’affichage inattendu lors de l’activation. Si vous voyez un message ? headers already sent ? (Les en-têtes ont déjà été envoyés), des problèmes avec les flux de syndication ou d’autres erreurs, essayez de désactiver ou enlever cette extension.”
In the server log, I get this also: “PHP Notice: Undefined variable: instance in /<server_path>/htdocs/wp-content/plugins/wp-advanced-search/WP-Advanced-Search.php on line 188
Not sure what to do… I deactivate the plugin in the meanwhile.
Thank you for your help.
JB
Hi,
I download a plugin named enable Vcf to upload .vcf. Now ? can upload vcf but ? cannot download it. When I try to download it error in the below shown in the page;
Trying to get property of non-object in /var/www/vhosts/gun.av.tr/httpdocs/wp-content/themes/gunandpartners/wp-advanced-search/wpas.php on line 132
Please can you help me how can I fix this?
Thanks
]]>Hello,
I am using WP Advanced Search 3.2.2 on a site currently in dev.
Since a few days (after many plugins updates prior to WP 4.7 update), there are 2 error messages:
Undefined variable: noticeClass in /srv/data/web/vhosts/jbhuet.fr/htdocs/wp-content/plugins/wp-advanced-search/WP-Advanced-Search-ImportExport.php on line 142
Undefined variable: message in /srv/data/web/vhosts/jbhuet.fr/htdocs/wp-content/plugins/wp-advanced-search/WP-Advanced-Search-ImportExport.php on line 143
Any idea why?
Thank you for your help.
Regards,
JB
My base language is Dutch but even if I switch to English the plugin still shows in French.
What am I doing wrong ?
Bonjour,
Je voudrais savoir si c’est possible que le moteur de recherche cherche aussi dans les étiquettes.
Merci
i followed all steps and after that it’s not working, i changed search.php code as you mentioned but when i write anything in search form on my sidebar it do not work, help me out its urgent
]]>https://developer.www.ads-software.com/plugins/wordpress-org/plugin-assets/
Your screenshots total size is: 2.2MB
If you move your screenshots to the /assets folder in SVN then that will reduce the total size of your plugin by 2.2MB. Total size of your plugin before moving screenshots = 3.5MB. Total size of your plugin after moving screenshots to the SVN /assets folder = 1.28MB
Bonjour et bravo pour ce super plugin
j’utlise l’annuaire sabai – les fiches annuaire sont bien trouvées mais la direction proposée quand on clique sur le resultat de recherche integre “blog” et de ce fait arrive sur un 404. quelle serait la solution ?
]]>Bonjour,
Je voudrais savoir s’il est possible de renseigner plusieurs tables de recherche dans le plugin ?
J’aimerais que le moteur recherche dans du contenu qui ne se trouve pas dans wp_posts. J’ai essayé de renseigner une deuxième table en séparant d’une virgule + espace, mais cela n’a pas fonctionné.
Une modification dans le code du plugin peut-elle permettre ?a ?
Merci d’avance pour votre réponse.
]]>Hi,
I would like to know, if we can limit the result only to registred users, or to spefic group of members ?
I don’t want to put the Advanced Search Widget on a page, but it is free to access to everybody. But anytime that somebody type something and start the search, i need to block the result. The result of the search have to be displayed only to registred & approved users of the website.
Thank you for your help.
best regards
WC98
]]>On the search results page, URLs to posts/page use the guid, e.g. /?=4532
It would be preferred if instead these links followed the site’s permalink configured, e.g., /%postname%/
Other than this, an excellent plugin, thank you / merci!
]]>Hello
This plugin seems to be almost exactly what I was looking for here: https://www.ads-software.com/support/topic/neat-search-results?replies=1
Especially when I look at this image of yours which finally someone put the featured image on the same row as the post content: https://i.imgur.com/LiUWY2Z.png
The result above is what I want.
So I installed it and the only thing I changed was this section:
https://i.imgur.com/LiUWY2Z.png
Simply doesn’t seem to apply and the search at all.
https://i.imgur.com/5geEdXg.png
What am I doing wrong?
Cheers
]]>Plugin description in English will help a lot.
]]>Hi,
I have this plugin working on my site but would to add a value to search all taxonomy terms. Is this possible?
Thanks,
James
]]>Bonjour,
Je viens de faire la mise à jour vers la version 2.7.
Désormais, lorsque je fais une recherche sur le site, les révisions des articles/pages sont affichées dans les résultats, ce qui n’était pas le cas avant.
Les articles et pages non publiés sont également listés dans les résultats de recherche.
Exemple ici : https://www.ascodocpsy.org/?s=actualit%C3%A9s&submit=Recherche
Est-ce un bug connu ? Comment éviter cela ?
Merci pour votre aide.
]]>Hi
Can you confirm this does not work for multisite?
I tried this out and I can specify a table in the network, but I cannot select another in each site (dropdown not enabled). Since each site uses its own table, I assume this means that it can’t be used in a network.
Note that even so I’m not sure I had this working since the search was returning nothing even if I put in default text for when it doesn’t find a result.
Also, I couldn’t understand the setting “Attribute “name” field search”
Regards
H
Is there a way to be able to include keyword stemming with the plugin?
https://www.intellogist.com/wiki/Stemming
Cheers
Luke
1) where I can surf into a live demo of this plugin?
2) do you think it could be a good idea to use this plugin for this search engine? https://www.whichtransfers.com
I would like that every search result will be a different custom post, example:
https://www.whichtransfers.com/transfers/?desired_currency=EUR&direction=ar&airport=10571&location=10076&arrival_date=2015-01-31&arr_hours=12&arr_minutes=00&departure_date=&dept_hours=12&dept_minutes=00&adults=2&children=0&infants=0
J’ai installé le plugin en suivant la procédure mais lorsque je lance une recherche ce message d’erreur s’affiche (mais trouve quand même des résultats) :
Warning: include(class.inc/stopwords/stopwords-WPLANG.php): failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/marion/cib/wp-content/plugins/wp-advanced-search/WP-Advanced-Search-Function.php on line 70
Warning: include(): Failed opening ‘class.inc/stopwords/stopwords-WPLANG.php’ for inclusion (include_path=’.:/Applications/XAMPP/xamppfiles/lib/php’) in /Applications/XAMPP/xamppfiles/htdocs/marion/cib/wp-content/plugins/wp-advanced-search/WP-Advanced-Search-Function.php on line 70
Résultats de la recherche : evolution
1
galerie évolution
Publié le 23 septembre 2014 par admin Aucun commentaire
Pourriez-vous m’aider ?
]]>