{"id":2626,"date":"2021-10-22T23:06:16","date_gmt":"2021-10-22T15:06:16","guid":{"rendered":"https:\/\/blog.brain1981.com\/?p=2626"},"modified":"2022-12-20T22:53:42","modified_gmt":"2022-12-20T14:53:42","slug":"wordpress%e8%87%aa%e5%ae%9a%e4%b9%89%e6%96%87%e7%ab%a0%e7%b1%bb%e5%9e%8b%e5%92%8c%e8%87%aa%e5%ae%9a%e4%b9%89%e5%88%86%e7%b1%bb%e5%85%b1%e7%94%a8%e5%90%8c%e4%b8%80%e4%b8%aa%e6%a0%b9%e8%b7%af%e5%be%84sl","status":"publish","type":"post","link":"https:\/\/blog.brain1981.com\/2626.html","title":{"rendered":"WordPress\u81ea\u5b9a\u4e49\u6587\u7ae0\u7c7b\u578b\u548c\u81ea\u5b9a\u4e49\u5206\u7c7b\u5171\u7528\u540c\u4e00\u4e2a\u6839\u8def\u5f84slug"},"content":{"rendered":"<p>\u5728WordPress\u4e2d\u5982\u679c\u6ce8\u518c\u4e00\u4e2a\u81ea\u5b9a\u4e49\u6587\u7ae0\u7c7b\u578b\uff08Custom Post Type\uff09\uff0c\u5e76\u4e14\u540c\u65f6\u4e3a\u8fd9\u4e2a\u7c7b\u578b\u6ce8\u518c\u4e00\u4e2a\u81ea\u5b9a\u4e49\u5206\u7c7b\u6cd5\uff08Custom Taxonomy\uff09\uff0c\u4e24\u8005\u4f7f\u7528\u540c\u4e00\u4e2a\u6839slug\uff0c\u8bbf\u95ee\u8fd9\u4e2a\u7c7b\u578b\u7684\u9875\u9762\u5c31\u4f1a\u53d1\u751f404\u62a5\u9519\u3002<\/p>\n<p>\u8fd9\u4e2aslug\u5177\u4f53\u6307\u4ec0\u4e48\u5462\uff1f\u4e3e\u4f8b\u8bf4\u660e\uff1a<br \/>\n<code>https:\/\/www.my-site.com\/product\/123.html<br \/>\nhttps:\/\/www.my-site.com\/product\/term-name<\/code><\/p>\n<p>\u4ee5\u4e0aURL\u5206\u522b\u4f5c\u4e3aproduct\u7c7b\u578b\u9875\u9762\u7684\u8be6\u60c5\u9875\u548c\u5206\u7c7b\u5217\u8868\u9875\uff0cURL\u4e2d\u7684product\u5c31\u662f\u6839slug\u3002\u5728\u4f7f\u7528register_post_type\u6ce8\u518cproduct\u6587\u7ae0\u7c7b\u578b\u7684\u65f6\u5019\uff0c\u4ee3\u7801\u4f53\u73b0\u4e3a\uff1a<\/p>\n<pre lang=\"PHP\" line=\"1\">\r\nadd_action('init', 'create_product_post_type', 0);\r\nfunction create_product_post_type() {\t\r\n\tregister_post_type('product', array(\r\n\t\t'label' => 'Products',\r\n\t\t'public' => true,\r\n\t\t'show_ui' => true,\r\n\t\t'show_in_menu' => true,\r\n\t\t'capability_type' => 'post',\r\n\t\t'hierarchical' => false,\r\n\t\t'rewrite' => array('slug' => 'product'), \/\/\u6ce8\u610f\u6b64\u884c\r\n\t\t'supports' => array('title','editor','thumbnail'),\r\n\t\t'labels' => array (\r\n\t\t\t'name' => 'Products',\r\n\t\t\t'singular_name' => 'Product',\r\n\t\t\t'menu_name' => 'Products'\r\n\t\t\t)\r\n\t\t)\r\n\t);\r\n}\r\n<\/pre>\n<p>\u6ce8\u610f\u7b2c11\u884c\u7684rewrite\u53c2\u6570\uff0c\u5c31\u4e3a\u6b64\u81ea\u5b9a\u4e49\u7c7b\u578b\u6307\u5b9a\u4e86\u6839slug\uff0c\u5373\u5f62\u6210\u5982\u4e0burl\uff1a<br \/>\n<code>https:\/\/www.my-site.com\/product\/123.html<\/code><!--more--><\/p>\n<p>\u518d\u6765\u6ce8\u518c\u81ea\u5b9a\u4e49\u5206\u7c7b\u6cd5\uff0c\u8fd9\u91cc\u7684\u5206\u7c7b\u6cd5\u540d\u79f0\u4e3aproduct_category\uff1a<\/p>\n<pre lang=\"PHP\" line=\"1\">\r\nadd_action( 'init', 'create_product_taxonomies', 0 );\r\nfunction create_product_taxonomies() {\r\n\tregister_taxonomy(\r\n\t\t'product_category',\r\n\t\t'product',\r\n\t\tarray(\r\n\t\t\t'labels' => array(\r\n\t\t\t\t'name' => 'Product Category'\r\n\t\t\t),\r\n\t\t\t'rewrite' => array('slug' => 'product'),\/\/\u6ce8\u610f\u6b64\u884c\r\n\t\t\t'show_ui' => true,\r\n\t\t\t'show_tagcloud' => false,\r\n\t\t\t'hierarchical' => true\r\n\t\t)\r\n\t);\r\n}\r\n<\/pre>\n<p>\u6ce8\u610f\u7b2c10\u884c\u7684rewrite\u53c2\u6570\uff0c\u4e3a\u6b64\u81ea\u5b9a\u4e49\u5206\u7c7b\u6307\u5b9a\u4e86\u6839slug\uff0c\u5373\u5f62\u6210\u5982\u4e0burl\uff1a<br \/>\n<code>https:\/\/www.my-site.com\/product\/term-name<\/code><br \/>\n\u4f46\u5b9e\u9645\u4e0a\u6211\u4eec\u6ce8\u518c\u5b8c\u6bd5\u540e\uff0c\u524d\u7aef\u9875\u9762\u4f1a\u5728\u81ea\u5b9a\u4e49\u5206\u7c7b\u7684URL\u4ea7\u751f404\u62a5\u9519\u3002<\/p>\n<p>\u5047\u5982\u53bb\u6389\u7b2c10\u884c\u4ee3\u7801\uff0c\u9ed8\u8ba4\u7684slug\u4f1a\u53d8\u6210product_category\uff0c\u5373\u5206\u7c7b\u540d\u79f0\uff0c\u8fd9\u65f6\u5019url\u4f1a\u53d8\u6210<br \/>\n<code>https:\/\/www.my-site.com\/product_category\/term-name<\/code><br \/>\n\u8fd9\u6837\u867d\u7136\u4e0d\u4f1a\u62a5\u9519\uff0c\u4f46url\u6bd4\u8f83\u96be\u770b\uff0c\u4e5f\u4e0d\u5229\u4e8eSEO\u3002<\/p>\n<p>\u8981\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u9700\u8981\u5728\u6ce8\u518c\u81ea\u5b9a\u4e49\u7c7b\u578b\u7684\u65f6\u5019\uff0c\u4fee\u6539\u53c2\u6570\u5982\u4e0b\uff1a<\/p>\n<pre lang=\"PHP\" line=\"1\">\r\nadd_action('init', 'create_product_post_type', 0);\r\nfunction create_product_post_type() {\t\r\n\tregister_post_type('product', array(\r\n\t\t'label' => 'Products',\r\n\t\t'public' => true,\r\n\t\t'show_ui' => true,\r\n\t\t'show_in_menu' => true,\r\n\t\t'capability_type' => 'post',\r\n\t\t'hierarchical' => false,\r\n\t\t'rewrite' => array('slug' => 'product\/%product_category%'), \/\/\u6ce8\u610f\u53c2\u6570\u4fee\u6539\r\n\t\t'has_archive' => 'product', \/\/\u6ce8\u610f\u6b64\u884c\u4e3a\u6dfb\u52a0\u7684\r\n\t\t'supports' => array('title','editor','thumbnail'),\r\n\t\t'labels' => array (\r\n\t\t\t'name' => 'Products',\r\n\t\t\t'singular_name' => 'Product',\r\n\t\t\t'menu_name' => 'Products'\r\n\t\t\t)\r\n\t\t)\r\n\t);\r\n}\r\n\r\nadd_action( 'init', 'create_product_taxonomies', 0 );\r\nfunction create_product_taxonomies() {\r\n\tregister_taxonomy(\r\n\t\t'product_category',\r\n\t\t'product',\r\n\t\tarray(\r\n\t\t\t'labels' => array(\r\n\t\t\t\t'name' => 'Product Category'\r\n\t\t\t),\r\n\t\t\t'rewrite' => array('slug' => 'product'), \/\/\u8fd9\u91cc\u7ef4\u6301\u539f\u6837\r\n\t\t\t'show_ui' => true,\r\n\t\t\t'show_tagcloud' => false,\r\n\t\t\t'hierarchical' => true\r\n\t\t)\r\n\t);\r\n}\r\n<\/pre>\n<p>\u6700\u540e\uff0c\u5728post_type_link\u94a9\u5b50\u4e0a\u6dfb\u52a0\u4ee3\u7801\u6839\u636e\u7c7b\u578b\u540d\u79f0\u66ff\u6362\u5b9e\u9645\u751f\u6210\u7684url\uff1a<\/p>\n<pre lang=\"PHP\" line=\"1\">\r\nadd_filter('post_type_link', 'custom_type_link', 1, 3);\r\nfunction custom_type_link( $link, $post = 0 ){\r\n\tif ( false !== strpos( $link, '%product_category%' ) ) {\r\n\t\t$taxonomy_terms = get_the_terms( $post->ID, 'product_category' );\r\n\t\tif( is_array($taxonomy_terms) ){\r\n\t\t\tforeach ( $taxonomy_terms as $term ) { \r\n\t\t\t\tif ( ! $term->parent ) {\r\n\t\t\t\t\t$link = str_replace( '%product_category%', $term->slug, $link );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn $link;\r\n}\r\n<\/pre>\n<p>\u5982\u6b64\uff0c\u4e24\u4e2aurl\u5c31\u80fd\u548c\u5e73\u5171\u5904\u4e86\u3002\u8fd9\u4e2a\u95ee\u9898\u7684\u4fee\u590d\u903b\u8f91\u662f\u8fd9\u6837\u7684\uff1a\u56e0\u5728\u4e24\u5904\u6ce8\u518crewrite\u7684\u65f6\u5019\u4f7f\u7528\u540c\u4e00\u4e2aslug\u540d\uff0c\u4f1a\u9020\u6210rewrite\u51b2\u7a81\uff0c\u4ea7\u751f404\u62a5\u9519\uff0c\u90a3\u4e48\u6211\u4eec\u5c31\u907f\u514d\u4f7f\u7528\u76f8\u540c\u7684slug\uff0c\u628a\u7b2c\u4e00\u5904\u7684slug\u6539\u6210&#8217;product\/%product_category%&#8217;\u7ed5\u5f00\u8fd9\u4e2a\u95ee\u9898\u3002\u5728\u5b9e\u9645\u751f\u6210url\u7684\u65f6\u5019\u518d\u628a\u7c7b\u578b\u540d\u66ff\u6362&#8217;%product_category%&#8217;\u5b57\u7b26\u4e32\uff0c\u4ece\u800c\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728WordPress\u4e2d\u5982\u679c\u6ce8\u518c\u4e00\u4e2a\u81ea\u5b9a\u4e49\u6587\u7ae0\u7c7b\u578b\uff08Custom Post Type\uff09\uff0c\u5e76\u4e14\u540c\u65f6\u4e3a\u8fd9\u4e2a\u7c7b\u578b\u6ce8\u518c\u4e00 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[91],"class_list":["post-2626","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-91"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WordPress\u81ea\u5b9a\u4e49\u6587\u7ae0\u7c7b\u578b\u548c\u81ea\u5b9a\u4e49\u5206\u7c7b\u5171\u7528\u540c\u4e00\u4e2a\u6839\u8def\u5f84slug - Brain\u7684\u6280\u672f\u7b14\u8bb0<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.brain1981.com\/2626.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress\u81ea\u5b9a\u4e49\u6587\u7ae0\u7c7b\u578b\u548c\u81ea\u5b9a\u4e49\u5206\u7c7b\u5171\u7528\u540c\u4e00\u4e2a\u6839\u8def\u5f84slug - Brain\u7684\u6280\u672f\u7b14\u8bb0\" \/>\n<meta property=\"og:description\" content=\"\u5728WordPress\u4e2d\u5982\u679c\u6ce8\u518c\u4e00\u4e2a\u81ea\u5b9a\u4e49\u6587\u7ae0\u7c7b\u578b\uff08Custom Post Type\uff09\uff0c\u5e76\u4e14\u540c\u65f6\u4e3a\u8fd9\u4e2a\u7c7b\u578b\u6ce8\u518c\u4e00 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.brain1981.com\/2626.html\" \/>\n<meta property=\"og:site_name\" content=\"Brain\u7684\u6280\u672f\u7b14\u8bb0\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-22T15:06:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-20T14:53:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.brain1981.com\/wp-content\/uploads\/2026\/01\/200.png\" \/>\n\t<meta property=\"og:image:width\" content=\"200\" \/>\n\t<meta property=\"og:image:height\" content=\"133\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Brain\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brain\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.brain1981.com\\\/2626.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.brain1981.com\\\/2626.html\"},\"author\":{\"name\":\"Brain\",\"@id\":\"https:\\\/\\\/blog.brain1981.com\\\/#\\\/schema\\\/person\\\/7689202bbb2f967b4c66309c1cc5e65d\"},\"headline\":\"WordPress\u81ea\u5b9a\u4e49\u6587\u7ae0\u7c7b\u578b\u548c\u81ea\u5b9a\u4e49\u5206\u7c7b\u5171\u7528\u540c\u4e00\u4e2a\u6839\u8def\u5f84slug\",\"datePublished\":\"2021-10-22T15:06:16+00:00\",\"dateModified\":\"2022-12-20T14:53:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.brain1981.com\\\/2626.html\"},\"wordCount\":50,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/blog.brain1981.com\\\/#\\\/schema\\\/person\\\/7689202bbb2f967b4c66309c1cc5e65d\"},\"keywords\":[\"\u81ea\u5b9a\u4e49\u7c7b\u578b\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/blog.brain1981.com\\\/2626.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.brain1981.com\\\/2626.html\",\"url\":\"https:\\\/\\\/blog.brain1981.com\\\/2626.html\",\"name\":\"WordPress\u81ea\u5b9a\u4e49\u6587\u7ae0\u7c7b\u578b\u548c\u81ea\u5b9a\u4e49\u5206\u7c7b\u5171\u7528\u540c\u4e00\u4e2a\u6839\u8def\u5f84slug - Brain\u7684\u6280\u672f\u7b14\u8bb0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.brain1981.com\\\/#website\"},\"datePublished\":\"2021-10-22T15:06:16+00:00\",\"dateModified\":\"2022-12-20T14:53:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.brain1981.com\\\/2626.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blog.brain1981.com\\\/2626.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.brain1981.com\\\/2626.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/blog.brain1981.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WordPress\u81ea\u5b9a\u4e49\u6587\u7ae0\u7c7b\u578b\u548c\u81ea\u5b9a\u4e49\u5206\u7c7b\u5171\u7528\u540c\u4e00\u4e2a\u6839\u8def\u5f84slug\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.brain1981.com\\\/#website\",\"url\":\"https:\\\/\\\/blog.brain1981.com\\\/\",\"name\":\"Brain\u7684\u6280\u672f\u7b14\u8bb0\",\"description\":\"WordPress\u5efa\u7ad9\u5f00\u53d1\u6559\u7a0b\u4e0e\u6280\u672f\u7814\u7a76\",\"publisher\":{\"@id\":\"https:\\\/\\\/blog.brain1981.com\\\/#\\\/schema\\\/person\\\/7689202bbb2f967b4c66309c1cc5e65d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blog.brain1981.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/blog.brain1981.com\\\/#\\\/schema\\\/person\\\/7689202bbb2f967b4c66309c1cc5e65d\",\"name\":\"Brain\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\\\/\\\/blog.brain1981.com\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/favicon.webp\",\"url\":\"https:\\\/\\\/blog.brain1981.com\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/favicon.webp\",\"contentUrl\":\"https:\\\/\\\/blog.brain1981.com\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/favicon.webp\",\"width\":75,\"height\":75,\"caption\":\"Brain\"},\"logo\":{\"@id\":\"https:\\\/\\\/blog.brain1981.com\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/favicon.webp\"},\"sameAs\":[\"http:\\\/\\\/brain1981.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WordPress\u81ea\u5b9a\u4e49\u6587\u7ae0\u7c7b\u578b\u548c\u81ea\u5b9a\u4e49\u5206\u7c7b\u5171\u7528\u540c\u4e00\u4e2a\u6839\u8def\u5f84slug - Brain\u7684\u6280\u672f\u7b14\u8bb0","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.brain1981.com\/2626.html","og_locale":"zh_CN","og_type":"article","og_title":"WordPress\u81ea\u5b9a\u4e49\u6587\u7ae0\u7c7b\u578b\u548c\u81ea\u5b9a\u4e49\u5206\u7c7b\u5171\u7528\u540c\u4e00\u4e2a\u6839\u8def\u5f84slug - Brain\u7684\u6280\u672f\u7b14\u8bb0","og_description":"\u5728WordPress\u4e2d\u5982\u679c\u6ce8\u518c\u4e00\u4e2a\u81ea\u5b9a\u4e49\u6587\u7ae0\u7c7b\u578b\uff08Custom Post Type\uff09\uff0c\u5e76\u4e14\u540c\u65f6\u4e3a\u8fd9\u4e2a\u7c7b\u578b\u6ce8\u518c\u4e00 [&hellip;]","og_url":"https:\/\/blog.brain1981.com\/2626.html","og_site_name":"Brain\u7684\u6280\u672f\u7b14\u8bb0","article_published_time":"2021-10-22T15:06:16+00:00","article_modified_time":"2022-12-20T14:53:42+00:00","og_image":[{"width":200,"height":133,"url":"https:\/\/blog.brain1981.com\/wp-content\/uploads\/2026\/01\/200.png","type":"image\/png"}],"author":"Brain","twitter_misc":{"\u4f5c\u8005":"Brain","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.brain1981.com\/2626.html#article","isPartOf":{"@id":"https:\/\/blog.brain1981.com\/2626.html"},"author":{"name":"Brain","@id":"https:\/\/blog.brain1981.com\/#\/schema\/person\/7689202bbb2f967b4c66309c1cc5e65d"},"headline":"WordPress\u81ea\u5b9a\u4e49\u6587\u7ae0\u7c7b\u578b\u548c\u81ea\u5b9a\u4e49\u5206\u7c7b\u5171\u7528\u540c\u4e00\u4e2a\u6839\u8def\u5f84slug","datePublished":"2021-10-22T15:06:16+00:00","dateModified":"2022-12-20T14:53:42+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.brain1981.com\/2626.html"},"wordCount":50,"commentCount":1,"publisher":{"@id":"https:\/\/blog.brain1981.com\/#\/schema\/person\/7689202bbb2f967b4c66309c1cc5e65d"},"keywords":["\u81ea\u5b9a\u4e49\u7c7b\u578b"],"articleSection":["WordPress"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blog.brain1981.com\/2626.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blog.brain1981.com\/2626.html","url":"https:\/\/blog.brain1981.com\/2626.html","name":"WordPress\u81ea\u5b9a\u4e49\u6587\u7ae0\u7c7b\u578b\u548c\u81ea\u5b9a\u4e49\u5206\u7c7b\u5171\u7528\u540c\u4e00\u4e2a\u6839\u8def\u5f84slug - Brain\u7684\u6280\u672f\u7b14\u8bb0","isPartOf":{"@id":"https:\/\/blog.brain1981.com\/#website"},"datePublished":"2021-10-22T15:06:16+00:00","dateModified":"2022-12-20T14:53:42+00:00","breadcrumb":{"@id":"https:\/\/blog.brain1981.com\/2626.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.brain1981.com\/2626.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.brain1981.com\/2626.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/blog.brain1981.com\/"},{"@type":"ListItem","position":2,"name":"WordPress\u81ea\u5b9a\u4e49\u6587\u7ae0\u7c7b\u578b\u548c\u81ea\u5b9a\u4e49\u5206\u7c7b\u5171\u7528\u540c\u4e00\u4e2a\u6839\u8def\u5f84slug"}]},{"@type":"WebSite","@id":"https:\/\/blog.brain1981.com\/#website","url":"https:\/\/blog.brain1981.com\/","name":"Brain\u7684\u6280\u672f\u7b14\u8bb0","description":"WordPress\u5efa\u7ad9\u5f00\u53d1\u6559\u7a0b\u4e0e\u6280\u672f\u7814\u7a76","publisher":{"@id":"https:\/\/blog.brain1981.com\/#\/schema\/person\/7689202bbb2f967b4c66309c1cc5e65d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.brain1981.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/blog.brain1981.com\/#\/schema\/person\/7689202bbb2f967b4c66309c1cc5e65d","name":"Brain","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/blog.brain1981.com\/wp-content\/uploads\/2026\/01\/favicon.webp","url":"https:\/\/blog.brain1981.com\/wp-content\/uploads\/2026\/01\/favicon.webp","contentUrl":"https:\/\/blog.brain1981.com\/wp-content\/uploads\/2026\/01\/favicon.webp","width":75,"height":75,"caption":"Brain"},"logo":{"@id":"https:\/\/blog.brain1981.com\/wp-content\/uploads\/2026\/01\/favicon.webp"},"sameAs":["http:\/\/brain1981.com"]}]}},"views":3812,"_links":{"self":[{"href":"https:\/\/blog.brain1981.com\/wp-json\/wp\/v2\/posts\/2626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.brain1981.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.brain1981.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.brain1981.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.brain1981.com\/wp-json\/wp\/v2\/comments?post=2626"}],"version-history":[{"count":11,"href":"https:\/\/blog.brain1981.com\/wp-json\/wp\/v2\/posts\/2626\/revisions"}],"predecessor-version":[{"id":3001,"href":"https:\/\/blog.brain1981.com\/wp-json\/wp\/v2\/posts\/2626\/revisions\/3001"}],"wp:attachment":[{"href":"https:\/\/blog.brain1981.com\/wp-json\/wp\/v2\/media?parent=2626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.brain1981.com\/wp-json\/wp\/v2\/categories?post=2626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.brain1981.com\/wp-json\/wp\/v2\/tags?post=2626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}