I will try to explain the problem that occurred. Useful info: The site is up to date (plugins, WordPress, PHP). I use a premium theme and to do the translation I use the WPML.
I have applied 2 functions in my child theme, that let me use categorize my pages.
I am aware that this functionality is only for the blog system of WordPress, but currently is something that I can use to add multiple pages under one category and get the results.
The code is this:
The problem begins in the translated version of the site.
As I referred to the top, I use WPML to make the translation.
So when I change the site in its English version and do a wp query to fetch some result for a specific category, I have multiple entries that appear in the breadcrumb.
For example.
Home > category1 > category1 > category1 > category1
I noticed that the category1 duplication is based on how many results the query will fetch.
In other words, if I have category1 applied in 9 pages, then the breadcrumb will appear like this:
Home > category1 > category1 > category1 > category1 > category1 >
category1 > category1 > category1 > category1.
I try to figure out a way to debug it. I also contacted the theme author and the WPML but I see a ping-pong game, between the responsibility.
So I try to debug it myself if I can.
- Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
- Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
- Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.
Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com