CHECKING STATUS
I AM LISTENING TO
|

WordPress WPML: Custom SELECT to get any translated content by language code

20. April 2014
.SHARE

Table of Contents

WPML for WordPress is a powerful plugin to build a multi-language setup. But it still comes short in some areas, especially when it comes to a custom integration into plugins or when using custom post-types.

Normally this function should return the id of the linked translated content, but has not worked for me in some cases (especially when AJAX is involved).

A simple SELECT helps to get that id yourself :)

Let’s Talk!

Looking for a reliable partner to bring your project to the next level? Whether it’s development, design, security, or ongoing support—I’d love to chat and see how I can help.

Get in touch,
and let’s create something amazing together!

RELATED POSTS

FrankenWP is a specialized WordPress Docker image built on FrankenPHP, which is a PHP application server built on top of the Caddy web server. This combination offers several advantages: This guide will walk you through setting up FrankenWP on your own server using Docker Compose, including all necessary configuration options and client connection details. Also […]

Website security is a critical concern for WordPress site owners. With the increasing sophistication of cyber threats, having a reliable firewall is essential to protect your website from malicious attacks, data breaches, and unauthorized access. In today’s digital landscape, website security is not just an option—it’s a necessity. WordPress, powering over 43% of all websites […]

Website security is a critical concern for WordPress site owners. With the increasing sophistication of cyber threats, having a reliable firewall is essential to protect your website from malicious attacks, data breaches, and unauthorized access. This comprehensive comparison examines 14 of the best WordPress firewalls available in 2025, evaluating their performance, features, and pricing to […]

Alexander

I am a full-stack developer. My expertise include:

  • Server, Network and Hosting Environments
  • Data Modeling / Import / Export
  • Business Logic
  • API Layer / Action layer / MVC
  • User Interfaces
  • User Experience
  • Understand what the customer and the business needs


I have a deep passion for programming, design, and server architecture—each of these fuels my creativity, and I wouldn’t feel complete without them.

With a broad range of interests, I’m always exploring new technologies and expanding my knowledge wherever needed. The tech world evolves rapidly, and I love staying ahead by embracing the latest innovations.

Beyond technology, I value peace and surround myself with like-minded individuals.

I firmly believe in the principle: Help others, and help will find its way back to you when you need it.