Skip to content
PolylangPolylang
Menu
  • Home
  • Products
  • Blog
  • Support
  • Account

Author: Frédéric

Don’t override query vars with query_posts arguments

Frédéric June 12, 2014April 11, 2016

Quite often, i find in themes custom queries to customize the content displayed on a page. These themes use either ‘query_posts’ or ‘WP_Query’ to achieve that. For example, the code below allows to exclude posts of some categories from homepage. The author of this code took…

Read more

Plugins and themes compatibility, Tips and tricks

Fatal error: Call to a member function… on a non-object in…

Frédéric May 30, 2014April 11, 2016

With the time, more and more plugins and themes intend to be multilingual compatible. As WPML is the most widely used plugin, they implement this multilingual compatibility on top of WPML. What’s fine is that Polylang mimics WPML by implementing the WPML documented API and…

Read more

Plugins and themes compatibility, Tips and tricks

Incorrect usage of wp_nav_menu

Frédéric April 10, 2014April 11, 2016

Using the WordPress navigation menus is quite straightforward. First a theme location is registered. Here is an example taken from Twenty Twelve: Second, the navigation menu is displayed with ‘wp_nav_menu’. Here again is an example taken from Twenty Twelve: The function accepts quite a lot…

Read more

Plugins and themes compatibility, Tips and tricks

How to switch from WPML to Polylang?

Frédéric December 29, 2013May 16, 2019

A few Polylang users asked how to switch from WPML. That’s pretty easy to do manually but it is quite boring to do if there are tons of posts to migrate (you would have to set all languages and translations manually). Thus I wrote a…

Read more

Tips and tricks

Polylang and YARPP

Frédéric May 3, 2013April 11, 2016

Yet Another Related Posts Plugin is probably the most popular related posts plugin for WordPress. And since Polylang 1.0, both plugins work together! Step 1: Go to YARPP settings page and in the “Relatedness” options metabox, choose ‘require at least one language in common’ for…

Read more

Plugins and themes compatibility, Tips and tricks

A multilingual custom header image

Frédéric May 3, 2013April 11, 2016

Some themes (Twenty Twelve, Responsive…) use the builtin WordPress custom header image. That’s a nice feature, but what if you include text in this header image? You will need one image per language! It is very easy to obtain thanks to the wpml-config.xml file. Step…

Read more

Tips and tricks

Posts navigation

Newer posts
  • Privacy policy
  • Terms of sale
  • Jobs
© WP SYNTEX - 2025