- This topic has 5 replies, 2 voices, and was last updated 10 years ago by Peter Balazs BePe.
-
AuthorPosts
-
August 28, 2014 at 9:17 am #2307Peter Balazs BePeParticipant
Dear Support,
As a pet-project, I’ve created a WP network where I prepopulated a few dozen blogs with the shortcode of the free version searchform: [wpdreams_ajaxsearchlite]
After i purchased the pro version, I noticed that I have to redo the same for the shortcode from the pro version.
Is there a shortcode override (probably in php) that I can add to the functions.php that will accept and process the shortcode from the free version?Thanks in advance!
Sincerely,
PeterBAugust 28, 2014 at 9:22 am #2308Ernest MarcinkoKeymasterHi!
Try the following:
function asp_mimic_shortcode( $atts ) { return do_shortcode('[wpdreams_ajaxsearchpro id=1]'); } add_shortcode('wpdreams_ajaxsearchlite', 'asp_mimic_shortcode');
You might have to change the id, but I think this should work.
August 28, 2014 at 10:55 am #2313Peter Balazs BePeParticipantThank you, it worked. 🙂 The search forms are displayed on every blog 🙂
However, every search returns “no result” 🙁
Also, I found these in the logs:
[28-Aug-2014 10:49:48 UTC] WordPress database error Table ‘babelfis_wp.bf_19_ajaxsearchpro_statistics’ doesn’t exist for query SELECT keyword FROM bf_19_ajaxsearchpro_statistics WHERE keyword LIKE ‘napoli%’ ORDER BY num desc made by do_action(‘ASP_ajaxsearchpro_autocomplete’), call_user_func_array, ajaxsearchpro_autocomplete
[28-Aug-2014 10:49:49 UTC] WordPress database error Table ‘babelfis_wp.bf_19_ajaxsearchpro’ doesn’t exist for query SELECT * FROM bf_19_ajaxsearchpro WHERE id=1 made by do_action(‘ASP_ajaxsearchpro_autocomplete’), call_user_func_array, ajaxsearchpro_autocomplete
[28-Aug-2014 10:49:49 UTC] WordPress database error Table ‘babelfis_wp.bf_19_ajaxsearchpro_statistics’ doesn’t exist for query SELECT keyword FROM bf_19_ajaxsearchpro_statistics WHERE keyword LIKE ‘napoli%’ ORDER BY num desc made by do_action(‘ASP_ajaxsearchpro_autocomplete’), call_user_func_array, ajaxsearchpro_autocompleteCan it be the reason for results not showing up?
I’ve run errorcheck, index rebuilding, and read a few topics in the support forum, but could not figure it out…Cheers,
PeterAugust 28, 2014 at 11:13 am #2315Peter Balazs BePeParticipantI disabled autocomplete and stats, but still no results.
August 28, 2014 at 11:24 am #2316Ernest MarcinkoKeymasterI don’t think that’s the problem. Are these multisite sites or each one is an individual wordpress installation?
Since the search is returning something, it means that it’s most likely a configuration issue.
What type of content are you searching? If you create a new search form and try that on one of the sites, is it working?
August 29, 2014 at 9:19 am #2331Peter Balazs BePeParticipantHello,
I am searching in normal posts and pages.
Also thanks for the hint, this way I’ve found a workaround – creating a new form for each blog and assigning the relevant blog under multisite to the form.However, not all blogs are listed in the left column on the multisite tab.
Is there a display limit hardcoded somewhere?Cheers,
Peter -
AuthorPosts
- You must be logged in to reply to this topic.