Forum Replies Created
-
AuthorPosts
-
Ernest Marcinko
KeymasterHi!
So I guess you only need to add the proper filter for the link and the description. The title is working, because it’s using the get_the_title($pageposts[$k]->id); function, and I guess qtranslate already applies a filter on the get_the_title funtion.
What you need, is to find the proper qtranslate filter for the content and the url. What I have found out from the qtranslate source code, is this:- qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage -> content filter
- qtrans_convertURL -> url filter
Okay, now all you need to do is add these filters to the search source code:
- Open up the ajax-search-pro/search.php
- go to line 269 and make a new line
- add the following lines:
`apply_filters(‘qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage’, $_content);
apply_filters(‘qtrans_convertURL’, $pageposts[$k]->link);`
If the permalink is still not good, then try to modify the second line to: apply_filters(‘the_permalink’, $pageposts[$k]->link);
Let me know how it goes!-
This reply was modified 13 years ago by
Ernest Marcinko.
-
This reply was modified 12 years, 11 months ago by
Ernest Marcinko.
Ernest Marcinko
KeymasterHi!
Can you please provide me the password to see the site? You can edit the topic and add it to the private details if you want it to remain private.
Ernest Marcinko
KeymasterHi!
Thank you for using this support form, you are the first one! 🙂
I have great news, I have found the source of the problem and fixed it. The issue was, that the
http://www.sedaro.de/wp-content/plugins/wpshopgermany/views/global.css
file had the following declaration:.image { display: none; }I used the same class selector in the search, so it did not display. I have added an extra line to the search css file:
wp-content\plugins\ajax-search-pro\css\style.css.php
line 197: display: block !important;Thank you for the detailed information, it should work fine now 🙂
-
AuthorPosts