Note that there are some explanatory texts on larger screens.

plurals
  1. POWordpress _x values does not return translation in custom taxonomy menu name
    primarykey
    data
    text
    <p>I have an issue translating custom taxonomy menu and its items in Wordpress. As other translated values do return translation (ex. custom post values), I can tell, that it is not an syntax or string problem. I have tried also replacig <strong>_x to _</strong> what helped only for returning custom post type values. Here is the code:</p> <pre><code>add_action( 'init', 'sauto_catalog_categories', 0 ); function sauto_catalog_categories() { $labels = array( 'name' =&gt; __( 'Categories', 'sauto-catalog' ), 'singular_name' =&gt; __( 'Category', 'sauto-catalog' ), 'search_items' =&gt; __( 'Search Categories', 'sauto-catalog' ), 'all_items' =&gt; __( 'All Categories', 'sauto-catalog' ), 'parent_item' =&gt; __( 'Parent Category', 'sauto-catalog' ), 'parent_item_colon' =&gt; __( 'Parent Category:', 'sauto-catalog' ), 'edit_item' =&gt; __( 'Edit Category', 'sauto-catalog' ), 'update_item' =&gt; __( 'Update Category', 'sauto-catalog' ), 'add_new_item' =&gt; __( 'Add New Category', 'sauto-catalog' ), 'new_item_name' =&gt; __( 'New Category Name', 'sauto-catalog' ), 'menu_name' =&gt; __( 'Category', 'sauto-catalog' ), ); register_taxonomy( 'product_category', array('sauto_product'), array( 'hierarchical' =&gt; true, 'labels' =&gt; $labels, 'show_ui' =&gt; true, 'query_var' =&gt; true, 'rewrite' =&gt; array( 'slug' =&gt; 'product_category' ), )); } </code></pre> <p><em><strong>Is there another way to echo or print translated value in custom taxonomy arguments array?</em></strong></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload