How to make JetPack Top Post Widget Compatible with the qTranslate-X plugin in WordPress

I have spent hours on this problem.   I finally figured out how to make the JetPack Top Post Widget work with the qTranslate-X plugin in my WordPress site.

qTranslate-X is one of the most popular WordPress plugins that enables multilingual content on a WordPress site.  I use it to enable the Chinese version of my blog content.  It works like a charm, except for my ‘Top Posts’ widget powered by JetPack.

image

As you can see, both English and Chinese titles of the post ‘The Ultimate .NET Naming Convention’ are displayed in the Top Posts list.  It appears that JetPack is not very compatible with qTranslate-X.

After several hours’ research, I finally found the solution:

First, you need to go to the Settings page of qTranslate-X, and switch to the Integration tab.

image

Under the Integration tab, you will find a setting called ‘Custom Filters’.  Enter ‘jetpack_widget_get_top_posts’ and save the change.

image

The problem is gone thereafter.

image

Leave a Reply