Skip to content

Instantly share code, notes, and snippets.

@NateWr
Created September 28, 2015 14:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NateWr/56cd0afed05049d78865 to your computer and use it in GitHub Desktop.
Save NateWr/56cd0afed05049d78865 to your computer and use it in GitHub Desktop.
Food and Drink Menu wpml-config.xml file for Polylang compatibility (fixes issues with menu sections)
<wpml-config>
<custom-types>
<custom-type translate="1">fdm-menu</custom-type>
<custom-type translate="1">fdm-menu-item</custom-type>
</custom-types>
<taxonomies>
<taxonomy translate="1">fdm-menu-section</taxonomy>
</taxonomies>
<custom-fields>
<custom-field action="translate">fdm_item_price</custom-field>
<custom-field action="translate">fdm_menu_column_one</custom-field>
<custom-field action="translate">fdm_menu_column_two</custom-field>
<custom-field action="translate">fdm_menu_footer_content</custom-field>
</custom-fields>
</wpml-config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment