Translation not showing properly
-
Hello, I translate the acf pro but the translation not showing properly on my site.
https://goo.gl/7V363Splease help
-
Hi @vineryap
What function do you use to display additional fields?
Try to usewpm_translate_string($string);
.@valexar
Thank you for your fast response.
How to apply thewpm_translate_string($string);
function for my theme?I’m using Realty theme I’m not sure what function they are using to display the additional fields.
I only know a little knowledge of programming. I’m more of a user, so any user-friendly explanation or guides will be very appreciated.Thank you.
I did not work with this theme.
Maybe there is any filter for before displaying metafields.
Show me the code what using for dssplaying metafields in the theme.Create the file
wpm-config.json
in root of your theme and add this code:{ "post_types": { "package": {}, "property": {} }, "post_fields": { "estate_property_price_prefix": {}, "estate_property_price_suffix": {}, "estate_property_contact_information": {}, "estate_property_internal_note": {}, "estate_property_status_update": {}, "additional_public_transportation": {}, "additional_neighborhood": {}, "additional_air_quality": {} }, "taxonomies": { "property-location" : {}, "property-status" : {}, "property-type": {}, "property-features": {} }, "options": { "realty_theme_option": { "property-title-details": {}, "property-title-additional-details": {}, "property-title-features": {}, "property-title-map": {}, "property-title-attachments": {}, "property-title-floor-plan": {}, "property-title-agent": {}, "property-search-label": { "wpm_each": {} }, "property-search-mini-label": { "wpm_each": {} }, "price-prefix": {}, "price-suffix": {}, "datepicker-language": {} } } }
@valexar Thank you for the solution, it works! but sadly another problem comes up.
After I putwpm-config.json
file on my theme roots, I can’t access the WordPress dashboard/admin page. the screen just stops on a white page, or sometimes showing “Pages isn’t working”.Can You enable WP_DEBUG and tell me what error You have?
@valexar Yes, I already try to activate the wp_debug from wp-config.php but I don’t see any error.
Unless I delete or deactivate one of the core theme plugin, the admin dashboard is can’t be accessed it shows HTTP ERROR 500.
Is it possible that WP multilang is not compatible with the theme that I’m using right now?I also tried it on localhost using AMPPS, and it works fine until I put
wp-config.json
file in the theme roots folder.
The effect can’t be reversed even after I delete thewp-config.json
file.
The only solution is I should re-install my wordpress site ??@vineryap
You can give me FTP access to your site. Or send ,me archive with your theme. And i try to help You. You can find me on WP Slack. There is private messages.
https://wordpress.slack.com/
You car register there with your WP mail address. [email protected]@valexar Hi, sorry I don’t really understand how to do that and I also don’t know how to do that.
Anyway, can you show me how to integrate plugins with your plugin?
I have some JSON config files that I used with qtranslate x plugin and I would like to know how I can use it with this plugin.
Do you have documentation for it?@vineryap
In description to the plugin describe main configuration settings.
In ‘configs’ folder in root of the plugin are configs for integration with others plugins. You can use it as example.@valexar so for example if I want to integrate plugin wp all import, I just need to create the json file inside the configs root folder?
because now I have 1 json file for my theme integration, and I need another 1 for plugin.@vineryap
No. All configurations merging to one array. And config file from root of your theme applying last.
You can add all needed configuration to config in your theme.But not all plugins can be integratet only with configs. Some plugins needed integration on php.
@valexar Is it possible to integrate wp all import plugin with json config?
I tried to import taxonomy using wp all import while inserting the [:en], it can be imported well but the taxonomy slug has the ‘en’ letters although the language is separated.
- The topic ‘Translation not showing properly’ is closed to new replies.