{"id":59383,"date":"2025-04-23T17:51:21","date_gmt":"2025-04-23T09:51:21","guid":{"rendered":"https:\/\/fwq.ai\/blog\/59383\/"},"modified":"2025-04-23T17:51:21","modified_gmt":"2025-04-23T09:51:21","slug":"ecshop%e6%96%87%e7%ab%a0%e5%88%86%e7%b1%bb%e9%a1%b5%e8%8e%b7%e5%8f%96%e5%bd%93%e5%89%8d%e5%88%86%e7%b1%bb%e6%a0%87%e9%a2%98%e4%bc%98%e5%8c%96","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/59383\/","title":{"rendered":"ecshop\u6587\u7ae0\u5206\u7c7b\u9875\u83b7\u53d6\u5f53\u524d\u5206\u7c7b\u6807\u9898\u4f18\u5316"},"content":{"rendered":"<p>&nbsp;<span style=\"font-size: 12px;line-height: normal\">\u7f51\u4e0a\u6709\u5f88\u591a\u6587\u7ae0\u4ecb\u7ecd\u4e86\u4ea7\u54c1\u5206\u7c7b\u4e0e\u4ea7\u54c1\u9875\u9762\uff0c\u4f46\u662f\u6ca1\u8bf4\u5230\u6587\u7ae0\u5206\u7c7b\u9875\u9762\uff0c\u90a3\u5982\u4f55\u5728ecshop\u6587\u7ae0\u5206\u7c7b\u9875\u663e\u793a\u5f53\u524d\u5206\u7c7b\u6807\u9898\u5462?<\/span><\/p>\n<p style=\"font-size: 12px;line-height: normal\">\u6bd4\u5982\uff0c\u628a&nbsp;&lt;title&gt;{$page_title}&lt;\/title&gt;<\/p>\n<p>  \u60f3\u628a\u6587\u7ae0\u91cc\u7684\u6807\u9898 \u53ea\u6362\u6210 \u6587\u7ae0\u5206\u7c7b\u540d\u79f0\u52a0\u5e97\u94fa\u663e\u793a\u3002\u597d\u6a21\u677f\u63d0\u4f9b\u8be5\u6559\u7a0b\uff1a   &nbsp;   1. \u6253\u5f00ecshop\u7a0b\u5e8f\u6839\u76ee\u5f55\u4e0b\u7684article_cat.php,\u572880\u884c   \u4ee3\u7801\uff1a    &nbsp;&nbsp;&nbsp;<br \/>\n<span>&nbsp;&nbsp; $meta = $db-&gt;getRow(&#8220;SELECT keywords, cat_desc FROM &#8221; . $ecs-&gt;table(&#8216;article_cat&#8217;) . &#8221; WHERE cat_id = &#8216;$cat_id'&#8221;);<\/span>   &nbsp;   \u4fee\u6539\u6210   &nbsp;&nbsp;&nbsp;<br \/>\n<span>&nbsp; $meta = $db-&gt;getRow(&#8220;SELECT keywords, cat_desc,cat_name FROM &#8221; . $ecs-&gt;table(&#8216;article_cat&#8217;) . &#8221; WHERE cat_id = &#8216;$cat_id'&#8221;);<\/span>    &nbsp;   2.&nbsp;article_cat.php\u768489\u884c\uff1a    &nbsp; &nbsp;&nbsp;<br \/>\n<span>$smarty-&gt;assign(&#8216;keywords&#8217;, &nbsp; &nbsp;htmlspecialchars($meta[&#8216;keywords&#8217;]));<\/span><br \/>\n<span>&nbsp; &nbsp; $smarty-&gt;assign(&#8216;description&#8217;, htmlspecialchars($meta[&#8216;cat_desc&#8217;]));<\/span>      &nbsp;   \u4e0b\u9762\u589e\u52a0\u4e00\u884c\u4ee3\u7801\uff1a    &nbsp; &nbsp; &nbsp;<br \/>\n<span>$smarty-&gt;assign(&#8216;cat_name&#8217;, htmlspecialchars($meta[&#8216;cat_name&#8217;]));<\/span>   &nbsp;   3. \u6a21\u677farticle_cat.dwt\u91cc&nbsp;<br \/>\n<span>&nbsp; &lt;title&gt;{$page_title}&lt;\/title&gt;<\/span>   &nbsp;\u4fee\u6539\u6210&nbsp;<br \/>\n<span>&lt;title&gt;{$cat_name}_{$shop_name}&lt;\/title&gt;<\/span>    &nbsp;   &nbsp; <\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;\u7f51\u4e0a\u6709\u5f88\u591a\u6587\u7ae0\u4ecb\u7ecd\u4e86\u4ea7\u54c1\u5206\u7c7b\u4e0e\u4ea7\u54c1\u9875\u9762\uff0c\u4f46\u662f\u6ca1\u8bf4\u5230\u6587\u7ae0\u5206\u7c7b\u9875\u9762\uff0c\u90a3\u5982\u4f55\u5728ecshop\u6587\u7ae0\u5206\u7c7b\u9875\u663e\u793a\u5f53\u524d\u5206\u7c7b\u6807\u9898\u5462? \u6bd4\u5982\uff0c\u628a&nbsp;&lt;title&gt;{$page_title}&lt;\/title&gt; \u60f3\u628a\u6587\u7ae0\u91cc\u7684\u6807\u9898 \u53ea\u6362\u6210 \u6587\u7ae0\u5206\u7c7b\u540d\u79f0\u52a0\u5e97\u94fa\u663e\u793a\u3002\u597d\u6a21\u677f\u63d0\u4f9b\u8be5\u6559\u7a0b\uff1a &nbsp; 1. \u6253\u5f00ecshop\u7a0b\u5e8f\u6839\u76ee\u5f55\u4e0b\u7684article_cat.php,\u572880\u884c \u4ee3\u7801\uff1a &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; $meta = $db-&gt;getRow(&#8220;SELECT keywords, cat_desc FROM &#8221; . $ecs-&gt;table(&#8216;article_cat&#8217;) . &#8221; WHERE cat_id = &#8216;$cat_id&#8217;&#8221;); &nbsp; \u4fee\u6539\u6210 &nbsp;&nbsp;&nbsp; &nbsp; $meta = $db-&gt;getRow(&#8220;SELECT keywords, cat_desc,cat_name FROM &#8221; . $ecs-&gt;table(&#8216;article_cat&#8217;) . &#8221; WHERE cat_id = &#8216;$cat_id&#8217;&#8221;); &nbsp; 2.&nbsp;article_cat.php\u768489\u884c\uff1a &nbsp; &nbsp;&nbsp; $smarty-&gt;assign(&#8216;keywords&#8217;, &nbsp; &nbsp;htmlspecialchars($meta[&#8216;keywords&#8217;])); &nbsp; &nbsp; $smarty-&gt;assign(&#8216;description&#8217;, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-59383","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/59383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=59383"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/59383\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=59383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=59383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=59383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}