{"id":8780,"date":"2011-11-15T06:02:00","date_gmt":"2011-11-15T06:02:00","guid":{"rendered":"http:\/\/wpml.org\/?p=8780"},"modified":"2019-05-07T09:34:07","modified_gmt":"2019-05-07T09:34:07","slug":"types-%e2%80%93-multilingual-ready-custom-content-setup","status":"publish","type":"post","link":"https:\/\/wpml.org\/it\/announcements\/2011\/11\/types-%e2%80%93-multilingual-ready-custom-content-setup\/","title":{"rendered":"Types \u2013 multilingual-ready custom content setup"},"content":{"rendered":"<p><a href=\"https:\/\/toolset.com\/\">Types<\/a> is ready to download and use. It allows creating custom post types, custom taxonomy and custom fields. It&#8217;s fully integrated with WPML and with Views, letting you build complex multilingual sites with WordPress without any coding.<\/p>\n<h2>Setting Up<\/h2>\n<p>Types creates three things:<\/p>\n<ul>\n<li>Custom post types<\/li>\n<li>Custom taxonomy<\/li>\n<li>Custom fields (meta boxes)<\/li>\n<\/ul>\n<p>First, <a href=\"https:\/\/toolset.com\/home\/types-manage-post-types-taxonomy-and-custom-fields\/\">download Types<\/a>, install and activate it. Once setup, you&#8217;ll see this main menu:<\/p>\n<figure id=\"attachment_8782\" aria-describedby=\"caption-attachment-8782\" style=\"width: 145px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/types-menu.png\"><img decoding=\"async\" class=\"size-full wp-image-8782\" title=\"types-menu\" src=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/types-menu.png\" alt=\"\" width=\"145\" height=\"113\" \/><\/a><figcaption id=\"caption-attachment-8782\" class=\"wp-caption-text\">Types menu<\/figcaption><\/figure>\n<p>Click on <strong>Custom Types and Taxonomies<\/strong> to setup your own post and taxonomy types.<\/p>\n<figure id=\"attachment_8798\" aria-describedby=\"caption-attachment-8798\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/new-custom-type1.png\"><img decoding=\"async\" class=\"size-medium wp-image-8798\" title=\"new-custom-type\" src=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/new-custom-type1-300x250.png\" alt=\"\" width=\"300\" height=\"250\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/new-custom-type1-300x250.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/new-custom-type1-150x125.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/new-custom-type1.png 628w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-8798\" class=\"wp-caption-text\">New custom post type<\/figcaption><\/figure>\n<p>In the WordPress world, every piece of content is a post. This includes the standard posts and pages. When you want to add your unique content type, you&#8217;re creating a custom post type.<\/p>\n<p>Taxonomy is the glue that connects related content together. List tags and categories group together related posts, so does custom taxonomy connect together custom post types. Custom taxonomy can connect any post type, including the standard types.<\/p>\n<p>Click on <strong>Custom Fields<\/strong> to add meta-boxes to the WordPress editor.<\/p>\n<figure id=\"attachment_8784\" aria-describedby=\"caption-attachment-8784\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/new-group.png\"><img decoding=\"async\" class=\"size-medium wp-image-8784\" title=\"new-group\" src=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/new-group-300x202.png\" alt=\"\" width=\"300\" height=\"202\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/new-group-300x202.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/new-group-150x101.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/new-group.png 747w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-8784\" class=\"wp-caption-text\">New custom-fields group<\/figcaption><\/figure>\n<p>Types arranges custom fields in groups. It lets you select which group to display on different content types.<\/p>\n<p>Groups have fields. You can choose standard fields, such as single-line and multi-line text inputs, or more complex fields such as file, image or Skype contact.<\/p>\n<p>Click on <strong>Add a custom fields group<\/strong>. Give it a name and an optional description and add fields by clicking on their names from the list at the top-right.<\/p>\n<figure id=\"attachment_8785\" aria-describedby=\"caption-attachment-8785\" style=\"width: 257px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/edit-field.png\"><img decoding=\"async\" class=\"size-medium wp-image-8785\" title=\"edit-field\" src=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/edit-field-257x300.png\" alt=\"\" width=\"257\" height=\"300\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/edit-field-257x300.png 257w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/edit-field-128x150.png 128w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/edit-field.png 365w\" sizes=\"(max-width: 257px) 100vw, 257px\" \/><\/a><figcaption id=\"caption-attachment-8785\" class=\"wp-caption-text\">Adding a custom field<\/figcaption><\/figure>\n<p>Once you&#8217;ve added a field, you can configure it. Give it a name and a description. Each type of field has its own unique setup.<\/p>\n<p>This is how a group looks like on Edit screens:<\/p>\n<figure id=\"attachment_8786\" aria-describedby=\"caption-attachment-8786\" style=\"width: 280px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/custom-fields-in-editor-page.png\"><img decoding=\"async\" class=\"size-medium wp-image-8786\" title=\"custom-fields-in-editor-page\" src=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/custom-fields-in-editor-page-280x300.png\" alt=\"\" width=\"280\" height=\"300\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/custom-fields-in-editor-page-280x300.png 280w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/custom-fields-in-editor-page-140x150.png 140w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/custom-fields-in-editor-page.png 444w\" sizes=\"(max-width: 280px) 100vw, 280px\" \/><\/a><figcaption id=\"caption-attachment-8786\" class=\"wp-caption-text\">Types custom fields in the content editing screen<\/figcaption><\/figure>\n<p>You can see various types of fields, including text, check-box and image uploads.<\/p>\n<h2>Displaying Custom Fields<\/h2>\n<p>You&#8217;ll notice that there&#8217;s a shortcode hint below different fields in the editor screens. These shortcodes allow to include the fields in the page content. When authors enter these shortcodes to the text, Types will replace them with the field content.<\/p>\n<p>Custom field display is different for each field type. Text fields simply output their value. Check-boxes and radio groups will display the respective text for their state. Image fields output the images (allowing you to choose image dimensions) and other special fields have unique display options.<\/p>\n<p>Authors can use the <strong><em>T<\/em><\/strong> icon, at the top of edit screens to choose from available fields to insert.<\/p>\n<figure id=\"attachment_8789\" aria-describedby=\"caption-attachment-8789\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/inserting-types-fields.png\"><img decoding=\"async\" class=\"size-medium wp-image-8789\" title=\"inserting-types-fields\" src=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/inserting-types-fields-300x82.png\" alt=\"\" width=\"300\" height=\"82\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/inserting-types-fields-300x82.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/inserting-types-fields-150x41.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/inserting-types-fields.png 585w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-8789\" class=\"wp-caption-text\">Inserting custom fields to content<\/figcaption><\/figure>\n<p>If you want to add fields to templates (so that they appear on all pages of the same type), you can use Views, to generate dynamic templates, or edit the template PHP files and use Types API calls to display fields.<\/p>\n<h2>Data Validation<\/h2>\n<p>Fields can also validate user-input. You can set any field as &#8216;required&#8217;. Other fields have other validation options. For example, numeric fields will check that users only enter numbers and email fields will validate for well-formatted email addresses. You can enable or disable each of these validations, per field.<\/p>\n<p>When authors enter content and validation fails, Types will highlight the incorrect fields and instruct users to edit them.<\/p>\n<h2>Custom-Field Translation Options<\/h2>\n<p>Types lets you choose what to do when translating content that includes these custom fields. By default, WPML will translate text fields and copy non-text fields. This means that images, check-boxes and numeric values will auto-synchronize between the original content and translations and texts will get translated.<\/p>\n<h2>Multilingual Admin Screens<\/h2>\n<p>WPML lets different users have different admin languages. This is especially useful if there are different people configuring and running the site.<\/p>\n<p>All the texts that you enter in Types appear in WPML&#8217;s String Translation screen. This includes names, descriptions and labels and field values.<\/p>\n<figure id=\"attachment_8791\" aria-describedby=\"caption-attachment-8791\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/translating-types-strings.png\"><img decoding=\"async\" class=\"size-medium wp-image-8791\" title=\"translating-types-strings\" src=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/translating-types-strings-300x139.png\" alt=\"\" width=\"300\" height=\"139\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/translating-types-strings-300x139.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/translating-types-strings-150x69.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/translating-types-strings.png 619w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-8791\" class=\"wp-caption-text\">Translating Types string in the String Translation screen<\/figcaption><\/figure>\n<p>Once you translate these texts in the String Translation screen, users will see the localized languages on the WordPress Admin, as well as on public pages.<\/p>\n<h2>Translating Custom-Type Content<\/h2>\n<p>The central location for controlling what is multilingual is in <strong>WPML-&gt;Translation Management-&gt;Multilingual content setup<\/strong>. There, you will see all the custom types that you&#8217;ve added (post types, taxonomy and fields). Once you make custom types translatable, you&#8217;ll get the familiar translation controls in their lists screen. You&#8217;ll also be able to choose the in the Translation Dashboard.<\/p>\n<p>WPML automatically adjusts the translation editor and according to the setup of different custom fields.<\/p>\n<figure id=\"attachment_8792\" aria-describedby=\"caption-attachment-8792\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/custom-field-for-translation.png\"><img decoding=\"async\" class=\"size-medium wp-image-8792\" title=\"custom-field-for-translation\" src=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/custom-field-for-translation-300x168.png\" alt=\"\" width=\"300\" height=\"168\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/custom-field-for-translation-300x168.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/custom-field-for-translation-150x84.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/10\/custom-field-for-translation.png 364w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-8792\" class=\"wp-caption-text\">Custom fields in the Translation Editor<\/figcaption><\/figure>\n<p>When you translate content that includes a custom field, you&#8217;ll notice that the name and description show for them. This allows translators to understand what they&#8217;s translating and where the text goes to.<\/p>\n<h2>Download, Cost and Support<\/h2>\n<p>You can download Types from Toolset website:<\/p>\n<p><a href=\"https:\/\/toolset.com\/home\/types-manage-post-types-taxonomy-and-custom-fields\/\">https:\/\/toolset.com\/home\/types-manage-post-types-taxonomy-and-custom-fields\/<\/a><\/p>\n<p>You&#8217;re welcome to read tutorials and complete reference documentation in <strong><a href=\"https:\/\/toolset.com\">Types &amp; Views website<\/a><\/strong>.<\/p>\n<p><em><a href=\"https:\/\/toolset.com\">Views<\/a><\/em>\u00a0is a powerful compliment to <em>Types,\u00a0<\/em>allowing to display custom data without any coding.\u00a0We&#8217;re offering commercial support for both <em>Types<\/em> and <em>Views<\/em>\u00a0through the support forums on <a href=\"https:\/\/toolset.com\">https:\/\/toolset.com<\/a>.<\/p>\n<p><strong><em>Views<\/em> and expert support for both plugins\u00a0for one year costs $49 (USD).<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Types is ready to download and use. It allows creating custom post types, custom taxonomy and custom fields. It&#8217;s fully integrated with WPML and with Views, letting you build complex multilingual sites with WordPress without any coding. Setting Up Types creates three things: Custom post types Custom taxonomy Custom fields (meta boxes) First, download Types, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"ep_exclude_from_search":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-8780","post","type-post","status-publish","format-standard","hentry","category-announcements"],"_links":{"self":[{"href":"https:\/\/wpml.org\/it\/wp-json\/wp\/v2\/posts\/8780","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpml.org\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpml.org\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpml.org\/it\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wpml.org\/it\/wp-json\/wp\/v2\/comments?post=8780"}],"version-history":[{"count":8,"href":"https:\/\/wpml.org\/it\/wp-json\/wp\/v2\/posts\/8780\/revisions"}],"predecessor-version":[{"id":3755931,"href":"https:\/\/wpml.org\/it\/wp-json\/wp\/v2\/posts\/8780\/revisions\/3755931"}],"wp:attachment":[{"href":"https:\/\/wpml.org\/it\/wp-json\/wp\/v2\/media?parent=8780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpml.org\/it\/wp-json\/wp\/v2\/categories?post=8780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpml.org\/it\/wp-json\/wp\/v2\/tags?post=8780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}