Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › upgrade from free – shortcode issue
This topic contains 5 replies, has 2 voices, and was last updated by Peter Balazs BePe 9 years, 3 months ago.
- AuthorPosts
- August 28, 2014 at 9:17 am #2307
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 #2308Hi!
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.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 28, 2014 at 10:55 am #2313Thank 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 #2315I disabled autocomplete and stats, but still no results.
August 28, 2014 at 11:24 am #2316I 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?
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
August 29, 2014 at 9:19 am #2331Hello,
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.