跳过导航

標籤: 

本主题包含 0 則回覆 ,有 1 嗓音 。

最后由 lucap-5 9 months, 1 weeks前 更新。

协助者:: Lauren.

作者 文章
15 5 月, 2024 于 6:21 下午 #15632027

lucap-5

I have a search page that shows some products and there is a filter. I have added the following code in order to list the results number:

[wpv-found-count] [wpml-string context='RESULTS']RESULTS[/wpml-string]

Is there a way to change the word RESULTS to RESULT when there is only 1 result?

Solution: WPML only handles the translations, so you would need a function to count the results and then display your desired content.