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

Look, if you’re running a WordPress site, there’s a decent chance someone’s already tried to figure out your usernames. Yeah, I know—creepy, right? But here’s the thing: WordPress, by default, basically hands out your usernames like Halloween candy. This is called user enumeration, and while it won’t break into your site by itself, it’s like […]

With Judge.me discontinuing support for WooCommerce in September 2025, thousands of online store owners are searching for reliable alternatives. This comprehensive guide evaluates the top review management solutions that offer seamless WordPress, WooCommerce, and Elementor integration, along with robust Google platform support. Why Judge.me Users Need to Migrate Judge.me officially announced the sunset of their […]

Database Optimization Techniques 1. Custom Database Indexing Postmeta Table Indexing The wp_postmeta table is often the performance bottleneck for sites with custom fields or WooCommerce. Custom Index for Meta Key Searches: Composite Index for ACF Queries: Source: Advanced Custom Fields Blog | SpinupWP Database Optimization wp_options Table Optimization Plugin Solution: Index WP MySQL For Speed […]

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.