Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 18 replies, has 1 voice.

Last updated by kostasT-3 1 day, 21 hours ago.

Assisted by: Andreas W..

Author Posts
October 22, 2025 at 2:04 pm #17508599

kostasT-3

Background of the issue:
I am using the Real Homes theme and have created a search form with Elementor on my site hidden link. I have translated the Property Features taxonomies using WPML, and the slug is the same in both languages.

Symptoms:
The Elementor search form does not display the translated Property Features, except for one feature that is not translated and remains in English.

Questions:
Why are the translated Property Features not appearing in the Elementor search form?
How can I ensure all translated Property Features are displayed correctly in the search form?

October 23, 2025 at 2:49 pm #17512992

kostasT-3

Any updates? I’m also experiencing an issue with the main Search Form of my RealHomes theme — the property locations (called “Emplacement” in French) don’t appear unless I update the page. They show temporarily after the update but disappear again shortly after.

Screenshot 2025-10-23 at 17.49.39.png
October 24, 2025 at 9:45 pm #17517937

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Could you please check if you have the following option activated:

WPML → Languages → Language filtering for AJAX operations

If this does not solve the issue, please let me know, as this might be a compatilbity problem between "RealHomes Elementor Addon" and the WPML Translation Editor, which we will need to investigate further.

Best regards
Andreas

October 25, 2025 at 10:25 am #17518264

kostasT-3

Hello Andreas thank you for your reply.
I just activated the Language filtering for AJAX .
Unfortuantelly nothing changed.
I still dont see
1. in the elementor search form the "Additional Property Features"
2. in the Main Themes Search form the "Property Types"

October 25, 2025 at 7:23 pm #17518873

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I would like to offer to take a closer look and request temporary access (wp-admin and FTP) to the website to investigate the issue further.

The required fields are located below the comments section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.

IMPORTANT
Please be sure to back up your website and database before granting us access.
If you can't see the "wp-admin / FTP" fields, your post and website credentials will be set to "PUBLIC." DO NOT publish the data unless you see the required wp-admin / FTP fields.

The private reply form looks like this:
hidden link

Click "I still need assistance" the next time you reply.

Video:
hidden link

Please note that we are required to request this information individually on each ticket. We are not permitted to access any credentials that were not specifically submitted on this ticket using the private response form.

Best regards,
Andreas

October 27, 2025 at 10:48 am #17521378

kostasT-3

Hello Dear Andreas.

I solved the issue with the main Themes Search Form. That the property Locations didnt appear in the French translation.
This was a Themes Customation option, to show or not to show the empty ( without assign properties) Locations.
The problem was that since I choose NOT to translate the Properties ( because are many,like 2000), the tranlsated Locations appeared as empty, zero properties in every location ( Athens etc) in French.
Sio by enabling to show also teh empty Locations, the isue is resolved.

I still cannot find solution for the Elementor Serch Form, for the" Additonal Features" ( Seafront etc) that do now appear in French Translation.
I assume that is exactly the same issue. That in the French translation, the assign "seafront: properties are zero and this is why they dont appear.
However I dont have any customization given from my them for the "additional Fields were I can just check "show Additojnal Fields with Zero assigned Properties".

So what we do about it?

October 28, 2025 at 8:32 am #17524778

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

You could try to set the taxonomies (terms) to "Fallback" at WPML > Settings, but I doubt that this would solve the issue.

Fallback doesn’t mean “merge content across languages”—it means “show default-language content if no translation exists.” This includes that there does not exist any post or term in a second language, and so taxonomy-based filters may still fail unless terms are explicitly translated and assigned.

Further, Elementor or RealHomes widgets may hardcode that empty terms are hidden from the form, which blocks fallback visibility unless overridden.

- Post listings (e.g., archives, loops): WPML can show default-language posts if no translation exists, depending on settings like “Translatable – use translation if available or fallback to default language.”

- Search forms (especially custom ones): These typically rely on taxonomy queries (WP_Query or get_terms()), which by default only return terms assigned to posts in the current language.

---

Maybe duplicating the properties would be an option?
https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#duplicating-content

Or you could make use of WPML Hooks and automatically create duplicates when a property is published:

For Frontend:
https://wpml.org/wpml-hook/wpml_make_post_duplicates/

For Backend:
https://wpml.org/wpml-hook/wpml_admin_make_post_duplicates/

October 28, 2025 at 9:07 am #17525021

kostasT-3

No way, my site is already very big in size, I cant duplacate properties

October 28, 2025 at 10:16 am #17525446

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

The problem is that each post and taxonomy has a unique ID inside the database, and the search query will not find anything, as WP_Query will check if an ID exists in each language.

This would only be solvable by using a custom code solution inside a Child Theme.

Now, this is a fairly complicated approach, as get_posts() or WP_Query do not include any language argument yet.

https://developer.wordpress.org/reference/classes/wp_query/

The only way to alter such a query would be to set the argument 'suppress_filters' to true, which will bypass WPML's language filtering.

Example:
get_posts( array(
'post_type' => 'property',
'suppress_filters' => true
) );

You could try using this snippet in a Code Snippet plugin:

add_action( 'pre_get_posts', 'wpml_fallback_search_query' );

function wpml_fallback_search_query( $query ) {
    if ( is_admin() || ! $query->is_main_query() || ! $query->is_search() ) {
        return;
    }

    // Get WPML language context
    $current_lang = apply_filters( 'wpml_current_language', null );
    $default_lang = apply_filters( 'wpml_default_language', null );

    // Only apply fallback logic in secondary languages
    if ( $current_lang !== $default_lang ) {
        // Fetch default-language post IDs for the target post type
        $fallback_posts = get_posts( array(
            'post_type'        => 'property', // Adjust to your CPT
            'posts_per_page'   => -1,
            'suppress_filters' => true,
            'fields'           => 'ids',
        ) );

        // Inject fallback posts into the current query
        $query->set( 'post_type', 'property' );
        $query->set( 'post__in', $fallback_posts );
        $query->set( 'suppress_filters', true ); // Bypass WPML filtering
    }
}

Note that I did not test this snippet yet. If you could set up a staging site, I can offer to test this approach for you.

What does it?

- It intercepts the search query before execution.

- It bypasses WPML’s strict language filtering using suppress_filters => true.

- It injects default-language post IDs into the secondary-language search results pages.

October 30, 2025 at 9:22 am #17531637

kostasT-3

Ok I will add this code but just a clarfication, the search results are ok, the only issue is that I dont see the "additional features"

For example in the classic form, that the additional features are shown correctly, i see the number of properties that have a feature (lets say seafront) 0 ( zero) but the results are shown perfect.

So what I want is the additional features to be shown even if appears zero properties with these features,

October 30, 2025 at 8:30 pm #17534298

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hi Kostas,

Thanks for the update and clarification.

If the translated terms (e.g. “Additional Features” like Seafront) do not exist or are not assigned to any translated properties, then by default, WordPress and WPML will not return them in taxonomy queries — especially in secondary languages. This is expected behavior, as get_terms() and similar functions only return terms that are assigned to posts in the current language.

The only way to override this behavior is to bypass WPML’s language filtering by setting the 'suppress_filters' => true argument in your query. This tells WordPress to ignore WPML’s language constraints and return terms from the default language as well — even if they’re not assigned to translated posts.

This approach can be useful for fallback visibility, but it requires custom code and may not be compatible with all themes or widgets (especially if they hardcode their queries).

Let me know if you need further assistance. It would be very helpful if you could set up a staging site for testing.

Best regards,
Andreas

November 2, 2025 at 8:53 am #17537917

kostasT-3

Hello Andreas, unfortunately th eSnippe code didnt work.
I remind you that in the classic search from of the theme I see all the additional feauters with a zero number next to them but workds great.

hidden link

I have contacted all of parties related, elementor, Theme, everyone and all they reply that is WPML issue that has to be solved from you.

Please also note one more problem that I face, that although I have translated all the tags, post and page tags, I still see them in my dashboard, their Yoast titel an dmeta untranslated. Altough I have translate succesfull all Yoast meta strings

Screenshot 2025-11-02 at 10.50.20.png
November 4, 2025 at 11:37 am #17545119

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

This appears ot be related to the fact that the properties are not translated.

The only workaround I can suggest for this is creating duplicates for each property using our recommended hooks.

For Frontend:
https://wpml.org/wpml-hook/wpml_make_post_duplicates/

For Backend:
https://wpml.org/wpml-hook/wpml_admin_make_post_duplicates/

November 4, 2025 at 12:13 pm #17545352

kostasT-3

Unbeleivable that you cannot help in such an easy issue! You are not professionals selling over decade a traslator software and you cannot help a site that does not want to increase its database by dublicating 2000 properties just becasue you cant find a proper solution ! I am really dissapointed by your approach, your delayed replies, and your light approach in problem solving. Shame on you

November 4, 2025 at 12:37 pm #17545479

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

My apologies for the delay, but I do work from Tuesdays to Saturdays.

The reported issues are a known limitation when using listing themes. This is why we provided two hooks that allow us to duplicate posts on the admin and on the frontend for user submissions.

What I can offer:

1) I can provide a WPML test site on which you can install the theme for testing
2) I can assist you with implementing the suggested hooks on your site (even though this is usually not covered by our support policy)