Searching Issue
Hi,
First of thanks for the great plugin – it has been working for me perfectly 🙂
Just a question – i have a quiz with about 70 questions, and when i list them in the backend, it shows as 2 pages long. If i am searching for a particular reference (to update a question) and i put in the search criteria, it only searches the first page. If my search criteria is not within the first page, it just displays an arrow to next page. When i click the arrow, it shows me ALL questions on page 2, but search field is no longer visible. Is this a bug?
Also it would be good if the search would also search url links within the questions/Extra. I had an issue where i had added in a link to an external site for reference in an answer, and the third party changed the link. This left me with a 404 error on the SEO report. I had to work through all 70 questions to find the appropriate link to update it. If the Search included this then it would make life a lot easier.
Thanks again for a great plugin 🙂
Andy
Hi Andy,
that search feature is very basic, being just a simple “filter” of what’s currently on the page – only looking at the question title. I added it in because so many people requested it even though it’s essentially the same as the browsers search feature haha. Maybe I should rename it to filter instead of search to help avoid some confusion.
Unfortunately, there I have no plans to expand on it – at least not anytime soon as even native WordPress search doesn’t check for meta fields. It would need to be a completely custom search function to be able to do what you need.
The reason you do not see the search field on the second page is because the search field only shows if you have at least 25 questions on the page.
Some information you may find helpful
By default, HD Quiz will show 50 questions per-page in the admin field. You can update this to, for example, 100, by adding
define('HDQ_PER_PAGE', 100);
to your theme’s functions.php file. Just make sure to back up the file before making any changes.
However, the more useful information for your use case is to use your browser’s “view source” feature. This will show you all the rendered HTML on your page. You can then search for the URL to more easily find what question it is attached to. Definitely easier than looking at each question one-by-one at least 🙂
No worries – its not a deal breaker – i’ll make those changes to see them all.
Thanks for a good plugin 🙂
Cheers
Andy
This thread has either been marked as complete or has been automatically closed due to inactivity. Please consider opening a new support thread for help.