Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterHi!
Please check out the relevant documentation part: http://wp-dreams.com/demo/related-posts-pro/docs/#getting_started_placing_the_instance_to_the_frontend
It will most likely answer your question.
Ernest Marcinko
KeymasterHi!
The custom taxonomy term class is programatically limited to 50 terms per taxonomy. You can unlock this limit by opening the \ajax-search-pro\backend\settings\class\customtaxonomyterm.class.php and go to line 110 where you should see this:
[php]$terms[$taxonomy] = array_slice($terms[$taxonomy], 0, 50, true);[/php]
change that to:
[php]$terms[$taxonomy] = array_slice($terms[$taxonomy], 0, 500, true);[/php]
and it should show ever category now.February 2, 2015 at 11:29 am in reply to: Ajax Search pro – incorrect woocommerce product links in search result #3731Ernest Marcinko
KeymasterHi!
I did a bit of a research, and this might be a wordpress related bug. The search uses the general get_permalink() function to return the correct url, but for some reason it fails. Before touching anything you should try these steps:
- Save the permalink settings again on the wordpress settings panel
- Deactivate/activate WooCommerce and Ajax Search Pro
This should refresh the permalink cache, and it might help.
If not, then another solution is to connect a function to the results link filter and add the “produkt” part manually:
If the upper mentioned solutions are not working, then add the following code to your themes functions.php file. It will try to fix the url.
[php]
add_filter( "asp_results", "asp_fix_woocommerce_link", 1, 1 );function asp_fix_woocommerce_link( $results ) {
$home_url = home_url();if (strpos($home_url, "hundbutik") === false) {
foreach ($results as $k=>$v) {
$results[$k]->link = str_replace("hundbutik/", "hundbutik/produkt/", $results[$k]->link);
}
}return $results;
}
[/php]January 28, 2015 at 8:38 am in reply to: The search wheel is spinning, but nothing happens.Why?Worked with default theme) #3726Ernest Marcinko
KeymasterHi!
It looks like the z-index of the sidebar is much higher than the results box. With a simple custom css you can fix this:
[html]
.vertical.ajaxsearchpro {
z-index: 99999999999 !important;
}
[/html]
You can add this to the search plugins Theme Options->Custom CSS or any of the theme stylesheet files.Ernest Marcinko
KeymasterThank you very much, and have a nice day!
If you want, you can leave a rating on the plugin on your codecanyon downloads page, it helps me more than anything.
Ernest Marcinko
KeymasterHi!
The sorting is indeed a bug, just confirmed it on my test servers. Luckily there is a quick solution in your case. If you open up wp-content/plugins/ajax-search-pro/includes/search_content.class.php and go to lines 545-547, where you should see this:
[php]
if (count($all_pageposts)>0) {
usort($all_pageposts, array($this, ‘compare_by_rp’));
}
[/php]
Please remove of comment out these lines and the date sorting should work immediately. I’ve added this to the known bug list so the soon released next version will contain a bugfix.I’ve also installed the recent qtranslate to another test server and the code is indeed not working for some reason. After more digging I’ve found that there is a compatibility issue with qtranslate after certain wordpress versions including the function I used. So I figured out another way, which is working on my end.
Try this code instead of the one I provided before:
[php]
add_filter( "asp_results", "asp_qt_correct_url", 1, 1 );function asp_qt_correct_url( $results ) {
foreach ($results as $k=>$v) {
// Correct the url manually
$current_home = trailingslashit(home_url()) . qtrans_getLanguage();
$results[$k]->link = str_replace(home_url(), $current_home, $results[$k]->link);
}
return $results;
}
[/php]I hope if will work on your side as well.
Ernest Marcinko
KeymasterHi!
Try to disable the relevace sorting on the “Relevance Options” panel. The date/title sorting is only secondary if the relevance is enabled.
I googled for similar issues, and there is a known bug with one of the qtranslates filters, where it does not return the correct url if the permalinks are enabled.
The best way around this is to apply a filter on the search results, like this:
[php]
add_filter( "asp_results", "asp_qt_correct_url", 1, 1 );function asp_qt_correct_url( $results ) {
foreach ($results as $k=>$v) {
// Correct the url manually
$results[$k]->link = qtrans_convertURL( $results[$k]->link );
}
return $results;
}
[/php]Put the code above to your themes functions.php file. If the qtranslate documentation is correct, this should solve the issue.
Ernest Marcinko
KeymasterHi!
Try to delete the Lite version in the plugin manager and deactivate/activate the pro version again. This sounds like a 3rd party javascript issue. You can also try to temporary disable all the other plugins and see if it works then. If so, then it’s definitely a 3rd party issue. Let me know how it goes.
Could you also provide temporary admin/ftp access? I would like to check if there are any errors on the console. You can add access by editing your initial post in this topic.
Ernest Marcinko
KeymasterWell, looks like these options are working for me. I was able to change the color, font size, everything.
I’m using google chrome as browser. Are you sure you tried to change the fonts on the Theme options->Typography panel? http://i.imgur.com/ONq6lDK.png
May I ask what browser are you using?Ernest Marcinko
KeymasterCould you please provide temporary admin access to check on those options?
You can edit your first post in this topic for that 😉
Ernest Marcinko
Keymaster- Are you using any kind of content builder, like visual composer?
- Is your actual post content text, or are there any shortcodes?
- Are you searching custom post types?
Based on the screenshot there is no post content available or it’s stored in another field.
Ernest Marcinko
KeymasterI think I see what you mean now. You want the bigger result height.
There is an option for that as well.If you go to the same panel Theme options -> Vertical results then there is an option called One result item height, which is currently 70 pixels: https://i.imgur.com/4UwwnoG.png
If you increase that value, the results will show more text 😉
Ernest Marcinko
KeymasterHi!
On the Layout options -> Results Layout panel there is an option called Description length where you can enter the length in characters: http://i.imgur.com/1NTThxZ.png
You can modify the result layout on the Theme Options -> Vertical results panel. There are many options, so you can modify every detail of the theme: http://i.imgur.com/2TN5ux5.png
Ernest Marcinko
KeymasterHi!
Could you please re-upload the screenshot, it looks like it doesn’t get through.
Are you using any kind of content builder, like visual composer?
Is your actual post content text, or are there any shortcodes?If so, then try to enable the “Run shortcodes found in post content” option and disable the “Strip shortcodes from post content” on the “Advanced options” panel.
And additionally modify the “HTML Tags exclude from stripping content” option on the same panel to this value:
[html]<span><a><abbr><b><p><div>[/html]Screenshot: https://i.imgur.com/3SZwHxZ.png
This might ensure that no extra content is stripped away from the results.
Ernest Marcinko
KeymasterPlease check your configuration. You had some custom field values set to sample values: http://i.imgur.com/UoUXQgH.png
So the search probably tries to match these sample values, but they don’t exist.Also check the documentation first on this, it’s explained there with details: http://wp-dreams.com/demo/wp-ajax-search-pro3/docs/#frontend_search_settings_creating_custom_selectors_from_custom_fields
-
AuthorPosts