Bricks version: 1.5.2
Hi, when using Bricks Builder with TranslatePress, I get no (or minimal) search results in the secondary language. Main language works OK, it appears to show the same results as without Bricks. For other languages the search only shows results which have matching URL slug with the search term. The slug has to be a 1:1 exact match with the search term.
The slug, is of course too, translated with TranslatePress. This seems to be the only piece of translations that WP search appears to see, when Bricks is in use. No other search results are shown. The WP search acts differently for the main language as for other languages when Bricks is activated.
I reproduced the issue by installing a fresh WordPress with only TranslatePress. No issues, translated content can be searched (and found) in 2nd language. As soon as I install Bricks, the search works normally only when browsing the site in the main language, but second language is missing more than 90% of results.
My temporary workaround for now has been to use the Relevanssi plugin which includes post tags in the search. This seems to work for pages/products/articles with Bricks + TranslatePress, but is of course not an sustainable option, as I’d have to enter the whole content (from Bricks) as tags. If there’s a trick or treat I could use here, I’d be super thankful.
EDIT: I have tried, with no results:
- using the “&trp-form-language=fi” parameter in the URL
- A fresh WP install with only TP (and Bricks and TP)
- Deactivating ALL plugins except Bricks and TP
- Asking for help from TranslatePress, but they say it’s a problem with Bricks since it works without Bricks
- I have enabled (and re-enabled) “Query Bricks data in search results” in Bricks settings
- Several search enhancement plugins, Relevanssi being the only which seems to help a tiny bit
SCREENSHOTS:
2nd language search without Bricks.
Search results don’t show up entirely, but Muki is the title of the product I was looking for and can be seen as a result in the bottom of the screenshot. The search works and finds results from post title and content.
2nd language search with Bricks. 0 results. Doesn’t find results from post title or content.
Further details:
WP Version: 6.0.2
TranslatePress - Multilingual: Version 2.3.7
TranslatePress - Business: Version 1.2.2
Site Language: en_US
Translated languages: fi (or any)
Permalink structure: /%postname%/