{"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\/de\/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 &#8222;festivals&#8220; in Europe. Festivals have &#8222;performers&#8220;. You will probably want to create a custom post type for &#8222;festivals&#8220; and another one for the &#8222;performers&#8220;.<\/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 &#8222;appearances&#8220;. An appearance will have a &#8222;date&#8220; may have a &#8222;ticket price&#8220; 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>&#8222;Display Translated&#8220;<\/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 &#8222;Display Translated&#8220; 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 &#8222;Post relationship&#8220;. 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,"_uag_custom_page_level_css":"","ep_exclude_from_search":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1385746","post","type-post","status-publish","format-standard","hentry","category-announcements"],"spectra_custom_meta":{"_edit_lock":["1506614218:2"],"_edit_last":["2"],"_alp_processed":["1506614352"],"_yoast_wpseo_content_score":["60"],"_yoast_wpseo_primary_category":["3"],"_views_template":["0"],"_oembed_68f0d0000b16131319f633f9dc82351e":["<iframe width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/R73ilwkogSk?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe>"],"_oembed_time_68f0d0000b16131319f633f9dc82351e":["1506585358"],"ratings_users":["0"],"ratings_score":["0"],"ratings_average":["0"],"_oembed_d98c9f691fb8f135efc16f574d140dd0":["<iframe title=\"Create templates for displaying custom posts\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/1kCO_dSdlD0?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_d98c9f691fb8f135efc16f574d140dd0":["1594312888"],"_oembed_11e07249db729590d59aef24279395e5":["<iframe title=\"Displaying custom lists of content\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/-nG9PWMzGTQ?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_11e07249db729590d59aef24279395e5":["1594312888"],"_oembed_0a9b7c0e350cccf75658aa2dcf88ed85":["<iframe title=\"How to migrate from a custom database into WordPress\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/2PIChT5T0oQ?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_0a9b7c0e350cccf75658aa2dcf88ed85":["1637061430"],"_oembed_b6b58dddea390a2faa8b176dcd53d805":["<iframe title=\"How custom types and fields make it easy to manage content\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/BNu5PGG93J0?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_b6b58dddea390a2faa8b176dcd53d805":["1637061430"],"_oembed_57975f4ba5c8952521d5c822cc574a95":["<iframe title=\"How to build a membership site in WordPress using Toolset plugins\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/7C1dFwxXME8?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_57975f4ba5c8952521d5c822cc574a95":["1637061430"],"_oembed_91c4a966854e454ae9cd5d8238fe6125":["<iframe title=\"How Repeatable Field Groups Work in Toolset\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/aWB-upmpbfo?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_91c4a966854e454ae9cd5d8238fe6125":["1640225717"],"_oembed_605538d4bdc05d8e5064feba452e6920":["<iframe title=\"Creating and using repeatable field groups\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/1D501I-yvGI?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_605538d4bdc05d8e5064feba452e6920":["1640225717"],"_oembed_e7fc203a84c888125be9273e359b9ff7":["{{unknown}}"],"_oembed_61cf92166b7fafbde823833296dd30a3":["{{unknown}}"],"_oembed_26e0e5de3d5acfa0214142b132e6ac63":["{{unknown}}"],"_oembed_0be3190628599f17adee76beefbea62d":["{{unknown}}"],"_oembed_a2bd2c0b8f2c628b1b3793abb74e7359":["<iframe title=\"WPML 3.9 with &quot;Display as Translated&quot; mode\" width=\"525\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/eiPUIuELo2A?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_a2bd2c0b8f2c628b1b3793abb74e7359":["1648715787"],"_oembed_d45e48e1af800662f1092912cdfb3725":["<iframe title=\"WPML Translation Manager Role\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/zKax_E3jRB0?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_d45e48e1af800662f1092912cdfb3725":["1657540973"],"_oembed_66b65cc4963b02a06397f5195d38724a":["<iframe title=\"WPML New Media Translation\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/aUTPX7kahUs?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_66b65cc4963b02a06397f5195d38724a":["1657540973"],"_oembed_1a7aa0a619dad47a6cfdae8f8e97e437":["<iframe title=\"How to use the new WPML Advanced Translation Editor\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/kAaSEpjijhQ?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_1a7aa0a619dad47a6cfdae8f8e97e437":["1657540973"],"_oembed_f56bf1c5a64a315a94e4cbf7a197b2b0":["<iframe title=\"Integration between Astra theme and Toolset\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/z0GrsNVmFjo?feature=oembed&enablejsapi=1&origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>"],"_oembed_time_f56bf1c5a64a315a94e4cbf7a197b2b0":["1657540973"],"_wpml_media_featured":["1"],"_wpml_media_duplicate":["0"],"_wpml_word_count":["552"],"_uag_css_file_name":["uag-css-1385746.css"],"_uag_page_assets":["a:9:{s:3:\"css\";s:260:\".uag-blocks-common-selector{z-index:var(--z-index-desktop) !important}@media(max-width: 976px){.uag-blocks-common-selector{z-index:var(--z-index-tablet) !important}}@media(max-width: 767px){.uag-blocks-common-selector{z-index:var(--z-index-mobile) !important}}\";s:2:\"js\";s:0:\"\";s:18:\"current_block_list\";a:1:{i:0;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:0;s:11:\"uag_version\";s:10:\"1778129307\";s:6:\"gfonts\";a:0:{}s:10:\"gfonts_url\";s:0:\"\";s:12:\"gfonts_files\";a:0:{}s:14:\"uag_faq_layout\";b:0;}"]},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"gform-image-choice-sm":false,"gform-image-choice-md":false,"gform-image-choice-lg":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false},"uagb_author_info":{"display_name":"Amir","author_link":"https:\/\/wpml.org\/de\/author\/amir\/"},"uagb_comment_info":0,"uagb_excerpt":"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;","_links":{"self":[{"href":"https:\/\/wpml.org\/de\/wp-json\/wp\/v2\/posts\/1385746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpml.org\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpml.org\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpml.org\/de\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wpml.org\/de\/wp-json\/wp\/v2\/comments?post=1385746"}],"version-history":[{"count":7,"href":"https:\/\/wpml.org\/de\/wp-json\/wp\/v2\/posts\/1385746\/revisions"}],"predecessor-version":[{"id":1386497,"href":"https:\/\/wpml.org\/de\/wp-json\/wp\/v2\/posts\/1385746\/revisions\/1386497"}],"wp:attachment":[{"href":"https:\/\/wpml.org\/de\/wp-json\/wp\/v2\/media?parent=1385746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpml.org\/de\/wp-json\/wp\/v2\/categories?post=1385746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpml.org\/de\/wp-json\/wp\/v2\/tags?post=1385746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}