{"id":1385746,"date":"2017-09-28T15:59:08","date_gmt":"2017-09-28T15:59:08","guid":{"rendered":"https:\/\/wpml.org\/?p=1385746"},"modified":"2017-09-28T15:59:08","modified_gmt":"2017-09-28T15:59:08","slug":"need-post-relationships-for-your-multilingual-wordpress-sites","status":"publish","type":"post","link":"https:\/\/wpml.org\/vi\/announcements\/2017\/09\/need-post-relationships-for-your-multilingual-wordpress-sites\/","title":{"rendered":"Need Post Relationships for Your Multilingual WordPress Sites?"},"content":{"rendered":"<p class=\"lead\">Post relationship allows you to connect between different post types. We are ready with a first beta of <strong>Toolset Types<\/strong> that supports many-to-many relationship, repeating field groups and post reference fields and we need your feedback about how you want to use it on multilingual sites.<\/p>\n<p>In case you haven&#8217;t been watching our <a href=\"https:\/\/toolset.com\">Toolset<\/a> project, in the last year we&#8217;ve been working on adding full post-relationship support to it. Post relationship means that you can connect between different kinds of post types.<\/p>\n<p>Sounds abstract? Let&#8217;s look at a couple of examples.<\/p>\n<p>Let&#8217;s say that you&#8217;re creating a website for &#8220;festivals&#8221; in Europe. Festivals have &#8220;performers&#8221;. You will probably want to create a custom post type for &#8220;festivals&#8221; and another one for the &#8220;performers&#8221;.<\/p>\n<p>Obviously, each festival will have many performers. Each performer can appear in many festivals. So, we naturally have a many-to-many relationship between festivals and performers.<\/p>\n<p>The glue that connects between the festivals and the performers will be &#8220;appearances&#8221;. An appearance will have a &#8220;date&#8221; may have a &#8220;ticket price&#8221; and probably a few other characteristics (fields).<\/p>\n<p>The upcoming version of Types lets you conveniently set-up such many-to-many relationships. It also comes with repeating field groups and a few other goodies.<\/p>\n<p>See Dario&#8217;s introduction video:<\/p>\n<div class=\"embed-responsive embed-responsive-16by9\"><iframe width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/R73ilwkogSk?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/div>\n<p>The reason I&#8217;m writing about it here is because we&#8217;re adding a brand new translation mode to WPML 3.9, which we&#8217;ll call <strong>&#8220;Display Translated&#8221;<\/strong>. This mode will allow you to build content listing sites without having to duplicate content. If something is translated, the translation will show. Otherwise, the original will show.<\/p>\n<p>This new &#8220;Display Translated&#8221; mode will do a few magic tricks. It will allow you to stay in the current language, even when linking-to and displaying untranslated content. That&#8217;s really the cool new feature. I&#8217;ll write a lot more about it.<\/p>\n<p>Anyway&#8230;<\/p>\n<p>The upcoming version of Toolset Types makes it easy to build content-driven sites with Toolset. You can easily build listing sites, directory sites and sites that require post relationship.<\/p>\n<p>Now, we want to know what we need to do in WPML to make your work easier. For this, we need to know if\/how you&#8217;re going to use repeating fields and post relationship.<\/p>\n<p>You can find <strong>Types 2.3-b1 Beta<\/strong> in your <a href=\"https:\/\/wpml.org\/account\/\">WPML account<\/a>, under <strong>Downloads<\/strong>. Switch to the Beta channel to see it.<\/p>\n<p><strong>This is a very early beta version. Don&#8217;t install it on any production or development sites. To try it, create a fresh WordPress site and use just this plugin. It doesn&#8217;t yet even work with other Toolset plugins.<\/strong><\/p>\n<p>Use this beta to set-up the post relationships and repeating fields that you need for an upcoming project.<\/p>\n<p>Then, create a new ticket in <a href=\"https:\/\/wpml.org\/forums\/forum\/english-support\/\">WPML support<\/a> and tag it as &#8220;Post relationship&#8221;. Explain there what project you&#8217;re building, show what post types, fields and relationships you&#8217;re creating and how you want to display it on the front-end.<\/p>\n<p>Every important for WPML, explain what you want to translate in the site and what you&#8217;ll probably leave untranslated.<\/p>\n<p>Then, add your comment here with the link to your support thread. We&#8217;ll follow up and make sure that WPML has everything you need for such projects.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Post relationship allows you to connect between different post types. We are ready with a first beta of Toolset Types that supports many-to-many relationship, repeating field groups and post reference fields and we need your feedback about how you want to use it on multilingual sites. In case you haven&#8217;t been watching our Toolset project, [&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-1385746","post","type-post","status-publish","format-standard","hentry","category-announcements"],"_links":{"self":[{"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/posts\/1385746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/comments?post=1385746"}],"version-history":[{"count":7,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/posts\/1385746\/revisions"}],"predecessor-version":[{"id":1386497,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/posts\/1385746\/revisions\/1386497"}],"wp:attachment":[{"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/media?parent=1385746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/categories?post=1385746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpml.org\/vi\/wp-json\/wp\/v2\/tags?post=1385746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}