{"id":7817687,"date":"2021-01-11T16:38:05","date_gmt":"2021-01-11T16:38:05","guid":{"rendered":"https:\/\/wpml.org\/?p=7817687"},"modified":"2021-03-11T15:34:58","modified_gmt":"2021-03-11T15:34:58","slug":"how-to-create-and-translate-templates-for-custom-post-types","status":"publish","type":"post","link":"https:\/\/wpml.org\/he\/tutorials\/2021\/01\/how-to-create-and-translate-templates-for-custom-post-types\/","title":{"rendered":"How to create and translate templates for custom post types"},"content":{"rendered":"\n<p class=\"lead\">In this tutorial, we show how to create templates for custom posts types in multilingual sites. We\u2019ll design the template visually and use WPML to translate it.<\/p>\n\n\n\n<p>Today, WordPress's default editor is the Block Editor (aka Gutenberg). It's a visual editor that's become a reliable and mature tool. We'll use it to design our templates, together with the <a href=\"http:\/\/www.toolset.com\">Toolset plugins<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Setting things up<\/h2>\n\n\n\n<p>To create templates for custom posts, you only need the following two plugins:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Toolset Types<\/li><li>Toolset Blocks<\/li><\/ul>\n\n\n\n<p>To get these plugins, you will need a Toolset subscription. However, you can test and try all Toolset plugins for free on the <a href=\"https:\/\/discover-wp.com\/\">Discover WP site<\/a>. It allows you to create your own sandbox site with a number of prebuilt site templates to choose from and install in one click.<\/p>\n\n\n\n<p>To translate your templates and your site in general, you also need the following WPML plugins:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>WPML core plugin<\/li><li>WPML Translation Management<\/li><li>WPML String Translation<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Creating a template for custom posts<\/h2>\n\n\n\n<p>Here are the steps to create your template:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Go to the <strong>Toolset <\/strong>\u2192 <strong>Dashboard <\/strong>page. It lists all post types in your site along with all custom fields, taxonomies, and templates you have for each post type.<\/li><li>Look in the row of the post type you want to design a template for and click the <strong>Create Content Template<\/strong> button.<\/li><\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"22fbfba631493233095fecadb9b73da5\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/toolset-dashboard-create-template.png\"><img decoding=\"async\" width=\"1896\" height=\"880\" loading=\"lazy\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/toolset-dashboard-create-template.png\" alt=\"\" class=\"wp-image-7818517\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/toolset-dashboard-create-template.png 1896w, https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/toolset-dashboard-create-template-300x139.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/toolset-dashboard-create-template-1024x475.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/toolset-dashboard-create-template-150x70.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/toolset-dashboard-create-template-768x356.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/toolset-dashboard-create-template-1536x713.png 1536w\" sizes=\"auto, (max-width: 1896px) 100vw, 1896px\" \/><\/a><div class=\"tb-image-caption\"><figcaption>Creating a Content Template from the Toolset Dashboard<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li>You are taken to the WordPress Block Editor for your template. Here, you use Toolset blocks to insert different fields. This can be a WordPress field like a post body, any custom field, or a taxonomy. After inserting any Toolset block, enable the <strong>Dynamic Source <\/strong>option and select the field you want to display.<\/li><\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"576f9059974bc14e6961c060102f8028\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/toolset-dynamic-source.png\"><img decoding=\"async\" width=\"1920\" height=\"1080\" loading=\"lazy\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/toolset-dynamic-source.png\" alt=\"\" class=\"wp-image-7818543\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/toolset-dynamic-source.png 1920w, https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/toolset-dynamic-source-300x169.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/toolset-dynamic-source-1024x576.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/toolset-dynamic-source-150x84.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/toolset-dynamic-source-768x432.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/toolset-dynamic-source-1536x864.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/a><div class=\"tb-image-caption\"><figcaption>Using a Dynamic Source to display an image saved as a custom field<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<p>And that's it, now insert any number of fields you need and tweak how they appear on the page. Each Toolset block has sections for adjusting the styling, typography, and more.<\/p>\n\n\n\n<p>Of course, you can do much more. For example, you can arrange contents in columns, use containers, display parts of the template conditionally, display a list of related posts, create responsive designs, and more.<\/p>\n\n\n\n<p>Here's a whole video tutorial on creating a template for displaying custom posts.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"embed-responsive embed-responsive-16by9\"><iframe title=\"How to design templates for custom content using Toolset Blocks\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/ZfudEx64gFk?feature=oembed&#038;enablejsapi=1&#038;origin=https:\/\/wpml.org\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<p>You can find more information and related tutorials on the Toolset's lesson on creating <a href=\"https:\/\/toolset.com\/course-lesson\/creating-templates-to-display-custom-posts\/\">single-post templates<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Translating the templates on multilingual sites<\/h2>\n\n\n\n<p>OK, now that you know how to create templates, let's see how to translate them for your multilingual sites. Toolset comes from the same team behind WPML so the integration is seamless.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Go to the <strong>WPML <\/strong>\u2192<strong> Translation Management<\/strong> page.<\/li><li>Use the dropdown in the top search section, select <strong>Content Template, <\/strong>and click <strong>Filter<\/strong>.<\/li><li>Select the template you want to send for translation.<\/li><li>Select the languages you want to translate the template into.<\/li><li>Click <strong>Add selected content to the translation basket<\/strong>.<\/li><\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\" tb-image tb-image-media aligncenter\" data-toolset-blocks-image=\"c007482c162c2a2f6263c48fe9c6a6de\"><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/wpml-translation-management.png\"><img decoding=\"async\" width=\"1752\" height=\"898\" loading=\"lazy\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/wpml-translation-management.png\" alt=\"\" class=\"wp-image-7818575\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/wpml-translation-management.png 1752w, https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/wpml-translation-management-300x154.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/wpml-translation-management-1024x525.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/wpml-translation-management-150x77.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/wpml-translation-management-768x394.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/wpml-translation-management-1536x787.png 1536w\" sizes=\"auto, (max-width: 1752px) 100vw, 1752px\" \/><\/a><div class=\"tb-image-caption\"><figcaption>Sending a Toolset template for translation<\/figcaption><\/div><\/figure>\n<\/div>\n\n\n<ol class=\"wp-block-list\" start=\"6\"><li>Finally, click the <strong>Translation Basket<\/strong> tab, select the translator you want to use, and click <strong>Send all items for translation<\/strong>.<\/li><\/ol>\n\n\n\n<p>If you want to translate the items yourself, simply go to the <strong>WPML <\/strong>\u2192 <strong>Translations <\/strong>page and click the<strong> Take and translate<\/strong> button next to the translation job you want to do.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Build advanced dynamic sites with Toolset<\/h2>\n\n\n\n<p>This tutorial shows only a tiny bit of what you can build with <a href=\"http:\/\/www.toolset.com\">Toolset<\/a>:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Design custom lists of posts<\/li><li>Build advanced custom searches<\/li><li>Display posts on a map<\/li><li>Create front-end forms for submitting posts<\/li><li>Design custom archive pages<\/li><li>Create custom WooCommerce sites<\/li><li>Connect content through advanced post relationships<\/li><\/ul>\n\n\n\n<p>And much more!<\/p>\n\n\n\n<p>Toolset also comes with complete tutorials on creating <a href=\"https:\/\/toolset.com\/course\/wordpress-directory-and-classifieds-sites\/\">directory sites<\/a>, <a href=\"https:\/\/toolset.com\/course\/custom-woocommerce-sites\/\">custom WooCommerce sites<\/a>, <a href=\"https:\/\/toolset.com\/course\/custom-woocommerce-sites\/\">membership sites<\/a>, and more.<\/p>\n\n\n\n<p><a href=\"https:\/\/toolset.com\/buy\/\">Toolset starts at only $69<\/a> for a complete package for one site. If you\u2019re interested in Toolset, there\u2019s a 30% discount waiting for you on our <a href=\"\/?page_id=2869157\">coupons page<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we show how to create templates for custom posts types in multilingual sites. We\u2019ll design the template visually and use WPML to translate it. Today, WordPress's default editor is the Block Editor (aka Gutenberg). It's a visual editor that's become a reliable and mature tool. We'll use it to design our templates, [&hellip;]<\/p>\n","protected":false},"author":76577,"featured_media":8286917,"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":[8],"tags":[],"class_list":["post-7817687","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"spectra_custom_meta":{"_subscription_coupon_product_id":["0"],"_wpml_word_count":["657"],"_wpv_contains_gutenberg_views":[""],"toolset_post_editor_mode":["block"],"_edit_lock":["1620653278:228164"],"_alp_processed":["1615476899"],"_edit_last":["228164"],"_views_template":["0"],"_wpml_media_duplicate":["1"],"_wpml_media_featured":["1"],"_yoast_wpseo_content_score":["60"],"_wpml_location_migration_done":["1"],"_oembed_5e8df2516266121437209eed99b155c8":["<iframe title=\"How to design templates for custom content using Toolset Blocks\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/ZfudEx64gFk?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_5e8df2516266121437209eed99b155c8":["1615476902"],"ratings_users":["0"],"ratings_score":["0"],"ratings_average":["0"],"_oembed_b9ed4048f72ad6c7db9e194b36b2ddd7":["<iframe title=\"Add a Custom Language in WPML\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/gbdbEOQA0Kw?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_b9ed4048f72ad6c7db9e194b36b2ddd7":["1613484898"],"_oembed_809539948dec7d9364864e7814a4a558":["<iframe title=\"How we translate wpml.org\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/FxScQ-bkOXo?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_809539948dec7d9364864e7814a4a558":["1614891044"],"_thumbnail_id":["8286917"],"_yoast_wpseo_primary_category":["8"],"_yoast_wpseo_estimated-reading-time-minutes":["4"],"_yoast_wpseo_opengraph-image":["https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/fb-5.png"],"_yoast_wpseo_opengraph-image-id":["8287081"],"_yoast_wpseo_twitter-image":["https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/twitter-1-2.png"],"_yoast_wpseo_twitter-image-id":["8287107"],"_oembed_085e890236af876c824fa92e59328670":["<iframe title=\"Translating Menus in WPML\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/aFQuEGQs19c?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_085e890236af876c824fa92e59328670":["1619017433"],"_oembed_bb1b191ac01b88ca66d2e8506a6c7792":["<iframe title=\"How to find a WPML Email with your Account Information\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/FD42SGp2h3U?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_bb1b191ac01b88ca66d2e8506a6c7792":["1620043146"],"_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":["1620043146"],"_oembed_8f4dd281fde949aaaec897e32bbedb6b":["<iframe title=\"Doing a Test Translation with Translation Services\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/ozBasV4sNCs?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_8f4dd281fde949aaaec897e32bbedb6b":["1620043146"],"_oembed_5a55d53e37a9b5cf0a1196915e7af25d":["<iframe title=\"Create Multilingual Contact Forms using Contact Form 7 and WPML\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/YC1LAMt6kvk?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_5a55d53e37a9b5cf0a1196915e7af25d":["1627551052"],"_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":["1635369377"],"_oembed_68f0d0000b16131319f633f9dc82351e":["<iframe title=\"Types 2 3 alpha1 with many-to-many relationship, repeating field groups and more\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/R73ilwkogSk?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_68f0d0000b16131319f633f9dc82351e":["1635369377"],"_oembed_8e3ce7abe0047a80461959d9b945fffe":["<iframe title=\"theme_localization.mp4\" width=\"525\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/d4wK1AICl_w?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_8e3ce7abe0047a80461959d9b945fffe":["1639412970"],"_oembed_d617e060b7133aea5401c0d73edbabae":["<iframe title=\"Using WPML to easily translate pages you build visually\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/AzxsHDjMA48?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_d617e060b7133aea5401c0d73edbabae":["1640539390"],"_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":["1640539390"],"_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":["1640539390"],"_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":["1640539390"],"_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":["1645606842"],"_oembed_9596c0d9095e7ce9cc90624324ef4422":["<iframe title=\"Duplicator For WordPress Quick Overview\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/yZ7pHmR9JC8?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_9596c0d9095e7ce9cc90624324ef4422":["1646615184"],"_oembed_12570cf8030926800bac0f1584e1e153":["<iframe title=\"How to use the backup wizard in cpanel\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/eS-tCkc-gm0?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_12570cf8030926800bac0f1584e1e153":["1646615184"],"_oembed_1c0ef2e069ab1e666be8a1bac83a42ee":["{{unknown}}"],"_oembed_e9018e6807d31b4505b7ad464275fdce":["<iframe title=\"How to copy multiple accounts from another server to your WHM server using SSH\" width=\"525\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/C6ro9h0qowU?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_e9018e6807d31b4505b7ad464275fdce":["1646615184"],"_oembed_9052213bd50132682bbabb79e50bace9":["<iframe title=\"How to use FTP to upload files to WordPress for Beginners\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/_nDQz1JQfYA?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_9052213bd50132682bbabb79e50bace9":["1646615184"],"_oembed_cfcc8d32f359dd000173b240cccb4392":["{{unknown}}"],"_oembed_bbf56b1d4c25ce11481afba39f176f85":["<iframe title=\"Using WPML to translate content created with page builders\" width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/MSqNzrdPMkE?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_bbf56b1d4c25ce11481afba39f176f85":["1661597256"],"_oembed_8631ce55de250fba0cc0768ef0e446d5":["{{unknown}}"],"_oembed_f90d7acce1be2efb8a597da9feb623da":["{{unknown}}"],"_oembed_4df63268970b52a287fd50ba6fc399cb":["{{unknown}}"],"_uag_css_file_name":["uag-css-7817687.css"]},"uagb_featured_image_src":{"full":["https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/create-and-translate-templates.png",1024,800,false],"thumbnail":["https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/create-and-translate-templates-150x117.png",150,117,true],"medium":["https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/create-and-translate-templates-300x234.png",300,234,true],"medium_large":["https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/create-and-translate-templates-768x600.png",768,600,true],"large":["https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/create-and-translate-templates.png",1024,800,false],"1536x1536":["https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/create-and-translate-templates.png",1024,800,false],"2048x2048":["https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/create-and-translate-templates.png",1024,800,false],"gform-image-choice-sm":["https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/create-and-translate-templates.png",300,234,false],"gform-image-choice-md":["https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/create-and-translate-templates.png",400,313,false],"gform-image-choice-lg":["https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/create-and-translate-templates.png",600,469,false],"woocommerce_thumbnail":["https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/create-and-translate-templates-150x150.png",150,150,true],"woocommerce_single":["https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/create-and-translate-templates-300x234.png",300,234,true],"woocommerce_gallery_thumbnail":["https:\/\/wpml.org\/wp-content\/uploads\/2021\/01\/create-and-translate-templates-100x100.png",100,100,true]},"uagb_author_info":{"display_name":"Dario","author_link":"https:\/\/wpml.org\/he\/author\/darioh\/"},"uagb_comment_info":0,"uagb_excerpt":"In this tutorial, we show how to create templates for custom posts types in multilingual sites. We\u2019ll design the template visually and use WPML to translate it. Today, WordPress's default editor is the Block Editor (aka Gutenberg). It's a visual editor that's become a reliable and mature tool. We'll use it to design our templates,&hellip;","_links":{"self":[{"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/posts\/7817687","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/users\/76577"}],"replies":[{"embeddable":true,"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/comments?post=7817687"}],"version-history":[{"count":8,"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/posts\/7817687\/revisions"}],"predecessor-version":[{"id":7822299,"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/posts\/7817687\/revisions\/7822299"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/media\/8286917"}],"wp:attachment":[{"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/media?parent=7817687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/categories?post=7817687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpml.org\/he\/wp-json\/wp\/v2\/tags?post=7817687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}