is the plugin compatible with Avada theme
-
I am trying to use the plugin with Avada theme, but it is not working.
-
Hi @norayr10, I do not have a copy of Avada theme for testing so couldn’t say unfortunately.
Have you been through the trouble-shooting steps described in the FAQ?
Particularly, have you tried switching to a different theme? If that fixes the issue then it’s likely the 2 are not compatible.
Thanks,
DonYes, I have tried it, but it didn’t work, the plugin is really what I need and it is very sad, that didn’t work.And Avada theme is really popular, I thought every plugin will be compatible with it.
Okay, well if you switched to a different theme and it still didn’t work then it’s probably unrelated from the theme.
What’s the problem you’re seeing? e.g. are you unable to set up a search form in the admin area? Or are you unable to see the search form on the site? Or have you set up a form but not getting any search results?
Have you tried the other steps that I listed at that link? De-activating other plugins, removing search fields etc.
-
This reply was modified 5 years ago by
don benjamin.
Yes I have tried everything. I was trying to search via custom field or via main fields of the posts. For example I was setting up a custom field, with number type, and putting there for example 200 in the post. Then setting up the form to find the post with the custom field named for example test with number 200(exact match) and there were no results. And the main fields, I was trying to search by the titles, but the form didn’t let me set up only titles, it was all the time switching to all, but even after that the only post it was able to find, was main page, actually the only page. May be there is an option somewhere, where the plugin is set up to look only inside the pages, or I do not know..
Hi,
It sounds like there’s a couple of issues there.
The most important I’d guess (for your use) is that it’s only showing posts of type
page
in the results.If you set up a search form with no fields and click search you should get a list of every post that the plugin could possibly show. Have you tried this? I’m guessing in your case it would only show that single “Main Page” post.
This means somewhere else something is restricting the results to only show pages. The plugin doesn’t behave this way on a fresh WordPress install so it must be something custom on your site. This could be in your theme, one of the other plugins you have installed or any custom php you’ve added.
If you’ve switched themes already and still only saw that one page, then it’s probably not the theme. If you haven’t specifically run that test, then we could redo that now (preferably to one of the wordpress default themes).
If you could try de-activating all other plugins on the site and rerunning the test (submitting a blank search form) I would hope that will start to show other records. If it does then it’s an incompatibility with one of the other plugins so it’s just a matter of re-enabling them one by one, retesting each time to see when it breaks.
If it still shows no records with a default wordpress theme and no other plugins installed, it will be more tricky to track down. Do you have any custom php code in the site, if so deactivating that may be the key.
Thanks,
Don-
This reply was modified 5 years ago by
don benjamin.
-
This reply was modified 5 years ago by
don benjamin.
I have no custom code and it seems I have done everything you have described, but i will try it again, to be sure and will be back with results. The idea of the plugin is really great and it seems there is no other good option.
Hi @norayr10,
Apologies, I think I may have found the issue, there is some code in the default wordpress search logic which restricts searches to only show
posts
,pages
andattachments
. I’m guessing most of your content is some custompost_type
?I’m not sure the best way to deal with this in the main plugin so I’m not going to push a fix out immediately, but I’ve written a second plugin to patch it up for now. Could you try installing this one (alongside the main plugin) and see if it fixes the issue?
https://webhammer.co.uk/static/wp-custom-fields-search-post-types-hack.php
Thanks,
Don-
This reply was modified 5 years ago by
don benjamin.
I couldn’t install the patch.
I will do a test from the beggining. So I have got a post wth title test1, I have got a search form which is set to look for the core post field and I set it to look for the titles, but after the save and reopening the preset it shows ALL, not the Title. This is the first bug. But Let’s continue with all, I will try to search test1, the title of the plugin.And the answer is “Couldn’t find what you’re looking for!”. I will try to push the search button without any text.And again: “Couldn’t find what you’re looking for!”.
Heres is the post: https://www.yourloanguys.com/test1/.
And here is the search form page: https://www.yourloanguys.com/testsearchplugini would like you to try this yourself, to see if I have done everything right and than I will try with default theme.
By the way there is no custom code, no ther plugins, it is just the avada them finance demo with the default plugins.thank you very much.
Hi, yes I will look into the title saving issue. What browser are you using?
I can’t really tell whether it’s configured correctly at this end. It looks fine to me, but a lot of the details are not visible.
You can actually create a form with no fields (so it’s just a search button) which would rule out the chance of that field being the problem, but yes I think submitting an empty form would generally do the same job.
Do you know what the post_type of “test1” is? It looks like a fresh install of wordpress will restrict searches to only post_types page, post and attachment. So if your post is a different type that would explain why it doesn’t show up. The plugin I posted above should fix this issue though. What do you mean when you said you couldn’t install it?
I use Chrome, test1 is simple post, not custom one. Trying to install the plugin gives this error: “Unpacking the package…
The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signatur”
I’ve just released a version which should fix the problem with the “title” selection reverting to “all” when you re-edit an input.
This also incorporated the changes from the extra plugin I posted above (you need to configure this in the form settings, I’ve added this to the FAQ, also posted above.) This wouldn’t help though if that’s just a normal
post_type
post
-
This reply was modified 5 years ago by
don benjamin.
Hello, the title issue is solved, but the plugin doesn’t work again.
I tried to test it with my another website. It works with Betheme, another very popular wordpress theme, but it again didn’t work. here you can check it: https://primafinance.am/testsearchplugin.Hi @norayr10,
Unfortunately Betheme is also not available without paying for it. I suspect anyway that the theme is probably not the problem ; if the theme were the problem then the search would work correctly when you switch to one of the WordPress default themes.
There is a plugin called “Query Monitor” which monitors all the queries used to render a page for debugging. If you install this and tell me what the “Main Query” is on the search results page this may give us a clue as to what’s happening.
It’s here: https://www.ads-software.com/plugins/query-monitor/
Once installed and activated it should add new debug information to the front end of the site for logged in users. On my site it adds some text to the top menu bar, saying something like: “0.15S 7,716kB 0.0064S 18Q” showing the page render time, size of the page, number of queries. If you click on this it should pop up a query monitor at the bottom of the screen, then selecting “Queries” in the query monitor should pull up every query used to render the page. One of the queries in the list will be marked as the “Main Query”, if you could copy that query and paste it here it may tell us something.
It should look something like:
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE...
-
This reply was modified 5 years ago by
don benjamin.
-
This reply was modified 5 years ago by
don benjamin.
-
This reply was modified 5 years ago by
don benjamin.
SELECT wpna_posts.*
FROM wpna_posts
WHERE 1=1
AND (wpna_posts.ID = ‘229’)
AND wpna_posts.post_type = ‘page’
ORDER BY wpna_posts.post_date DESChere it is
Hi,
I think I can see what’s wrong there. Is this from the page at
https://primafinance.am/primafin321/?wpcfs=preset-1 ?Could you show me what the query is at:
https://primafinance.am/?wpcfs=preset-1
Thanks
-
This reply was modified 5 years ago by
don benjamin.
-
This reply was modified 5 years ago by
- The topic ‘is the plugin compatible with Avada theme’ is closed to new replies.