Tagged: ajax search, portfolio tags, relevanssi, search, SearchWP
-
AuthorPosts
-
February 19, 2015 at 6:32 pm #399131
Hi
I’m hoping you can help with a plugin conflict I’m having using the Enfold theme.
I’m using SearchWP to implement an advanced search for a portfolio website I’m developing. I’ve added your code in the function.php for ajax display which works really well but unfortunately, with the plugin activated, portfolio tag archives are not displaying when a tag is selected. I have the same issue using Relevanssi.
Any thoughts?
The problem doesn’t exist when using the Search Everything plugin so this could be a solution. Do you have a code I can add to function.php to implement Ajax results using Search Everything?
Thanks in advance.
I look forward to hearing from you.
Edward.
February 19, 2015 at 9:03 pm #399243Hi AREA10STUDIO!
Send us a link to your page and paste the code your using here and we’ll take a look.
Regards,
ElliottFebruary 19, 2015 at 9:35 pm #399267This reply has been marked as private.February 20, 2015 at 5:37 pm #399767Hi!
Hmm, not sure what it could be. Sorry, have you tried contacting the plugin authors?
Best regards,
ElliottFebruary 20, 2015 at 5:42 pm #399770Thanks Eliot,
I have but unfortunately they aren’t much help.
Can you recommend a functions code I could try to get Ajax search results using the ‘Search Everything’ plugin? That would be very helpful as I don’t have the issue using that plugin.
Appreciate your help.
Edward
February 24, 2015 at 10:51 am #401277Hi!
We would like to check the page but it requires us to login. Please post the login details here so that we can check it. For for more info, please contact the plugin author.
Regards,
IsmaelFebruary 24, 2015 at 11:44 am #401299This reply has been marked as private.February 25, 2015 at 9:53 am #401923Hey!
Still not sure why the tag pages aren’t working. What happens when you delete the Ultimate Tag Cloud Widget plugin?
Cheers!
IsmaelJune 4, 2015 at 3:51 am #454204I too am using Search Everything, and wondering if there was a suggested code addition to function.php that worked.
The search results displaying on the page after hitting enter are excluding set pages, but the ajax box is still displaying the pages.June 4, 2015 at 3:58 am #454205I found a solution that worked for me on wordpress.org/support/topic/excluding-page-from-search (Thanks Todd!)
For me I added this to function.php (where 1234 is your page ID)function mySearchFilter($query) {
if ($query->is_search) {
$excludeId = 1234;
$query->set(‘post__not_in’, array($excludeId));
}
return $query;
}
add_filter(‘pre_get_posts’,’mySearchFilter’);- This reply was modified 9 years, 4 months ago by Aaron.
June 4, 2015 at 3:21 pm #454508Hey!
I’m not sure if you solved it or not, do you still have problems with the ajax results? Thanks for sharing the solution by the way.
Best regards,
RikardJune 4, 2015 at 4:51 pm #454598Yes it is solved, thanks Rikard.
The ajax window results are mirroring the on-page results with the addition of the code mentioned in #454205
SearchEverything works to remove selected pages for the on-page results, but not the ajax window (it still displays unwanted pages).
The code snippet fixes this. Voila! -
AuthorPosts
- The topic ‘Advanced Search Problem’ is closed to new replies.