Viewing 15 replies - 1 through 15 (of 31 total)
  • Hi @vineryap
    What function do you use to display additional fields?
    Try to use wpm_translate_string($string);.

    Thread Starter vineryap

    (@vineryap)

    @valexar
    Thank you for your fast response.
    How to apply the wpm_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.

    Thread Starter vineryap

    (@vineryap)

    @valexar Maybe the code is in one of these pictures, please let me know if I’m wrong and I will try to search it again.

    picture 1
    Picture 2

    • This reply was modified 6 years, 11 months ago by vineryap.
    Thread Starter vineryap

    (@vineryap)

    @valexar I think the code that you are looking is in one of these pictures pic1 / pic2, Please let me know if I’m wrong and I’ll search for it again.

    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": {}
        }
      }
    }
    
    
    Thread Starter vineryap

    (@vineryap)

    @valexar Thank you for the solution, it works! but sadly another problem comes up.
    After I put wpm-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?

    Thread Starter vineryap

    (@vineryap)

    @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 the wp-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]

    Thread Starter vineryap

    (@vineryap)

    @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.

    Thread Starter vineryap

    (@vineryap)

    @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.

    Thread Starter vineryap

    (@vineryap)

    @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.

Viewing 15 replies - 1 through 15 (of 31 total)
  • The topic ‘Translation not showing properly’ is closed to new replies.