Rewrite url for custom post type

I’m using WPML plugin to translate my site. I have a custom post type called “vinos” and I use this args: $args = array( ‘labels’ => $labels, ‘hierarchical’ => false, ‘supports’ => array(‘title’, ‘thumbnail’), ‘public’ => true, ‘show_ui’ => true, ‘show_in_menu’ => true, ‘menu_position’ => 6, ‘show_in_nav_menus’ => true, ‘publicly_queryable’ => true, ‘exclude_from_search’ => false, … Read more

Best pratice to make taxonomy terms translatable without changing slugs?

I have one custom taxonomy with countries and states. I’d like to make these terms translatable but I’m not sure what would be the best way to achieve this. First of all, I don’t want the slugs to change, only the label, and maybe the description strings. I thought of two ways. One could be … Read more

Gettext details

I’ve got a few gettext() questions that are not covered anywhere in WordPress Codex but I think they are important. __(‘string’) in THEME should be used for strings that are likely to be present also in main WordPress translation file. No textdomain necessary. Examples: one, two, submit, cancel, remove and other common words. Correct? __(‘string’, … Read more

How to remove WPML Generator Meta Tag by theme’s functions.php (override plugin function)? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 7 years ago. Improve this question I’ve tried hard to find a way to not let plugin WPML output the following <meta name=”generator” content=”WPML ver:2.8.Best Answertt:3,1;0″ /> … Read more

[Plugin WPML] : How to create a translation of a post using the WPML API?

I’m trying to figure out how to create a translation for a post using the internal WPML API (inc/wpml-api.php) I simply want to create a translation for post ID xx, set some content and publish it. I’ve tried to play around with wpml_add_translatable_content but couldn’t get it right. Unfortunately there is not much documentation available … Read more