{"id":4750,"date":"2018-05-14T18:00:10","date_gmt":"2018-05-14T12:30:10","guid":{"rendered":"https:\/\/phpyouth.com\/blog\/?p=4750"},"modified":"2025-10-13T15:11:20","modified_gmt":"2025-10-13T09:41:20","slug":"make-taxonomy-slug-seo-friendly","status":"publish","type":"post","link":"https:\/\/phpyouth.com\/blog\/make-taxonomy-slug-seo-friendly\/","title":{"rendered":"Make Taxonomy Slug SEO Friendly"},"content":{"rendered":"<p>Hello Friends,<br \/>\nToday, we will talk about <strong>how to make our website taxonomy slugs SEO friendly<\/strong>. First, we will give you a tip for <em>SEO Friendly URL<\/em>, this is an important part to make a website SEO friendly. Sometimes developers use <em>underscores<\/em> to separate words in the URL of Pages\/Posts instead of using <em>dashes<\/em>. <em>Underscore<\/em> is a bad thing in a URL from a SEO perspective. If you want to make a website SEO friendly, then we have to use <em>dashes<\/em> instead of <em>underscores<\/em>.<\/p>\n<p>Wait, let me show you an example, the URL in the screenshot is not an SEO friendly URL:<\/p>\n<p><a href=\"https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/05\/slug.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-4753\" src=\"https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/05\/slug.png\" alt=\"underscore in slug\" width=\"993\" height=\"504\" title=\"\" srcset=\"https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/05\/slug.png 993w, https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/05\/slug-300x152.png 300w, https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/05\/slug-768x390.png 768w\" sizes=\"(max-width: 993px) 100vw, 993px\" \/><\/a><\/p>\n<p>Above is an example of a single Portfolio page, where you will see that there is an <em>underscore<\/em> that separates\u00a0<em>portfolio &amp; items<\/em> in the URL. Many paid WordPress themes don&#8217;t have the feature to make a custom slug for these types of taxonomies, like Portfolio, Courses, etc&#8230;<\/p>\n<p>So today, we will learn <strong>how to make taxonomy slug SEO friendly<\/strong>. Friends, you have to follow the steps below:<\/p>\n<p><strong>STEP 1:<\/strong> Open your activated child theme\u2019s folder, then locate the functions.php file. Now, copy the code below and paste it at the end of that file.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nfunction py_modify_taxonomy() {\n    \/\/ get the arguments of the already-registered taxonomy\n    $people_category_args = get_taxonomy( &amp;#039;projects_category&amp;#039; );\n    $people_category_args-&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp; gt;show_admin_column = true;\n    $people_category_args-&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;rewrite&#x5B;&amp;#039;slug&amp;#039;] = &amp;#039;projects&amp;#039;;\n    $people_category_args-&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp; gt; rewrite&#x5B;&amp;#039;with_front&amp;#039;] = false;\n\n&lt;pre&gt;&lt;code&gt;\/\/ re-register the taxonomy\nregister_taxonomy( &amp;amp;#039;projects_category&amp;amp;#039;, &amp;amp;#039;projects&amp;amp;#039;, (array) $people_category_args );\n&lt;\/code&gt;&lt;\/pre&gt;\n\n}\n\/\/ hook it up to 11 so that it overrides the original register_taxonomy function\nadd_action( &amp;#039;init&amp;#039;, &amp;#039;py_modify_taxonomy&amp;#039;, 11 );\n<\/pre>\n<p><strong>STEP 2:<\/strong> In the above code, replace &#8216;project_category&#8217; with either &#8216;projects&#8217; or &#8216;project-category&#8217;. After that, update your functions.php file to apply the changes.<\/p>\n<p><strong>STEP 3:<\/strong> After updating the functions.php file, go to Settings &gt; Permalinks.<\/p>\n<p><a href=\"https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/05\/setting-permalinks.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-4765\" src=\"https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/05\/setting-permalinks.png\" alt=\"setting-permalinks\" width=\"317\" height=\"184\" title=\"\" srcset=\"https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/05\/setting-permalinks.png 317w, https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/05\/setting-permalinks-300x174.png 300w\" sizes=\"(max-width: 317px) 100vw, 317px\" \/><\/a><\/p>\n<p><strong>STEP 4:<\/strong> On the Permalinks page, scroll to the bottom and hit the <em>Publish <\/em>button. You will see that <em>underscores <\/em>have been replaced with either text or a dash as per your need. Thanks<\/p>\n<p><a href=\"https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/05\/Slug2.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-4754\" src=\"https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/05\/Slug2.png\" alt=\"Slug changed\" width=\"989\" height=\"500\" title=\"\" srcset=\"https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/05\/Slug2.png 989w, https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/05\/Slug2-300x152.png 300w, https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/05\/Slug2-768x388.png 768w\" sizes=\"(max-width: 989px) 100vw, 989px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.hostg.xyz\/aff_c?offer_id=6&amp;aff_id=115521&amp;url_id=35&amp;file_id=1399\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/media.go2speed.org\/brand\/files\/hostinger\/6\/EN-970x250.jpg\" width=\"970\" height=\"250\" border=\"0\" alt=\"\" title=\"\"><\/a><img loading=\"lazy\" decoding=\"async\" style=\"position: absolute; visibility: hidden;\" src=\"https:\/\/www.hostg.xyz\/aff_i?offer_id=6&amp;file_id=1399&amp;aff_id=115521&amp;url_id=35\" width=\"0\" height=\"0\" border=\"0\" alt=\"\" title=\"\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello Friends, Today, we will talk about how to make our website taxonomy slugs SEO friendly. First, we will give you a tip for SEO Friendly URL, this is an important part to make a website SEO friendly. Sometimes developers use underscores to separate words in the URL of Pages\/Posts instead of using dashes. Underscore [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4768,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[96,4],"tags":[146,145,149,144,148,147],"class_list":["post-4750","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-seo","category-wordpress","tag-child-theme","tag-function-php","tag-remove-underscore","tag-seo-friendly-url","tag-slug","tag-taxonomy"],"acf":[],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8zepR-1eC","jetpack_likes_enabled":true,"jetpack-related-posts":[{"id":6526,"url":"https:\/\/phpyouth.com\/blog\/top-website-builder-platforms\/","url_meta":{"origin":4750,"position":0},"title":"Top Website Builder Platforms in 2023","author":"RK Jajoria","date":"May 8, 2023","format":false,"excerpt":"Hello everyone, in 2023, creating a website that is both user-friendly and SEO-optimized has become more accessible than ever. However, choosing the right website builder platforms among the top website builder platforms remains a critical decision for business owners, entrepreneurs, and organizations. This article provides a concise overview of the\u2026","rel":"","context":"In &quot;Website Builders&quot;","block_context":{"text":"Website Builders","link":"https:\/\/phpyouth.com\/blog\/category\/website-builders\/"},"img":{"alt_text":"website builder platforms","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/12\/Top-Website-Builder-Plateforms-in-2023.webp?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/12\/Top-Website-Builder-Plateforms-in-2023.webp?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/12\/Top-Website-Builder-Plateforms-in-2023.webp?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/12\/Top-Website-Builder-Plateforms-in-2023.webp?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":9181,"url":"https:\/\/phpyouth.com\/blog\/translatepress-wordpress-plugin-guide\/","url_meta":{"origin":4750,"position":1},"title":"TranslatePress WordPress Plugin Guide (2026): Setup, SEO &#038; Multilingual Sites","author":"RK Jajoria","date":"September 4, 2025","format":false,"excerpt":"If you want a WordPress site that reaches beyond one language market, translation stopped being optional a while ago \u2014 it's now table stakes. A well-built multilingual site improves user experience and can meaningfully lift your search visibility in the countries you're targeting. That's the gap TranslatePress is built to\u2026","rel":"","context":"In &quot;Plugins&quot;","block_context":{"text":"Plugins","link":"https:\/\/phpyouth.com\/blog\/category\/wordpress\/plugins\/"},"img":{"alt_text":"translatePress","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/09\/TranslatePress-Plugin-Multilingual-Sites.webp?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/09\/TranslatePress-Plugin-Multilingual-Sites.webp?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/09\/TranslatePress-Plugin-Multilingual-Sites.webp?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/09\/TranslatePress-Plugin-Multilingual-Sites.webp?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/09\/TranslatePress-Plugin-Multilingual-Sites.webp?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/09\/TranslatePress-Plugin-Multilingual-Sites.webp?resize=1400%2C800&ssl=1 4x"},"classes":[]},{"id":10715,"url":"https:\/\/phpyouth.com\/blog\/seo-for-nanny-agencies\/","url_meta":{"origin":4750,"position":2},"title":"SEO for Nanny Agencies","author":"RK Jajoria","date":"November 18, 2025","format":false,"excerpt":"In today\u2019s digital world, families do not flip through directories to find childcare help; they search online. Therefore, SEO for nanny agencies has become one of the most powerful tools to grow your business, attract quality leads, and build long-term credibility. If you run a nanny placement agency, childcare staffing\u2026","rel":"","context":"In &quot;SEO&quot;","block_context":{"text":"SEO","link":"https:\/\/phpyouth.com\/blog\/category\/seo\/"},"img":{"alt_text":"SEO for Nanny Agencies","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/11\/SEO-for-Nanny-Agencies.webp?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/11\/SEO-for-Nanny-Agencies.webp?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/11\/SEO-for-Nanny-Agencies.webp?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2025\/11\/SEO-for-Nanny-Agencies.webp?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":11953,"url":"https:\/\/phpyouth.com\/blog\/ai-search-optimization-wordpress-2026\/","url_meta":{"origin":4750,"position":3},"title":"AI Search Optimization for WordPress in 2026: The Complete Future-Ready SEO Guide","author":"RK Jajoria","date":"March 5, 2026","format":false,"excerpt":"AI Search Optimization for WordPress 2026 is becoming essential as search behavior has changed dramatically over the past few years. In 2026, users no longer rely only on traditional Google search results. Instead, they ask\u00a0AI tools like\u00a0ChatGPT,\u00a0Gemini, Perplexity, and voice assistants for\u00a0instant answers. This shift means website owners must rethink\u2026","rel":"","context":"In &quot;SEO&quot;","block_context":{"text":"SEO","link":"https:\/\/phpyouth.com\/blog\/category\/seo\/"},"img":{"alt_text":"AI Search Optimization for WordPress 2026","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/01\/AI-search-optimization-for-wordpress-in-2026-2.webp?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/01\/AI-search-optimization-for-wordpress-in-2026-2.webp?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/01\/AI-search-optimization-for-wordpress-in-2026-2.webp?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/01\/AI-search-optimization-for-wordpress-in-2026-2.webp?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":12982,"url":"https:\/\/phpyouth.com\/blog\/how-to-market-a-law-firm-proven-strategies\/","url_meta":{"origin":4750,"position":4},"title":"How to Market a Law Firm: Proven Strategies to Attract More Clients and Grow Your Practice","author":"Php Youth","date":"July 14, 2026","format":false,"excerpt":"How to Market a Law Firm Running a successful law firm requires more than legal expertise. In today's competitive market, firms need a well-planned marketing strategy to attract new clients, strengthen their reputation, and build long-term growth. Whether you're an independent attorney or managing a large legal practice, understanding how\u2026","rel":"","context":"In &quot;Google Adsense&quot;","block_context":{"text":"Google Adsense","link":"https:\/\/phpyouth.com\/blog\/category\/google-adsense\/"},"img":{"alt_text":"how to market a law firm","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/07\/how-to-market-a-law-firm.webp?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/07\/how-to-market-a-law-firm.webp?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/07\/how-to-market-a-law-firm.webp?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2026\/07\/how-to-market-a-law-firm.webp?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":7148,"url":"https:\/\/phpyouth.com\/blog\/rank-math-seo-features\/","url_meta":{"origin":4750,"position":5},"title":"16 Best Free Rank Math SEO Features You&#8217;re Not Using in 2026","author":"RK Jajoria","date":"May 23, 2024","format":false,"excerpt":"Quick answer: There are at least sixteen essential Rank Math SEO features that most WordPress sites never turn on. That list runs from an AI writing assistant to a one click WooCommerce noindex rule. Most of these Rank Math SEO features sit buried in a settings menu nobody opens twice.\u2026","rel":"","context":"In &quot;SEO&quot;","block_context":{"text":"SEO","link":"https:\/\/phpyouth.com\/blog\/category\/seo\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2024\/05\/rank-math-seo-features.webp?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2024\/05\/rank-math-seo-features.webp?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2024\/05\/rank-math-seo-features.webp?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2024\/05\/rank-math-seo-features.webp?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2024\/05\/rank-math-seo-features.webp?resize=1050%2C600&ssl=1 3x, https:\/\/i0.wp.com\/phpyouth.com\/blog\/wp-content\/uploads\/2024\/05\/rank-math-seo-features.webp?resize=1400%2C800&ssl=1 4x"},"classes":[]}],"jetpack_featured_media_url":"https:\/\/phpyouth.com\/blog\/wp-content\/uploads\/2018\/05\/Taxonomy-Slug-SEO-Friendly.png","_links":{"self":[{"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/posts\/4750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/comments?post=4750"}],"version-history":[{"count":0,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/posts\/4750\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/media\/4768"}],"wp:attachment":[{"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/media?parent=4750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/categories?post=4750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phpyouth.com\/blog\/wp-json\/wp\/v2\/tags?post=4750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}