• Hello,
    I have some problem to translate some fields from custom posts created by Restaurant Menu by MotoPress (https://it.wordpress.org/plugins/mp-restaurant-menu/).

    I solved admin translation with wpm-config.json in child theme:

    {
    “post_types”: {
    “mp_menu_item”: {}
    },
    “taxonomies”: {
    “mp_menu_category”: {},
    “mp_menu_tag”: {},
    “mp_ingredient”: {}
    }
    }

    now I can translate Menu Items, tags, categories… but in front end, in some parts of the archive page (twentytwenty child theme) I cannot get correct view because item title is:

    [:en]Egg[:it]Uovo[:]

    and excerpt:
    [:en]Egg brief…[:it]uovo breve…[:]

    both post_title “[:en]Egg[:it]Uovo[:]” and “[:en]Egg brief…[:it]uovo…[:]” are in “wp_posts” and post_type is “mp_menu_item”.

    Tags (ex. Tag1 / tag1 eng) in wp_terms are correct.

    I cannot find a solution. Please help me.

    Thanks

    Patrick

    For testing purposes only, in upper left position I put in archive.php (child theme) $wpb_all_query = new WP_Query(array(‘post_type’=>’mp_menu_item’, ‘mp_menu_category’ =>… etc.

    The page I need help with: [log in to see the link]

  • The topic ‘Frontend raw code despite wpm-config.json’ is closed to new replies.