{"id":6428,"date":"2025-03-31T11:15:56","date_gmt":"2025-03-31T02:15:56","guid":{"rendered":"https:\/\/cooss.net\/rewrite-slug-in-jetengines-custom-post-type-settings-en\/"},"modified":"2025-03-31T11:15:56","modified_gmt":"2025-03-31T02:15:56","slug":"rewrite-slug-in-jetengines-custom-post-type-settings-en","status":"publish","type":"post","link":"https:\/\/cooss.net\/en\/rewrite-slug-in-jetengines-custom-post-type-settings-en\/","title":{"rendered":"Rewrite Slug in JetEngine&#8217;s Custom Post Type settings"},"content":{"rendered":"\n<p>Let&#8217;s explore how setting the Rewrite Slug option in JetEngine affects website management. The following illustration pertains to the Rewrite Slug item, and this setting holds significance beyond merely enhancing the readability of URLs.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"949\" height=\"258\" src=\"https:\/\/cooss.net\/wp-content\/uploads\/2025\/03\/image-17.png\" alt=\"\" class=\"wp-image-6384\" title=\"\" srcset=\"https:\/\/cooss.net\/wp-content\/uploads\/2025\/03\/image-17.png 949w, https:\/\/cooss.net\/wp-content\/uploads\/2025\/03\/image-17-300x82.png 300w, https:\/\/cooss.net\/wp-content\/uploads\/2025\/03\/image-17-768x209.png 768w, https:\/\/cooss.net\/wp-content\/uploads\/2025\/03\/image-17-600x163.png 600w\" sizes=\"(max-width: 949px) 100vw, 949px\" \/><\/figure>\n\n\n\n<p>For concepts related to Custom Post Type, or the items above regarding Register Query Var and Rewrite, please refer to the post below.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-16018d1d wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-width wp-block-button__width-100\"><a class=\"wp-block-button__link has-vivid-purple-background-color has-background wp-element-button\" href=\"https:\/\/cooss.net\/jetengine%ec%9d%98-post-type-%ec%84%a4%ec%a0%95%ea%b3%bc-seo-%ec%b5%9c%ec%a0%81%ed%99%94\/\" style=\"border-radius:10px\">JetEngine CPT Settings and Search Engine Indexing<\/a><\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">What is Rewrite Slug?<\/h2>\n\n\n\n<p>Rewrite Slug is a feature that adjusts the permalink structure of custom post types (CPT) in WordPress. By default, it is the same as the CPT slug, but it can be restructured in a user-friendly way. This helps users have a better experience while navigating the website and positively impacts search engine optimization (SEO).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example 1: Default Structure<\/h3>\n\n\n\n<p>If the CPT classification name is entered as &#8216;project&#8217; and no separate Rewrite Slug setting is made, the permalink will be displayed as follows.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>CPT Slug: project<\/li>\n\n\n\n<li>No Rewrite Slug setting (default used)<\/li>\n\n\n\n<li>Permalink result: <code>https:\/\/example.com\/<strong>project<\/strong>\/project-name<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Example 2: When Setting Rewrite Slug<\/h3>\n\n\n\n<p>If the CPT classification name is entered as &#8216;project&#8217; and the Rewrite Slug setting is specified as &#8216;portfolio&#8217;, the permalink will change as follows.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>CPT Slug: project<\/li>\n\n\n\n<li>Rewrite Slug: portfolio<\/li>\n\n\n\n<li>Permalink result: <code>https:\/\/example.com\/<strong>portfolio<\/strong>\/project-name<\/code><\/li>\n<\/ul>\n\n\n\n<p>As seen in the examples above, setting the Rewrite Slug is useful when you want to adjust the URL to be more meaningful to users as needed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why is Rewrite Slug Necessary?<\/h2>\n\n\n\n<p>This setting serves various purposes and is frequently used in practice. Let&#8217;s take a look.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Branding and Marketing Purposes<\/h3>\n\n\n\n<p>If a user&#8217;s URL aligns with brand identity, it can enhance credibility. For instance, while the actual CPT name is <code>case_study<\/code>, the URL seen by users can be changed to <code>\/success\/project-title<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Reusable Structure for CPT<\/h3>\n\n\n\n<p>When registering multiple custom post types, you can keep the original names the same while setting different URLs. For example, <code>listing_type_a<\/code> can be set to <code>jobs<\/code>, while <code>listing_type_b<\/code> can be set to <code>properties<\/code>.<\/p>\n\n\n\n<p>In other words, the names managed internally can be set as &#8216;***_a&#8217;, &#8216;***_b&#8217;, etc., while the addresses shown to visitors can be different.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Multilingual Support<\/h3>\n\n\n\n<p>On multilingual websites, slugs can be set according to the language; for example, the Korean <code>\ub9ac\ubdf0<\/code> and the English <code>testimonials<\/code> can be matched by language.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">When is it Useful?<\/h2>\n\n\n\n<p>Let&#8217;s summarize when the Rewrite Slug setting is helpful.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Situation<\/th><th>Usefulness<\/th><\/tr><\/thead><tbody><tr><td>When URL branding is important<\/td><td>Very useful<\/td><\/tr><tr><td>When you only want to change the displayed URL<\/td><td>Useful<\/td><\/tr><tr><td>Inserting keywords for SEO<\/td><td>Appropriate<\/td><\/tr><tr><td>Multilingual permalink support<\/td><td>Development needed<\/td><\/tr><tr><td>CPT used only with REST API<\/td><td>Unnecessary<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Cautions<\/h2>\n\n\n\n<p><strong>After setting to Rewrite On,<\/strong> you must click <strong>\u201cSave Changes\u201d<\/strong> on the <strong>Permalink settings page<\/strong> without changing anything.<\/p>\n\n\n\n<p>This setting is designated in <a href=\"https:\/\/crocoblock.com\/plugins\/jetengine\/?ref=882\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>JetEngine<\/strong><\/a>, but the application of rewrite rules follows WordPress management, and only after this will the rewrite rules be registered in WordPress.<\/p>\n\n\n\n<p>If you change the Rewrite Slug to another name after writing posts with the designated Post Type and exposing them to search engines, the search engines will already have indexed the existing name, resulting in a situation where clicking on search results leads to a non-existent page.<\/p>\n\n\n\n<p>Therefore, it is advisable to complete such settings before writing the first post (or before exposing it to search engines).<\/p>\n\n\n\n<p>If changes are made reluctantly after posts have already been written and indexed by search engines, the existing slug name may be indexed while new slugs are perceived as separate posts or recognized as duplicate content, potentially lowering site credibility, and visitors clicking on search result links displayed with the old slug may see a non-existent page, necessitating 301 redirection processing.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Conclusion<\/h3>\n\n\n\n<p>Rewrite Slug is an important setting that can enhance the expressiveness and branding of URLs. It is especially advisable to use it actively in projects sensitive to SEO, marketing, and user experience.<\/p>\n\n\n\n<div style=\"margin-top: 10px;margin-bottom: 30px;border-top: 1px solid #ccc\">&nbsp;<\/div>\n\n\n\n<p><b>[Rewrite Slug] :<\/b> A feature that adjusts the permalink structure of custom post types (CPT) in a user-friendly manner.<br><b>[CPT] :<\/b> Custom Post Type, which allows you to add your own content types in addition to the default posts and pages.<br><b>[SEO] :<\/b> Search Engine Optimization, which refers to the process of optimizing the structure and content of a website to be exposed in search engines.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s explore how setting the Rewrite Slug option in JetEngine affects website management. The following illustration pertains to the Rewrite Slug item, and this setting holds significance beyond merely enhancing the readability of URLs. For concepts related to Custom Post Type, or the items above regarding Register Query Var and Rewrite, please refer to the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[175],"tags":[],"class_list":["post-6428","post","type-post","status-publish","format-standard","hentry","category-crocoblock-en"],"_links":{"self":[{"href":"https:\/\/cooss.net\/en\/wp-json\/wp\/v2\/posts\/6428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cooss.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cooss.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cooss.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cooss.net\/en\/wp-json\/wp\/v2\/comments?post=6428"}],"version-history":[{"count":0,"href":"https:\/\/cooss.net\/en\/wp-json\/wp\/v2\/posts\/6428\/revisions"}],"wp:attachment":[{"href":"https:\/\/cooss.net\/en\/wp-json\/wp\/v2\/media?parent=6428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cooss.net\/en\/wp-json\/wp\/v2\/categories?post=6428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cooss.net\/en\/wp-json\/wp\/v2\/tags?post=6428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}