{"id":85,"date":"2026-11-06T14:22:38","date_gmt":"2026-11-06T06:22:38","guid":{"rendered":"http:\/\/pro369.com\/blog\/?p=85"},"modified":"2026-11-06T09:49:24","modified_gmt":"2026-11-06T09:49:24","slug":"%e8%ae%93wordpress%e4%b8%bb%e9%a1%8c%e9%9a%a8%e6%a9%9f%e9%a1%af%e7%a4%ba%e7%b8%ae%e7%95%a5%e5%9c%96","status":"publish","type":"post","link":"https:\/\/por.tw\/blog\/2026\/11\/06\/%e8%ae%93wordpress%e4%b8%bb%e9%a1%8c%e9%9a%a8%e6%a9%9f%e9%a1%af%e7%a4%ba%e7%b8%ae%e7%95%a5%e5%9c%96\/","title":{"rendered":"\u8b93WordPress\u4e3b\u984c\u96a8\u6a5f\u986f\u793a\u7e2e\u7565\u5716"},"content":{"rendered":"<p><span style=\"font-size: small;\"><strong><br \/>\n\u4e4b\u524d\u65b0\u4f5cHot News\u4e3b\u984c\u4f7f\u7528timthumb.php\u51fd\u6578\u6700\u9069\u5217\u9ad8\u7e2e\u7565\u5716\u5927\u5c0f\uff0c\u4e26\u751f\u6210\u5feb\u53d6\u6a94\u6848<br \/>\n\u570b\u5916\u5927\u90e8\u5206CMS\u4e3b\u984c\u4e5f\u90fd\u662f\u63a1\u7528\u6b64\u65b9\u6cd5\u751f\u6210\u7e2e\u7565\u5716\u3002<br \/>\n\u4f46\u9019\u4e00\u65b9\u6cd5\u7121\u6cd5\u622a\u53d6\u5916\u93c8\u5716\u7247\uff0c\u9019\u4e00\u81f4\u547d\u5f31\u9ede\u6700\u7d42\u8b93\u6211\u653e\u68c4\u4f7f\u7528timthumb.php\u51fd\u6578\u3002<br \/>\n\u76ee\u524d\u6211\u4f7f\u7528\u7684\u65b0\u7248HotNews pro2.0\u63a1\u7528\u6bd4\u8f03\u666e\u904d\u7684\u986f\u793a\u7e2e\u7565\u5716\u7684\u65b9\u6cd5\uff0c\u52a0\u5165\u81ea\u8a02\u529f\u80fd\u8b8a\u6578\uff0c\u4e26\u901a\u904eCSS\u63a7\u5236\u7e2e\u7565\u5716\u5927\u5c0f\u3002<br \/>\n\u6709\u6642\u6587\u7ae0\u4e2d\u6c92\u6709\u5716\u7247\uff0c\u4e5f\u61f6\u5f97\u7279\u610f\u4f5c\u7e2e\u7565\u5716\uff0c\u96d6\u7136\u6709\u9810\u8a2d\u4f54\u4f4d\u5716\u4ee3\u66ff\u7e2e\u7565\u5716\u7684\u4f4d\u7f6e\uff0c\u4f46\u6587\u7ae0\u767c\u591a\u4e86\u770b\u8457\u975e\u5e38\u55ae\u8abf\uff0c\u4e5f\u5931\u53bb\u4e86\u7e2e\u7565\u5716\u5438\u5f15\u8b80\u8005\u773c\u7403\u7684\u4f5c\u7528<br \/>\n\u65bc\u662f\u5ffd\u96a8\u6a5f\u986f\u793a\u9810\u8a2d\u7e2e\u7565\u5716\u7684\u60f3\u6cd5\u5c31\u51fa\u4f86\u4e86\uff0c\u4e0b\u9762\u8acb\u770b\u5177\u9ad4\u7684\u5be6\u73fe\u65b9\u6cd5\u3002<br \/>\n\u4e00\u822c WordPress\u96dc\u8a8c\u578b\u4e3b\u984c\uff0c\u90fd\u5177\u5099\u7e2e\u7565\u5716\u529f\u80fd\uff0c\u63a1\u7528\u7684\u901a\u7528\u7e2e\u7565\u5716\u51fd\u6578\u4ee3\u78bc\u5982\u4e0b\uff1a<\/strong><\/span><\/p>\n<p>&lt;?php if ( get_post_meta($post-&gt;ID, &#8216;thumbnail&#8217;, true) ) : ?&gt;<br \/>\n&lt;?php $image = get_post_meta($post-&gt;ID, &#8216;thumbnail&#8217;, true); ?&gt;<br \/>\n&lt;a href=&#8221;&lt;?php the_permalink() ?&gt;&#8221; rel=&#8221;bookmark&#8221; title=&#8221;&lt;?php the_title(); ?&gt;&#8221;&gt;&lt;img src=&#8221;&lt;?php echo $image; ?&gt;&#8221; alt=&#8221;&lt;?php the_title(); ?&gt;&#8221;\/&gt;&lt;\/a&gt;<br \/>\n&lt;?php else: ?&gt;<br \/>\n&lt;a href=&#8221;&lt;?php the_permalink() ?&gt;&#8221; rel=&#8221;bookmark&#8221; title=&#8221;&lt;?php the_title(); ?&gt;&#8221;&gt;&lt;img src=&#8221;&lt;?php bloginfo(&#8216;template_directory&#8217;); ?&gt;\/images\/img.jpg&#8221; alt=&#8221;&lt;?php the_title(); ?&gt;&#8221; \/&gt;&lt;\/a&gt;<br \/>\n&lt;?php endif; ?&gt;<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/por.tw\/blog\/wp-content\/uploads\/2013\/04\/2378696254.jpg\" width=\"500\" height=\"375\" \/><span style=\"font-size: small;\"><strong><\/strong><\/span><\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n\u3010\u6587\u7ae0\u6a19\u984c\u3011: \u8b93WordPress\u4e3b\u984c\u96a8\u6a5f\u986f\u793a\u7e2e\u7565\u5716<br \/>\n\u3010\u6587\u7ae0\u4f5c\u8005\u3011: \u90e8\u843d\u683c\u67b6\u7ad9\u3001\u884c\u92b7\u3001\u8cfa\u9322\u8853\u6559\u5b78\u5bc6\u8a13\u57fa\u5730<br \/>\n\u3010\u4f5c\u8005\u4fe1\u7bb1\u3011: ster168ster@gmail.com<br \/>\n\u3010\u4f5c\u8005\u9996\u9801\u3011: http:\/\/por.tw\/blog\/<br \/>\n\u3010\u90e8\u843d\u683c\u67b6\u7ad9\u3001\u884c\u92b7\u3001\u8cfa\u9322\u8853\u6559\u5b78\u8ab2\u7a0b\u3011: http:\/\/por.tw\/blog\/E_learning\/index.php<br \/>\n\u3010\u57fa\u5730\u4e3b\u6a5f\u3011: http:\/\/goto1688.com\/blog\/<br \/>\n\u3010\u7248\u6b0a\u8072\u660e\u3011: \uff08\u539f\u5275\uff09\u90e8\u843d\u683c\u67b6\u7ad9\u3001\u884c\u92b7\u3001\u8cfa\u9322\u8853\u6559\u5b78\u5bc6\u8a13\u57fa\u5730\uff0c\u8f49\u8f09\u5fc5\u9808\u4fdd\u7559\u5b8c\u6574\u6a19\u982d\u3002\u522a\u9664\u8005\u4f9d\u6cd5\u8ffd\u7a76\uff01<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n\u53ea\u9700\u5728\u9810\u8a2d\u4f54\u4f4d\u5716\u9023\u7d50\u4f4d\u7f6e\u52a0\u5165\u4e00\u53e5&#8221;rand()&#8221;\u51fd\u6578\u5c31\u53ef\u96a8\u6a5f\u547c\u53eb\u7279\u5b9a\u76ee\u9304\u4e0b\u7684\u591a\u500b\u5716\u7247\uff0c\u4e0b\u9762\u662f\u4fee\u6539\u5f8c\u7684\uff1a<\/p>\n<p>&lt;?php if ( get_post_meta($post-&gt;ID, &#8216;thumbnail&#8217;, true) ) : ?&gt;<br \/>\n&lt;?php $image = get_post_meta($post-&gt;ID, &#8216;thumbnail&#8217;, true); ?&gt;<br \/>\n&lt;a href=&#8221;&lt;?php the_permalink() ?&gt;&#8221; rel=&#8221;bookmark&#8221; title=&#8221;&lt;?php the_title(); ?&gt;&#8221;&gt;&lt;img src=&#8221;&lt;?php echo $image; ?&gt;&#8221; alt=&#8221;&lt;?php the_title(); ?&gt;&#8221;\/&gt;&lt;\/a&gt;<br \/>\n&lt;?php else: ?&gt;<br \/>\n&lt;a href=&#8221;&lt;?php the_permalink() ?&gt;&#8221; rel=&#8221;bookmark&#8221; title=&#8221;&lt;?php the_title(); ?&gt;&#8221;&gt;&lt;img src=&#8221;&lt;?php bloginfo(&#8216;template_directory&#8217;); ?&gt;\/images\/random\/img&lt;?php echo rand(1,5)?&gt;.jpg&#8221; alt=&#8221;&lt;?php the_title(); ?&gt;&#8221; \/&gt;&lt;\/a&gt;<br \/>\n&lt;?php endif; ?&gt;<\/p>\n<p>\u4fee\u6539\u5f8c\u7684\u4ee3\u78bc\u8aaa\u660e\uff1a<\/p>\n<p>\/images\/random\/img&lt;?php echo rand(1,5)?&gt;.jpg<\/p>\n<p>\u524d\u9762\u7684img\u662f\u5716\u7247\u7684\u540d\u7a31\uff0c\u6211\u5011\u53ef\u4ee5\u65b0\u589e\u5e7e\u500b\u540d\u7a31\u70ba\uff1aimg1.jpg, img2.jpg,img3.jpg,img4.jpg,img5.jpg\u7684\u5716\u7247\uff0c\u653e\u5230\/images\/random\/\uff08\u5716\u7247\u6240\u5728\u7684\u4f4d\u7f6e\uff0c\u53ef\u6839\u64da\u5be6\u969b\u4fee\u6539\u3002\uff09<br \/>\n\u76ee\u9304\u4e2d\uff0c\u4e5f\u53ef\u4ee5\u662f\u5176\u5b83\u683c\u5f0f\u7684\u5716\u7247\u3002\u5c07\u4e0a\u9762\u7684\u4ee3\u78bc\u65b0\u589e\u5230\u6a21\u677f\u9069\u7576\u4f4d\u7f6e\uff0c\u91cd\u6574\u4e00\u4e0b\u9801\u9762\u770b\u770b\u6548\u679c\u5982\u4f55\u3002<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n<span style=\"font-size: x-small; color: #993300;\">\u4f60\u5728\u6478\u7d22\u5982\u4f55\u67b6\u7ad9\u90e8\u843d\u683c\uff1f\u5982\u4f55\u5c55\u958b\u884c\u92b7\u90e8\u843d\u683c\u3001\u751a\u81f3\u8cfa\u9322\u55ce\uff1f\u6709\u3010\u6280\u8853\u9867\u554f\u670d\u52d9\u3011\u53ef\u8aee\u8a62\u55ce\uff1f<br \/>\n\u7576\u554f\u984c\u7121\u6cd5\u89e3\u6c7a\u4f60\u8981\u767c\u5f88\u591a\u6642\u9593\u8655\u7406\uff08\u6216\u8a31\u6c38\u9060\u627e\u51fa\u7b54\u6848\uff09\u662f\u7368\u81ea\u6478\u7d22\u90e8\u843d\u683c\u67b6\u7ad9\u3001\u884c\u92b7\u3001\u8cfa\u9322\u75db\u82e6\u7684\u958b\u59cb\uff01<br \/>\n\u8cfc\u8cb7\u3010\u90e8\u843d\u683c\u67b6\u7ad9\u3001\u884c\u92b7\u3001\u8cfa\u9322\u8853\u3011DVD\u8ab2\u7a0b\uff0c\u5c31\u53ef\u7372\u5f97\u3010\u90e8\u843d\u683c\u67b6\u7ad9\u884c\u92b7\u8cfa\u9322\u3011\u6280\u8853\u3010\u9867\u554f\u8aee\u8a62\u670d\u52d9\u3011\uff01<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"post-excerpt\"><p>\u4e4b\u524d\u65b0\u4f5cHot News\u4e3b\u984c\u4f7f\u7528timthumb.php\u51fd\u6578\u6700\u9069\u5217\u9ad8\u7e2e\u7565\u5716\u5927\u5c0f\uff0c\u4e26\u751f\u6210\u5feb\u53d6\u6a94\u6848 \u570b\u5916\u5927\u90e8\u5206CM<\/p>\n<\/div>","protected":false},"author":1,"featured_media":9495,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[34],"class_list":["post-85","post","type-post","status-publish","format-standard","has-post-thumbnail","category-wordpress-","tag-wordpress-"],"_links":{"self":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/posts\/85","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/comments?post=85"}],"version-history":[{"count":1,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/posts\/85\/revisions"}],"predecessor-version":[{"id":9496,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/posts\/85\/revisions\/9496"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/media\/9495"}],"wp:attachment":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/media?parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/categories?post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/tags?post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}