Work@Microsoft    Study@UW.edu    Live@Seattle

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

How to make JetPack Top Post Widget Compatible with the qTranslate-X plugin in WordPress
5 (100%) 1 vote

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.

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.

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

The problem is gone thereafter.

 


http://scottge.net

I’m a Program Manager at Microsoft (MSFT), and a part-time computer science master student in University of Washington (UW).

Leave a Comment

Your email address will not be published. Required fields are marked *

Loading...
ScottGe.net