SELECT wpna_posts.*
FROM wpna_posts
WHERE 1=1
AND (wpna_posts.ID = ‘0’)
AND wpna_posts.post_type IN (‘post’, ‘page’, ‘attachment’, ‘portfolio’, ‘template’)
ORDER BY wpna_posts.post_date DESC
SELECT wp_posts.*
FROM wp_posts
WHERE 1=1
AND (wp_posts.ID = ‘1087’)
AND wp_posts.post_type = ‘page’
ORDER BY wp_posts.post_date DESC
this is the website with avada, where I wanna implement the plugin, and above is the main query from the search page.
http://www.yourloanguys.com/testsearchplugin/
I think I may have found the issue. I think it’s to do with the way the home page is configured , I hadn’t been testing sites using a page record as the home page, only sites showing a blog listing on the home page.
I’ve just released a new version of the plugin, could you give it a try and let me know if that fixes the issue?
Thanks,
Don
Again I tried to look for some post titles(Hello World!, test1), it couldn’t find, but in the sidebar brought some results., you can check it yourself:
http://www.yourloanguys.com/testsearchplugin/
Could you post the main query from the Query Monitor
plugin please.
SELECT wp_posts.*
FROM wp_posts
WHERE 1=1
AND (wp_posts.ID = ‘1087’)
AND wp_posts.post_type = ‘page’
ORDER BY wp_posts.post_date DESC
Okay, I think I might have found it this time. Could you try the latest version please.
It seems it works, I have to make a complex search form, i will test it and will let you know if smth will not work.
Thank you very much!!