﻿{"id":2043,"date":"2023-03-24T05:19:01","date_gmt":"2023-03-24T05:19:01","guid":{"rendered":"http:\/\/81.70.49.155\/?p=2043"},"modified":"2023-03-24T05:19:01","modified_gmt":"2023-03-24T05:19:01","slug":"%e8%bd%acwordpress%e4%bb%a3%e7%a0%81%e8%b0%83%e7%94%a8%e5%a4%a7%e5%85%a8%e6%9b%b4%e6%96%b0%e5%88%b0_3-0%e7%89%88","status":"publish","type":"post","link":"http:\/\/81.70.49.155\/?p=2043","title":{"rendered":"[\u8f6c]wordpress\u4ee3\u7801\u8c03\u7528\u5927\u5168\u66f4\u65b0\u5230_3.0\u7248"},"content":{"rendered":"<p>\n\t<a href=\"https:\/\/wenku.baidu.com\/view\/aab630396ddb6f1aff00bed5b9f3f90f76c64dfe.html?_wkts_=1679634886429&bdQuery=wordpress+%E5%8A%9F%E8%83%BD%E4%BB%A3%E7%A0%81php\" target=\"_blank\" rel=\"noopener\">\u539f\u6587\u51fa\u5904<\/a>\n<\/p>\n<p>\n\t\n<\/p>\n<p>\n\t&lt;?php  get_calendar() ?&gt; \u65e5\u5386\n<\/p>\n<p>\n\tno-category-parents ---&gt;\u4f18\u5316\u8def\u5f84\u63d2\u4ef6\n<\/p>\n<p>\n\t------------------------------------------------------------------------------\n<\/p>\n<p>\n\t\u7b2c\u4e09\u6b3e\u663e\u793a\u540c\u4e00\u5206\u7c7b\u4e0b\u9762\u6587\u7ae0\u7684wordpress\u63d2\u4ef6\uff1a\u4e2d\u6587wordpress\u5de5\u5177\u7bb1\u8865\u5145\u7248\u3002\n<\/p>\n<p>\n\t\u4e2d\u6587wordpress\u5de5\u5177\u7bb1\u8865\u5145\u7248\uff0c\u987e\u540d\u601d\u4e49\uff0c\u5c31\u662f\u5bf9wordpress\u4e2d\u5348\u5de5\u5177\u7bb1\u7684\u8865\u5145\uff0c\u589e\u52a0\u4e86\u663e\u793a\u540c\u4e00\u5206\u7c7b\u4e0b\u9762\u6587\u7ae0\u7684\u529f\u80fd\u3002\n<\/p>\n<p>\n\t\u8c03\u7528\u540c\u4e00\u5206\u7c7b\u4e0b\u9762\u6587\u7ae0\u7684\u51fd\u6570\u683c\u5f0f\u662f\n<\/p>\n<p>\n\t\uff1a\n<\/p>\n<p>\n\t&lt;?php get_category_post_list($num, $limit, $order=\u201dDESC\u201d); ?&gt;\n<\/p>\n<p>\n\t\u5176\u4e2d$num\u5bf9\u5e94\u7684\u662f\u5206\u7c7b\u7684ID\uff1b$limit\u5bf9\u5e94\u7684\u662f\u663e\u793a\u6587\u7ae0\u7684\u6570\u91cf\uff0c$order\u5bf9\u5e94\u7684\u662f\u6309\u987a\u5e8f\u663e\u793a\u8fd8\u662f\u4e71\u5e8f\u663e\u793a\u6587\u7ae0\uff0c\u5177\u4f53\u53ef\u4ee5\u53c2\u8003\u6e90\u4ee3\u7801\u3002\n<\/p>\n<p>\n\t\u8be5\u63d2\u4ef6\u4e0d\u592a\u9002\u7528\u4e8e\u5728\u5177\u4f53\u6587\u7ae0\u540e\u9762\u663e\u793a\u540c\u4e00\u7c7b\u522b\u4e0b\u7684\u6587\u7ae0\uff0c\u4f46\u662f\u975e\u5e38\u9002\u7528\u4e8e\u90a3\u4e9b\u60f3\u628awordpress \u6253\u9020\u6210 cms \u7684\u670b\u53cb\u3002\u81ea\u5b9a\u4e49\u4e00\u4e2a\u9996\u9875\uff0c\u7136\u540e\u5728\u9996\u9875\u8c03\u7528\u4e0d\u540c\u7c7b\u522b\u7684\u6587\u7ae0\uff0c\u8bbe\u5b9a\u4e00\u4e2a\u975e\u5e38\u6f02\u4eae\u7684\u9996\u9875\uff0c\u80af\u5b9a\u662f\u6ca1\u95ee\u9898\u7684\u3002\n<\/p>\n<p>\n\t-----------------------------------------------------------------------------\n<\/p>\n<p>\n\tWordpress\u6a21\u677f\u57fa\u672c\u6587\u4ef6\n<\/p>\n<p>\n\tstyle.css \u6837\u5f0f\u8868\u6587\u4ef6\n<\/p>\n<p>\n\tindex.php \u4e3b\u9875\u6587\u4ef6\n<\/p>\n<p>\n\tsingle.php \u65e5\u5fd7\u5355\u9875\u6587\u4ef6\n<\/p>\n<p>\n\tpage.php \u9875\u9762\u6587\u4ef6\n<\/p>\n<p>\n\tarchvie.php \u5206\u7c7b\u548c\u65e5\u671f\u5b58\u6863\u9875\u6587\u4ef6\n<\/p>\n<p>\n\tsearchform.php \u641c\u7d22\u8868\u5355\u6587\u4ef6\n<\/p>\n<p>\n\tsearch.php \u641c\u7d22\u9875\u9762\u6587\u4ef6\n<\/p>\n<p>\n\tcomments.php \u7559\u8a00\u533a\u57df\u6587\u4ef6(\u5305\u62ec\u7559\u8a00\u5217\u8868\u548c\u7559\u8a00\u6846)\n<\/p>\n<p>\n\t404.php 404\u9519\u8bef\u9875\u9762\n<\/p>\n<p>\n\theader.php \u7f51\u9875\u5934\u90e8\u6587\u4ef6\n<\/p>\n<p>\n\tsidebar.php \u7f51\u9875\u4fa7\u8fb9\u680f\u6587\u4ef6\n<\/p>\n<p>\n\tfooter.php \u7f51\u9875\u5e95\u90e8\u6587\u4ef6\n<\/p>\n<p>\n\tWordpress Header\u5934\u90e8 PHP\u4ee3\u7801\n<\/p>\n<p>\n\t\u6ce8: \u4e5f\u5c31\u662f\u4f4d\u4e8e&lt;head&gt;\u548c&lt;\/head&gt;\u4e4b\u95f4\u7684PHP\u4ee3\u7801\n<\/p>\n<p>\n\t&lt;?php bloginfo(\u2019name\u2019); ?&gt; \u7f51\u7ad9\u6807\u9898\n<\/p>\n<p>\n\t&lt;?php wp_title(); ?&gt; \u65e5\u5fd7\u6216\u9875\u9762\u6807\u9898\n<\/p>\n<p>\n\t&lt;?php bloginfo(\u2019stylesheet_url\u2019); ?&gt; WordPress\u4e3b\u9898\u6837\u5f0f\u8868\u6587\u4ef6style.css\u7684\u76f8\u5bf9\u5730\u5740&lt;?php bloginfo(\u2019pingback_url\u2019); ?&gt; WordPress\u535a\u5ba2\u7684Pingback\u5730\u5740\n<\/p>\n<p>\n\t&lt;?php bloginfo(\u2019template_url\u2019); ?&gt; WordPress\u4e3b\u9898\u6587\u4ef6\u7684\u76f8\u5bf9\u5730\u5740\n<\/p>\n<p>\n\t&lt;?php bloginfo(\u2019version\u2019); ?&gt; \u535a\u5ba2\u7684Wordpress\u7248\u672c\n<\/p>\n<p>\n\t&lt;?php bloginfo(\u2019atom_url\u2019); ?&gt; WordPress\u535a\u5ba2\u7684Atom\u5730\u5740\n<\/p>\n<p>\n\t&lt;?php bloginfo(\u2019rss2_url\u2019); ?&gt; WordPress\u535a\u5ba2\u7684RSS2\u5730\u5740\n<\/p>\n<p>\n\t&lt;?php bloginfo(\u2019url\u2019); ?&gt; WordPress\u535a\u5ba2\u7684\u7edd\u5bf9\u5730\u5740\n<\/p>\n<p>\n\t&lt;?php bloginfo(\u2019name\u2019); ?&gt; WordPress\u535a\u5ba2\u7684\u540d\u79f0\n<\/p>\n<p>\n\t&lt;?php bloginfo(\u2019html_type\u2019); ?&gt; \u7f51\u7ad9\u7684HTML\u7248\u672c\n<\/p>\n<p>\n\t&lt;?php bloginfo(\u2019charset\u2019); ?&gt; \u7f51\u7ad9\u7684\u5b57\u7b26\u7f16\u7801\u683c\u5f0f\n<\/p>\n<p>\n\tWordpress \u4e3b\u4f53\u6a21\u677f PHP\u4ee3\u7801\n<\/p>\n<p>\n\t&lt;?php the_content(); ?&gt; \u65e5\u5fd7\u5185\u5bb9\n<\/p>\n<p>\n\t&lt;?php if(have_posts()) : ?&gt; \u786e\u8ba4\u662f\u5426\u6709\u65e5\u5fd7\n<\/p>\n<p>\n\t&lt;?php while(have_posts()) : the_post(); ?&gt; \u5982\u679c\u6709\uff0c\u5219\u663e\u793a\u5168\u90e8\u65e5\u5fd7\n<\/p>\n<p>\n\t&lt;?php endwhile; ?&gt; \u7ed3\u675fPHP\u51fd\u6570\u201dwhile\u201d\n<\/p>\n<p>\n\t&lt;?php endif; ?&gt; \u7ed3\u675fPHP\u51fd\u6570\u201dif\u201d\n<\/p>\n<p>\n\t&lt;?php get_header(); ?&gt; header.php\u6587\u4ef6\u7684\u5185\u5bb9\n<\/p>\n<p>\n\t&lt;?php get_sidebar(); ?&gt; sidebar.php\u6587\u4ef6\u7684\u5185\u5bb9\n<\/p>\n<p>\n\t&lt;?php get_footer(); ?&gt; footer.php\u6587\u4ef6\u7684\u5185\u5bb9\n<\/p>\n<p>\n\t&lt;?php the_time(\u2019m-d-y\u2019) ?&gt; \u663e\u793a\u683c\u5f0f\u4e3a\u201d10-12-13\u2033\u7684\u65e5\u671f\n<\/p>\n<p>\n\t&lt;?php comments_popup_link(); ?&gt; \u663e\u793a\u4e00\u7bc7\u65e5\u5fd7\u7684\u7559\u8a00\u94fe\u63a5\n<\/p>\n<p>\n\t&lt;?php the_title(); ?&gt; \u663e\u793a\u4e00\u7bc7\u65e5\u5fd7\u6216\u9875\u9762\u7684\u6807\u9898\n<\/p>\n<p>\n\t&lt;?php the_permalink() ?&gt; \u663e\u793a\u4e00\u7bc7\u65e5\u5fd7\u6216\u9875\u9762\u7684\u6c38\u4e45\u94fe\u63a5\/URL\u5730\u5740\n<\/p>\n<p>\n\t&lt;?php the_category(\u2019, \u2018) ?&gt; \u663e\u793a\u4e00\u7bc7\u65e5\u5fd7\u6216\u9875\u9762\u7684\u6240\u5c5e\u5206\u7c7b\n<\/p>\n<p>\n\t&lt;?php the_author(); ?&gt; \u663e\u793a\u4e00\u7bc7\u65e5\u5fd7\u6216\u9875\u9762\u7684\u4f5c\u8005\n<\/p>\n<p>\n\t&lt;?php the_ID(); ?&gt; \u663e\u793a\u4e00\u7bc7\u65e5\u5fd7\u6216\u9875\u9762\u7684ID\n<\/p>\n<p>\n\t&lt;?php edit_post_link(); ?&gt; \u663e\u793a\u4e00\u7bc7\u65e5\u5fd7\u6216\u9875\u9762\u7684\u7f16\u8f91\u94fe\u63a5\n<\/p>\n<p>\n\t&lt;?php get_links_list(); ?&gt; \u663e\u793aBlogroll\u4e2d\u7684\u94fe\u63a5\n<\/p>\n<p>\n\t&lt;?php comments_template(); ?&gt; comments.php\u6587\u4ef6\u7684\u5185\u5bb9\n<\/p>\n<p>\n\t&lt;?php wp_list_pages(); ?&gt; \u663e\u793a\u4e00\u4efd\u535a\u5ba2\u7684\u9875\u9762\u5217\u8868\n<\/p>\n<p>\n\t&lt;?php wp_list_cats(); ?&gt; \u663e\u793a\u4e00\u4efd\u535a\u5ba2\u7684\u5206\u7c7b\u5217\u8868\n<\/p>\n<p>\n\t&lt;?php next_post_link(\u2019 %link \u2018) ?&gt; \u4e0b\u4e00\u7bc7\u65e5\u5fd7\u7684URL\u5730\u5740\n<\/p>\n<p>\n\t&lt;?php previous_post_link(\u2019%link\u2019) ?&gt; \u4e0a\u4e00\u7bc7\u65e5\u5fd7\u7684URL\u5730\u5740\n<\/p>\n<p>\n\t&lt;?php get_calendar(); ?&gt; \u8c03\u7528\u65e5\u5386\n<\/p>\n<p>\n\t&lt;?php wp_get_archives() ?&gt; \u663e\u793a\u4e00\u4efd\u535a\u5ba2\u7684\u65e5\u671f\u5b58\u6863\u5217\u8868\n<\/p>\n<p>\n\t&lt;?php posts_nav_link(); ?&gt; \u663e\u793a\u8f83\u65b0\u65e5\u5fd7\u94fe\u63a5(\u4e0a\u4e00\u9875)\u548c\u8f83\u65e7\u65e5\u5fd7\u94fe\u63a5\uff08\u4e0b\u4e00\u9875\uff09\n<\/p>\n<p>\n\t&lt;?php bloginfo(\u2019description\u2019); ?&gt; \u663e\u793a\u535a\u5ba2\u7684\u63cf\u8ff0\u4fe1\u606f\n<\/p>\n<p>\n\t\u5176\u5b83\u7684\u4e00\u4e9bWordpress\u6a21\u677f\u4ee3\u7801\n<\/p>\n<p>\n\t\/%postname%\/ \u663e\u793a\u535a\u5ba2\u7684\u81ea\u5b9a\u4e49\u6c38\u4e45\u94fe\u63a5\n<\/p>\n<p>\n\t&lt;?php the_search_query(); ?&gt; \u641c\u7d22\u8868\u5355\u7684\u503c\n<\/p>\n<p>\n\t&lt;?php _e(\u2019Message\u2019); ?&gt; \u6253\u5370\u8f93\u51fa\u4fe1\u606f\n<\/p>\n<p>\n\t&lt;?php wp_register(); ?&gt; \u663e\u793a\u6ce8\u518c\u94fe\u63a5\n<\/p>\n<p>\n\t&lt;?php wp_loginout(); ?&gt; \u663e\u793a\u767b\u5165\/\u767b\u51fa\u94fe\u63a5\n<\/p>\n<p>\n\t&lt;!\u2013next page\u2013&gt; \u5728\u65e5\u5fd7\u6216\u9875\u9762\u4e2d\u63d2\u5165\u5206\u9875\n<\/p>\n<p>\n\t&lt;!\u2013more\u2013&gt; \u622a\u65ad\u65e5\u5fd7\n<\/p>\n<p>\n\t&lt;?php wp_meta(); ?&gt; \u663e\u793a\u7ba1\u7406\u5458\u7684\u76f8\u5173\u63a7\u5236\u4fe1\u606f\n<\/p>\n<p>\n\t&lt;?php timer_stop(1); ?&gt; \u663e\u793a\u8f7d\u5165\u9875\u9762\u7684\u65f6\u95f4\n<\/p>\n<p>\n\t&lt;?php echo get_num_queries(); ?&gt; \u663e\u793a\u8f7d\u5165\u9875\u9762\u67e5\u8be2\n<\/p>\n<p>\n\t----------------------------------------&gt;\n<\/p>\n<p>\n\t\u4f7f\u7528\u6587\u7ae0\u8bbf\u95ee\u7edf\u8ba1\u63d2\u4ef6 WP-PostViews \u5373\u53ef\u5b9e\u73b0\u70ed\u95e8\u6587\u7ae0\u7684\u5c55\u793a\uff0c\u4f46\u662f\u7c7b\u4f3c\u53ef\u5b9a\u5236\u6027\u4e0d\u591f\u5f3a\u3002\u4f8b\u5982\u5faa\u73af\u524d\u4ed6\u3001\u7ffb\u9875\u9605\u8bfb\u7b49\u7b49\u3002\n<\/p>\n<p>\n\t\u4e8b\u5b9e\u4e0a WordPress \u63d0\u4f9b\u7684 query_posts() \u65b9\u6cd5\u5141\u8bb8\u6309\u7167\u8bc4\u8bba\u6570\u76ee\u8fdb\u884c\u6587\u7ae0\u6392\u5e8f\uff0c\u800c\u4e14\u53ef\u4ee5\u826f\n<\/p>\n<p>\n\t\u597d\u652f\u6301\u7ffb\u9875\uff0c\u751a\u81f3\u662f\u517c\u5bb9 WP-PostNavi \u63d2\u4ef6\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u4f8b\u5982 index.php \u6a21\u677f\u4e2d\uff0c\u4e3b\u5faa\n<\/p>\n<p>\n\t\u73af\u7684\u57fa\u672c\u683c\u5f0f\u4e3a\n<\/p>\n<p>\n\t&lt;?php if (have_posts()) : while (have_posts()) : the_post(); ?&gt;\n<\/p>\n<p>\n\t\/\/ insert code here\n<\/p>\n<p>\n\t&lt;?php endwhile; else : endif; ?&gt;\u73b0\u5728\u901a\u8fc7\u8fc7\u6ee4\u673a\u5236\u8ba9\u5176\u6309\u7167\u8bc4\u8bba\u6570\u6392\u5e8f\uff0c\u5219\u9700\u8981\u5728\u4e3b\u5faa\u73af\u4e4b\u524d\n<\/p>\n<p>\n\t\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a\n<\/p>\n<p>\n\t&lt;?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('orderby=comment_count&amp;paged='.$paged); ?&gt;\u6807\u7ea2\u7684 orderby=comment_count \u5b57\n<\/p>\n<p>\n\t\u6bb5\u5373\u4e3a\u6392\u5e8f\u6761\u4ef6\u3002WP-PostNavi \u7ffb\u9875\u6d4b\u8bd5\u987a\u5229\u901a\u8fc7\u3002\u5f53\u7136\u4e5f\u53ef\u4ee5\u901a\u8fc7\u9700\u8981\u8bbe\u7f6e\uff0c\u6392\u5e8f\u53c2\u6570\u7684\n<\/p>\n<p>\n\t\u5b8c\u6574\u5217\u8868\u5982\u4e0b\uff1a\n<\/p>\n<p>\n\t\u6392\u5e8f\u53c2\u6570\uff1a\n<\/p>\n<p>\n\torderby=author \u2013\u6309\u4f5c\u8005\u6392\u5e8f\n<\/p>\n<p>\n\torderby=date \u2013\u6309\u53d1\u5e03\u65f6\u95f4\u6392\u5e8f\n<\/p>\n<p>\n\torderby=title \u2013\u6309\u6587\u7ae0\u6807\u9898\u6392\u5e8f\n<\/p>\n<p>\n\torderby=modified \u2013\u6309\u4fee\u6539\u65f6\u95f4\u6392\u5e8f\n<\/p>\n<p>\n\torderby=menu_order \u6309\u83dc\u5355\u987a\u5e8f\u6392\u5e8f\uff0c\u4ec5\u652f\u6301\u5355\u9875\u9762\n<\/p>\n<p>\n\torderby=parent \u2013\u8fd9\u4e2a\u8292\u679c\u4e5f\u4e0d\u662f\u5f88\u6e05\u695a\u2026\n<\/p>\n<p>\n\torderby=ID \u2013\u6309\u6587\u7ae0 ID \u6392\u5e8f\n<\/p>\n<p>\n\torderby=rand \u2013\u968f\u673a\u6392\u5e8f\n<\/p>\n<p>\n\torderby=meta_value \u2013\u901a\u8fc7\u81ea\u5b9a\u4e49\u5b57\u6bb5\u503c\u6392\u5e8f\uff0c\u9700\u8981\u540c\u65f6\u7ed9\u5b9a\u81ea\u5b9a\u4e49\u5b57\u6bb5 (meta_key)\u7684\u540d\n<\/p>\n<p>\n\t\u79f0\n<\/p>\n<p>\n\torderby=none \u2013\u65e0\u5e8f\u6392\u5217\uff0c\u7248\u672c\u8981\u6c42 2.8\n<\/p>\n<p>\n\torderby=comment_count \u2013\u6309\u8bc4\u8bba\u6570\u6392\u5e8f\uff0c\u7248\u672c\u8981\u6c42 2.9\n<\/p>\n<p>\n\t\u5176\u5b9e\u5f88\u591a\u529f\u80fd WordPress \u539f\u751f\u90fd\u662f\u652f\u6301\u7684\uff0c\u5e76\u4e0d\u9700\u8981\u901a\u8fc7 SQL \u67e5\u8be2\u5b9e\n<\/p>\n<p>\n\t----------------------------------------&gt;\n<\/p>\n<p>\n\t\u5f53\u524d\u5206\u7c7b\u4fa7\u680f\u663e\u793a\u6700\u8fd110\u6761\u66f4\u65b0\u6587\u7ae0:\n<\/p>\n<p>\n\t&lt;?php $posts = get_posts( \"category= $cat &amp;numberposts=10\" ); ?&gt;\n<\/p>\n<p>\n\t&lt;?php if( $posts ) : ?&gt;\n<\/p>\n<p>\n\t&lt;ul&gt;&lt;?php foreach( $posts as $post ) : setup_postdata( $post ); ?&gt;\n<\/p>\n<p>\n\t&lt;li&gt;&lt;a href=\"&lt;?php the_permalink() ?&gt;\" rel=\"bookmark\" title=\"&lt;?php the_title(); ?&gt;\"&gt;\n<\/p>\n<p>\n\t&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/li&gt;\n<\/p>\n<p>\n\t&lt;?php endforeach; ?&gt;&lt;\/ul&gt;\n<\/p>\n<p>\n\t&lt;?php endif; ?&gt;\n<\/p>\n<p>\n\t---------------------------------------&gt;\n<\/p>\n<p>\n\t\u6839\u636e\u8bc4\u8bba\u6570\u91cf\u6765\u5224\u65ad\u800c\u8c03\u7528\n<\/p>\n<p>\n\t&lt;UL&gt;\n<\/p>\n<p>\n\t&lt;?php $result = $wpdb-&gt;get_results(\"SELECT comment_count,ID,post_title FROM $wpdb-&gt;posts ORDER BY comment_count DESC LIMIT 0 , 5\");\n<\/p>\n<p>\n\tforeach ($result as $post) {\n<\/p>\n<p>\n\tsetup_postdata($post);\n<\/p>\n<p>\n\t$postid = $post-&gt;ID;\n<\/p>\n<p>\n\t$title = $post-&gt;post_title;\n<\/p>\n<p>\n\t$commentcount = $post-&gt;comment_count;\n<\/p>\n<p>\n\tif ($commentcount != 0) { ?&gt;\n<\/p>\n<p>\n\t&lt;LI&gt;&lt;A title=\"&lt;?php echo $title ?&gt;\" href=\"&lt;?php echo get_permalink($postid); ?&gt;\"&gt;\n<\/p>\n<p>\n\t&lt;?php echo $title ?&gt;&lt;\/A&gt; {&lt;?php echo $commentcount ?&gt;}\n<\/p>\n<p>\n\t&lt;?php } } ?&gt;\n<\/p>\n<p>\n\t&lt;\/LI&gt;&lt;\/UL&gt;\n<\/p>\n<p>\n\t------------------------------------------&gt;\n<\/p>\n<p>\n\t\u7528\u4ee3\u7801\u5b9e\u73b0WordPress\u9996\u9875\u53ea\u663e\u793a\u67d0\u4e9b\u5206\u7c7b\u7684\u6587\u7ae0\n<\/p>\n<p>\n\t2010\u5e743\u670828\u65e5 WordPress 1 \u6761\u8bc4\u8bba\u5982\u4f55\u5b9e\u73b0\u5728WordPress\u9996\u9875\u4e0d\u663e\u793a\u67d0\u4e9b\u5206\u7c7b\u7684\u6587\u7ae0\u3001\u6216\u8005\u53ea\u663e\u793a\u67d0\u4e9b\u5206\u7c7b\u7684\u6587\u7ae0\u5462\uff1f\u8fd9\u65b9\u9762\u7684\u63d2\u4ef6\u5f88\u591a\uff0c\u4f46\u5927\u591a\u4e0d\u592a\u7a33\u5b9a\uff0c\u5bb9\u6613\u548c\u5176\u4ed6\u63d2\u4ef6\u53d1\u751f\n<\/p>\n<p>\n\t\u51b2\u7a81\u3002\u800c\u4e14\u4e0d\u7ba1\u600e\u6837\uff0c\u63d2\u4ef6\u5e94\u8be5\u80fd\u5c11\u7528\u5c31\u5c11\u7528\u3002\n<\/p>\n<p>\n\t\u5176\u5b9e\uff0c\u7528\u4ee3\u7801\u5c31\u53ef\u4ee5\u5f88\u5b9e\u73b0\u8fd9\u4e00\u70b9\uff0c\u65b9\u6cd5\u5982\u4e0b\uff1a\n<\/p>\n<p>\n\t\u5728index.php\u6216home.php\u91cc\u67e5\u627e\n<\/p>\n<p>\n\t&lt;?php if (have_posts()) : ?&gt;\u5728\u4e4b\u524d\u52a0\u5165\u4ee5\u4e0b\u4ee3\u7801\u5c31\u53ef\u4ee5\u4e86\u3002\n<\/p>\n<p>\n\t&lt;?php\n<\/p>\n<p>\n\t\/\/\u53ea\u663e\u793a\u67d0\u5206\u7c7b\u7684\u6587\u7ae0\n<\/p>\n<p>\n\t$cat_id='1,5';\/\/the category ID\n<\/p>\n<p>\n\t\/\/\u4e0d\u663e\u793a\u67d0\u4e9b\u5206\u7c7b\u7684\u8bdd\u8fd9\u6837\u5199\n<\/p>\n<p>\n\t\/\/$cat_id='-4,-8';\/\/the category ID\n<\/p>\n<p>\n\t$limit = get_option('posts_per_page');\n<\/p>\n<p>\n\t$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;\n<\/p>\n<p>\n\tquery_posts('cat=' . $cat_id . '&amp;showposts=' . $limit . '&amp;paged=' . $paged);\n<\/p>\n<p>\n\t$wp_query-&gt;is_archive = true; $wp_query-&gt;is_home = false;\n<\/p>\n<p>\n\t?&gt;\n<\/p>\n<p>\n\t-----------------------------------------------&gt;\n<\/p>\n<p>\n\tWordPress\u5f97\u5230\u6240\u6709\u7684\u5206\u7c7bYY \u53d1\u8868\u4e8e 2010-06-04 14:32 | \u6765\u6e90\uff1a | \u9605\u8bfb 1,215 \u6b21\u70b9\u51fbWordPress\u5f97\u5230\u6240\u6709\u7684\u5206\u7c7b\u5df2\u7ecf\u662f\u4e00\u4e2a\u5f88\u7b80\u5355\u7684\u4e8b\u4ef6\u4e86\uff0c\u6211\u4eec\u7528\u201dwp_list_categories()\u201d\u51fd\u6570\u5c31\u53ef\u4ee5\u5b9e\u73b0\uff0c\u4f46\u662f\u5982\u679c\u6211\u4eec\u8981\u5bf9\u6bcf\u4e2a\u5206\u7c7b\u8fdb\u884c\u64cd\u4f5c\u5c31\u662f\u4e00\u4ef6\u5f88\u96be\u7684\u4e8b\u4ef6\u4e86\u3002\n<\/p>\n<p>\n\t\u67e5\u8be2\u4e86\u5f88\u591a\u8d44\u6599\uff0c\u7ec8\u4e8e\u627e\u5230\u4e86\u4e00\u4e2a\u51fd\u6570\u53ef\u4ee5\u7528\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u201dget_categories()\u201d\u51fd\u6570\uff0c\u5b83\u8fd4\u56de\u4e0e\u67e5\u8be2\u53c2\u6570\u5339\u914d\u7684\u7c7b\u522bobjects\u7684\u6570\u7ec4\uff0c\u548c\u201dwp_list_categories()\u201d\u51fd\u6570\u975e\u5e38\u76f8\u50cf\u3002\n<\/p>\n<p>\n\t\u597d\u4e86\uff0c\u4e0b\u9762\u6211\u4eec\u5c31\u7528\u4e2a\u4f8b\u5b50\u6765\u8bb2\u89e3\u4e00\u4e0b\u8fd9\u4e2a\u51fd\u6570\u3002\n<\/p>\n<p>\n\t\u4e0b\u9762\u7684\u4ee3\u7801\u5c31\u662f\u5f97\u5230\u6240\u6709\u7684\u5206\u7c7b\uff0c\u5e76\u663e\u793a\u51fa\u6bcf\u4e2a\u5206\u7c7b\u4e0b\u6700\u65b0\u768410\u7bc7\u6587\u7ae0\uff1a\n<\/p>\n<p>\n\t&lt;?php\n<\/p>\n<p>\n\t\/\/ \u5f97\u5230\u6240\u6709\u5206\u7c7b\u5217\u8868\n<\/p>\n<p>\n\t$categories = get_categories();\n<\/p>\n<p>\n\t\/\/ \u5faa\u73af\u6240\u6709\u5206\u7c7b\n<\/p>\n<p>\n\tforeach ($categories as $cat) {\n<\/p>\n<p>\n\t\/\/ \u5f97\u5230\u5206\u7c7bID\n<\/p>\n<p>\n\t$catid = $cat-&gt;cat_ID;\n<\/p>\n<p>\n\t\/\/ \u5f97\u5230\u5206\u7c7b\u4e0b10\u7bc7\u6700\u65b0\u6587\u7ae0\n<\/p>\n<p>\n\tquery_posts(\"showposts=10&amp;cat=$catid\"); ?&gt;\n<\/p>\n<p>\n\t&lt;!-- \u8f93\u51fa\u5206\u7c7b\u6807\u9898\u53ca\u94fe\u63a5 --&gt;\n<\/p>\n<p>\n\t&lt;h4&gt;&lt;a href=\"&lt;?php echo get_category_link($catid);?&gt;\"\n<\/p>\n<p>\n\ttitle=\"&lt;?php echo strip_tags(category_description($catid)); ?&gt;\"&gt;\n<\/p>\n<p>\n\t&lt;?php single_cat_title(); ?&gt;\n<\/p>\n<p>\n\t&lt;\/a&gt;&lt;\/h4&gt;\n<\/p>\n<p>\n\t&lt;!-- \u8f93\u51fa10\u7bc7\u6700\u65b0\u6587\u7ae0\u7684\u6807\u9898\u53ca\u94fe\u63a5 --&gt;\n<\/p>\n<p>\n\t&lt;ul&gt;\n<\/p>\n<p>\n\t&lt;?php while (have_posts()) : the_post(); ?&gt;\n<\/p>\n<p>\n\t&lt;li&gt;\n<\/p>\n<p>\n\t&lt;a href=\"&lt;?php the_permalink() ?&gt;\" title=\"&lt;?php the_title(); ?&gt;\"&gt;\n<\/p>\n<p>\n\t&lt;?php the_title(); ?&gt;&lt;\/a&gt;\n<\/p>\n<p>\n\t&lt;?php the_time('m-d'); ?&gt;\n<\/p>\n<p>\n\t&lt;\/li&gt;\n<\/p>\n<p>\n\t&lt;?php endwhile; ?&gt;\n<\/p>\n<p>\n\t&lt;\/ul&gt;\n<\/p>\n<p>\n\t&lt;?php } ?&gt;\n<\/p>\n<p>\n\t-----------------------------------------------------------------------------&gt;\n<\/p>\n<p>\n\tWordPress\u83b7\u53d6\u5f53\u524d\u5206\u7c7b\u7684\u6839\u5206\u7c7bid\u51fd\u6570Wordpress 2010-08-26 15:52:05 \u9605\u8bfb77 \u8bc4\u8bba0   \u5b57\u53f7\uff1a\u5927\u4e2d\u5c0f\u8ba2\u9605\n<\/p>\n<p>\n\t\u4e4b\u524d\u5728\u505a\u8fd9\u4e2aWordPress\u7684Themes\u65f6\uff0c\u9700\u8981\u5b9e\u73b0\u5728\u6587\u7ae0\u5185\u5bb9\u9875\u9762\uff08single.php\uff09\u7684\u5faa\u73af\u4f53\u5916\n<\/p>\n<p>\n\t\u90e8\u8f93\u51fa\u8be5\u7bc7\u6587\u7ae0\u6240\u5c5e\u5206\u7c7b\u7684\u6240\u6709\u540c\u4e00\u7ea7\u5206\u7c7b\uff0c\u4e5f\u5c31\u662f\u8be5\u7bc7\u6587\u7ae0\u6240\u5c5e\u5206\u7c7b\u7684\u4e0a\u4e00\u7ea7\u5206\u7c7b\u4e0b\u7684\u5b50\n<\/p>\n<p>\n\t\u5206\u7c7b\u3002\u5f53\u7136\uff0c\u8fd9\u6837\u53ea\u9002\u7528\u4e8e\u53ea\u6709\u4e8c\u7ea7\u5206\u7c7b\u76ee\u5f55\u7684\u60c5\u51b5\uff01\u867d\u7136\u8c8c\u4f3cWordPress\u6709\u5185\u7f6e\u8fd9\u6837\u7684\u51fd\u6570\uff0c\u4f46\u662f\u90fd\u6ca1\u8fbe\u5230\u6211\u60f3\u8981\u7684\u6548\u679c\uff0c\u56e0\u4e3a\u6709\u4e9bWordPress\u7684\u5185\u7f6e\u51fd\u6570\u662f\u8981\u4f7f\u7528\u5728The Loop\u7684\n<\/p>\n<p>\n\t\u5faa\u73af\u4f53\u5185\u7684\uff0c\u6240\u4ee5\u7528WordPress\u5185\u7f6e\u51fd\u6570\u65e0\u6cd5\u5b9e\u73b0\u6211\u9700\u8981\u7684\u529f\u80fd\uff0c\u53ea\u6709\u81ea\u5df1\u52a8\u624b\u4e86\uff0c\u540e\u6765\u4f7f\n<\/p>\n<p>\n\t\u7528\u4e86\u4ee5\u4e0b\u4e24\u4e2a\u65b9\u6cd5\u89e3\u51b3\u4e86\u95ee\u9898\uff01\n<\/p>\n<p>\n\tfunction get_category_root_id($cat)\n<\/p>\n<p>\n\t{\n<\/p>\n<p>\n\t$this_category = get_category($cat); \/\/ \u53d6\u5f97\u5f53\u524d\u5206\u7c7b\n<\/p>\n<p>\n\twhile($this_category-&gt;category_parent)   \/\/ \u82e5\u5f53\u524d\u5206\u7c7b\u6709\u4e0a\u7ea7\u5206\u7c7b\u65f6\uff0c\u5faa\u73af\n<\/p>\n<p>\n\t{\n<\/p>\n<p>\n\t$this_category = get_category($this_category-&gt;category_parent);   \/\/ \u5c06\u5f53\u524d\u5206\u7c7b\u8bbe\u4e3a\u4e0a\u7ea7\u5206\n<\/p>\n<p>\n\t\u7c7b\uff08\u5f80\u4e0a\u722c\uff09\n<\/p>\n<p>\n\t}\n<\/p>\n<p>\n\treturn $this_category-&gt;term_id; \/\/ \u8fd4\u56de\u6839\u5206\u7c7b\u7684id\u53f7\n<\/p>\n<p>\n\t}\n<\/p>\n<p>\n\tfunction fengzx_get_category_ID() {\n<\/p>\n<p>\n\t$category = get_the_category();\n<\/p>\n<p>\n\treturn $category[0]-&gt;cat_ID;\n<\/p>\n<p>\n\t}\n<\/p>\n<p>\n\t\u4f7f\u7528\u7684\u65f6\u5019\u5c31\u8fd9\u6837\uff1a\n<\/p>\n<p>\n\t--------------------------------------------------------------------&gt;\n<\/p>\n<p>\n\twordpress\u5355\u4e2a\u6587\u7ae0\u9875\u9762\u7684\u4fa7\u8fb9\u680f\u5982\u679c\u8fd8\u662f\u663e\u793a\u548c\u9996\u9875\uff0c\u5206\u7c7b\u9875\u9762\u4e00\u6837\u7684\u6587\u7ae0\u5c31\u6ca1\u4ec0\u4e48\u610f\u601d\u4e86\u3002\u4e0b\u9762\u7684\u4ee3\u7801\u662f\u663e\u793a\u6587\u7ae0\u6240\u5c5e\u5206\u7c7b\u7684\u6587\u7ae0\u5217\u8868\uff0c\u8fd9\u6837\u53ef\u4ee5\u8ba9\u8bbf\u95ee\u8005\u53ef\u4ee5\u65b9\u4fbf\u67e5\u770b\u76f8\u5173\u6587\u7ae0\u3002\u56de\u5934\u518d\u6539\u6539\uff0c\u770b\u770b\u80fd\u4e0d\u80fd\u5728\u5206\u7c7b\u9875\u9762\u4e0a\u663e\u793a\u6700\u53d7\u6b22\u8fce\u7684\u6587\u7ae0\u3002\n<\/p>\n<p>\n\t\u6dfb\u52a0\u4e0b\u5217\u4ee3\u7801\u5728\u5408\u65f6\u7684\u4f4d\u7f6e\u5373\u53ef\n<\/p>\n<p>\n\t&lt;?php\n<\/p>\n<p>\n\t\/*\n<\/p>\n<p>\n\tsingle page?show current category articles\n<\/p>\n<p>\n\t*\/\n<\/p>\n<p>\n\t?&gt;\n<\/p>\n<p>\n\t&lt;?php\n<\/p>\n<p>\n\tif ( is_single() ) :\n<\/p>\n<p>\n\tglobal $post;\n<\/p>\n<p>\n\t$categories = get_the_category();\n<\/p>\n<p>\n\tforeach ($categories as $category) :\n<\/p>\n<p>\n\t?&gt;\n<\/p>\n<p>\n\t&lt;li class=\"widget widget_recent_entries\" id=\"&lt;?php $category-&gt;term_id;?&gt;-posts\"&gt;\n<\/p>\n<p>\n\t&lt;h2 class=\"widgettitle\"&gt;&lt;?php echo $category-&gt;name; ?&gt;&lt;\/h2&gt;\n<\/p>\n<p>\n\t&lt;ul&gt;\n<\/p>\n<p>\n\t&lt;?php\n<\/p>\n<p>\n\t$posts = get_posts('numberposts=5&amp;category='. $category-&gt;term_id);\n<\/p>\n<p>\n\tforeach($posts as $post) :\n<\/p>\n<p>\n\t?&gt;\n<\/p>\n<p>\n\t&lt;li&gt;\n<\/p>\n<p>\n\t&lt;a href=\"&lt;?php the_permalink(); ?&gt;\"&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;\n<\/p>\n<p>\n\t&lt;\/li&gt;\n<\/p>\n<p>\n\t&lt;?php endforeach; ?&gt;\n<\/p>\n<p>\n\t&lt;\/ul&gt;\n<\/p>\n<p>\n\t&lt;\/li&gt;\n<\/p>\n<p>\n\t&lt;?php\n<\/p>\n<p>\n\tendforeach; endif ; ?&gt;\n<\/p>\n<p>\n\t&lt;?php\n<\/p>\n<p>\n\t\/*\n<\/p>\n<p>\n\tend show current category articles\n<\/p>\n<p>\n\t*\/\n<\/p>\n<p>\n\t?&gt;\n<\/p>\n<p>\n\t------------------------------------------------------------------------&gt;\n<\/p>\n<p>\n\t1. wordpress\u8c03\u7528\u6700\u65b0\u6587\u7ae0\n<\/p>\n<p>\n\tWordpress\u6700\u65b0\u6587\u7ae0\u7684\u8c03\u7528\u53ef\u4ee5\u4f7f\u7528\u4e00\u884c\u5f88\u7b80\u5355\u7684\u6a21\u677f\u6807\u7b7ewp_get_archvies\u6765\u5b9e\u73b0. \u4ee3\u7801\u5982\u4e0b\uff1a\n<\/p>\n<p>\n\t&lt;?php get_archives('postbypost', 10); ?&gt; (\u663e\u793a10\u7bc7\u6700\u65b0\u66f4\u65b0\u6587\u7ae0)\n<\/p>\n<p>\n\t\u6216\u8005\n<\/p>\n<p>\n\t&lt;?php wp_get_archives(\u2018type=postbypost&amp;limit=20&amp;format=custom\u2019); ?&gt;\n<\/p>\n<p>\n\t\u540e\u9762\u8fd9\u4e2a\u4ee3\u7801\u663e\u793a\u4f60\u535a\u5ba2\u4e2d\u6700\u65b0\u768420\u7bc7\u6587\u7ae0\uff0c\u5176\u4e2dformat=custom\u8fd9\u91cc\u4e3b\u8981\u7528\u6765\u81ea\u5b9a\u4e49\u8fd9\n<\/p>\n<p>\n\t\u4efd\u6587\u7ae0\u5217\u8868\u7684\u663e\u793a\u6837\u5f0f\u3002\u5177\u4f53\u7684\u53c2\u6570\u548c\u4f7f\u7528\u65b9\u6cd5\u4f60\u53ef\u4ee5\u53c2\u8003\u5b98\u65b9\u7684\u4f7f\u7528\u8bf4\u660e-\n<\/p>\n<p>\n\twp_get_archvies\u3002(fromat=custom\u4e5f\u53ef\u4ee5\u4e0d\u8981\uff0c\u9ed8\u8ba4\u4ee5UL\u5217\u8868\u663e\u793a\u6587\u7ae0\u6807\u9898\u3002)\n<\/p>\n<p>\n\t\u8865\u5145: \u901a\u8fc7WP\u7684query_posts()\u51fd\u6570\u4e5f\u80fd\u8c03\u7528\u6700\u65b0\u6587\u7ae0\u5217\u8868\uff0c\u867d\u7136\u4ee3\u7801\u4f1a\u6bd4\u8f83\u591a\u4e00\u70b9\uff0c\u4f46\u53ef\n<\/p>\n<p>\n\t\u4ee5\u66f4\u597d\u7684\u63a7\u5236Loop\u7684\u663e\u793a\uff0c\u6bd4\u5982\u4f60\u53ef\u4ee5\u8bbe\u7f6e\u662f\u5426\u663e\u793a\u6458\u8981\u3002\u5177\u4f53\u7684\u4f7f\u7528\u65b9\u6cd5\u4e5f\u53ef\u4ee5\u67e5\u770b\u5b98\n<\/p>\n<p>\n\t\u65b9\u7684\u8bf4\u660e\u3002\n<\/p>\n<p>\n\t2. wordpress\u8c03\u7528\u968f\u673a\u6587\u7ae0 &lt;?php$rand_posts =\n<\/p>\n<p>\n\tget_posts('numberposts=10&amp;orderby=rand');foreach( $rand_posts as $post ) :?&gt;&lt;!--\u4e0b\u9762\u662f\u4f60\u60f3\n<\/p>\n<p>\n\t\u81ea\u5b9a\u4e49\u7684Loop--&gt;&lt;li&gt;&lt;a href=\"&lt;?php the_permalink(); ?&gt;\"&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/li&gt;&lt;?php endforeach; ?&gt;\n<\/p>\n<p>\n\t3. wordpress\u8c03\u7528\u6700\u65b0\u7559\u8a00\n<\/p>\n<p>\n\t\u4e0b\u9762\u662f\u6211\u4e4b\u524d\u5728\u4e00\u4e2aWordpress\u4e3b\u9898\u4e2d\u4ee3\u5230\u7684\u6700\u65b0\u7559\u8a00\u4ee3\u7801\uff0c\u5177\u4f53\u4e5f\u8bb0\u4e0d\u5f97\u662f\u54ea\u4e2a\u4e3b\u9898\u4e86\u3002\n<\/p>\n<p>\n\t\u8be5\u4ee3\u7801\u76f4\u63a5\u8c03\u7528\u6570\u636e\u5e93\u663e\u793a\u4e00\u4efd\u6700\u65b0\u7559\u8a00\u3002\u5176\u4e2d LIMIT 10\u9650\u5236\u7559\u8a00\u663e\u793a\u6570\u91cf\u3002\u7eff\u8272\u90e8\u4efd\u5219\n<\/p>\n<p>\n\t\u662f\u6bcf\u6761\u7559\u8a00\u7684\u8f93\u51fa\u6837\u5f0f\u3002\n<\/p>\n<p>\n\t&lt;?phpglobal $wpdb;$sql = \"SELECT DISTINCT ID, post_title, post_password, comment_ID,comment_post_ID, comment_author, comment_date_gmt, comment_approved,comment_type,comment_author_url,SUBSTRING(comment_content,1,30)\n<\/p>\n<p>\n\tAS com_excerptFROM $wpdb-&gt;commentsLEFT OUTER JOIN $wpdb-&gt;posts ON ($wpdb-&gt;comments.comment_post_ID =$wpdb-&gt;posts.ID)WHERE comment_approved = '1'\n<\/p>\n<p>\n\tAND comment_type = '' ANDpost_password = ''ORDER BY comment_date_gmt DESCLIMIT\n<\/p>\n<p>\n\t10\";$comments = $wpdb-&gt;get_results($sql);$output = $pre_HTML;   foreach ($comments as $comment) {$output .= \"n&lt;li&gt;\".strip_tags($comment-&gt;comment_author).\":\" . \" &lt;a href=\"\" .\n<\/p>\n<p>\n\tget_permalink($comment-&gt;ID) .\"#comment-\" . $comment-&gt;comment_ID . \"\" title=\"on\n<\/p>\n<p>\n\t\" .$comment-&gt;post_title . \"\"&gt;\" . strip_tags($comment-&gt;com_excerpt).\"&lt;\/a&gt;&lt;\/li&gt;\";} $output .=\n<\/p>\n<p>\n\t$post_HTML;echo $output;?&gt;\n<\/p>\n<p>\n\t4.wordpress\u8c03\u7528\u76f8\u5173\u6587\u7ae0\n<\/p>\n<p>\n\t\u5728\u6587\u7ae0\u9875\u663e\u793a\u76f8\u5173\u6587\u7ae0\n<\/p>\n<p>\n\t&lt;?php $tags = wp_get_post_tags($post-&gt;ID); if ($tags) { $first_tag = $tags[0]-&gt;term_id;\n<\/p>\n<p>\n\t$args=array( 'tag__in' =&gt; array($first_tag), 'post__not_in' =&gt; array($post-&gt;ID), 'showposts'=&gt;10,\n<\/p>\n<p>\n\t'caller_get_posts'=&gt;1 ); $my_query = new WP_Query($args); if( $my_query-&gt;have_posts() )\n<\/p>\n<p>\n\t{ while ($my_query-&gt;have_posts()) : $my_query-&gt;the_post(); ?&gt; &lt;li&gt;&lt;a href=\"&lt;?php\n<\/p>\n<p>\n\tthe_permalink() ?&gt;\" rel=\"bookmark\" title=\"&lt;?php the_title_attribute(); ?&gt;\"&gt;&lt;?php the_title();?&gt;\n<\/p>\n<p>\n\t&lt;?php comments_number(' ','(1)','(%)'); ?&gt;&lt;\/a&gt;&lt;\/li&gt; &lt;?php endwhile; } } wp_reset_query(); ?&gt;\n<\/p>\n<p>\n\t5.wordpress\u8c03\u7528\u6307\u5b9a\u5206\u7c7b\u7684\u6587\u7ae0\n<\/p>\n<p>\n\t&lt;?php $posts = get_posts( \"category=4&amp;numberposts=10\" ); ?&gt;&lt;?php if( $posts ) : ?&gt;&lt;ul&gt;&lt;?php\n<\/p>\n<p>\n\tforeach( $posts as $post ) : setup_postdata( $post ); ?&gt;&lt;li&gt;&lt;a href=\"&lt;?php the_permalink() ?&gt;\"\n<\/p>\n<p>\n\trel=\"bookmark\" title=\"&lt;?php the_title(); ?&gt;\"&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/li&gt;&lt;?php endforeach; ?&gt;&lt;\/ul&gt;&lt;?php endif; ?&gt;\n<\/p>\n<p>\n\t6.wordpress\u53bb\u8bc4\u8bba\u8005\u94fe\u63a5\u7684\u8bc4\u8bba\u8f93\u51fa\n<\/p>\n<p>\n\t&lt;?php global $wpdb; $sql = \"SELECT DISTINCT ID, post_title, post_password, comment_ID,\n<\/p>\n<p>\n\tcomment_post_ID, comment_author, comment_date_gmt, comment_approved,\n<\/p>\n<p>\n\tcomment_type,comment_author_url, SUBSTRING(comment_content,1,14) AS com_excerpt\n<\/p>\n<p>\n\tFROM $wpdb-&gt;comments LEFT OUTER JOIN $wpdb-&gt;posts ON\n<\/p>\n<p>\n\t($wpdb-&gt;comments.comment_post_ID = $wpdb-&gt;posts.ID) WHERE comment_approved = '1'\n<\/p>\n<p>\n\tAND comment_type = '' AND post_password = '' ORDER BY comment_date_gmt DESC LIMIT\n<\/p>\n<p>\n\t10\"; $comments = $wpdb-&gt;get_results($sql); $output = $pre_HTML; foreach ($comments as\n<\/p>\n<p>\n\t$comment) { $output .= \"\\n&lt;li&gt;\".strip_tags($comment-&gt;comment_author) .\":\" . \" &lt;a href=\\\"\" .\n<\/p>\n<p>\n\tget_permalink($comment-&gt;ID) . \"#comment-\" . $comment-&gt;comment_ID . \"\\\" title=\\\"on \" .\n<\/p>\n<p>\n\t$comment-&gt;post_title . \"\\\"&gt;\" . strip_tags($comment-&gt;com_excerpt) .\"&lt;\/a&gt;&lt;\/li&gt;\"; } $output .=\n<\/p>\n<p>\n\t$post_HTML; echo $output;?&gt;\n<\/p>\n<p>\n\t7.wordpress\u8c03\u7528\u542bgravatar\u5934\u50cf\u7684\u8bc4\u8bba\u8f93\u51fa\n<\/p>\n<p>\n\t&lt;?php global $wpdb; $sql = \"SELECT DISTINCT ID, post_title, post_password, comment_ID,\n<\/p>\n<p>\n\tcomment_post_ID, comment_author, comment_date_gmt, comment_approved,comment_author_email, comment_type,comment_author_url, SUBSTRING(comment_content,1,10) AS com_excerpt FROM $wpdb-&gt;comments LEFT OUTER\n<\/p>\n<p>\n\tJOIN $wpdb-&gt;posts ON ($wpdb-&gt;comments.comment_post_ID = $wpdb-&gt;posts.ID) WHERE\n<\/p>\n<p>\n\tcomment_approved = '1' AND comment_type = '' AND comment_author != '\u90d1\u6c38' AND\n<\/p>\n<p>\n\tpost_password = '' ORDER BY comment_date_gmt DESC LIMIT 10\"; $comments =\n<\/p>\n<p>\n\t$wpdb-&gt;get_results($sql); $output = $pre_HTML; foreach ($comments as $comment)\n<\/p>\n<p>\n\t{ $output .= \"\\n&lt;li&gt;\".get_avatar(get_comment_author_email('comment_author_email'), 18). \" &lt;a\n<\/p>\n<p>\n\thref=\\\"\" . get_permalink($comment-&gt;ID) . \"#comment-\" . $comment-&gt;comment_ID . \"\\\" title=\\\"\" .\n<\/p>\n<p>\n\t$comment-&gt;post_title . \" \u4e0a\u7684\u8bc4\u8bba\\\"&gt;\". strip_tags($comment-&gt;comment_author) .\"\uff1a \".\n<\/p>\n<p>\n\tstrip_tags($comment-&gt;com_excerpt) .\"&lt;\/a&gt;&lt;\/li&gt;\"; } $output .= $post_HTML; $output = convert_smilies($output); echo $output; ?&gt;\n<\/p>\n<p>\n\t\u4e0a\u9762\u4ee3\u7801\u628acomment_author\u7684\u503c\u6539\u6210\u4f60\u7684ID\uff0c18\u662f\u5934\u50cf\u5927\u5c0f\uff0c10\u662f\u8bc4\u8bba\u6570\u91cf\u3002\n<\/p>\n<p>\n\t8.wordpress\u8c03\u7528\u7f51\u7ad9\u7edf\u8ba1\u5927\u5168\n<\/p>\n<p>\n\t1\u3001\u65e5\u5fd7\u603b\u6570\uff1a &lt;?php $count_posts = wp_count_posts(); echo $published_posts = $count_posts-&gt;publish;?&gt;\n<\/p>\n<p>\n\t2\u3001\u8349\u7a3f\u6570\u76ee\uff1a &lt;?php $count_posts = wp_count_posts(); echo $draft_posts = $count_posts-&gt;draft; ?&gt;\n<\/p>\n<p>\n\t3\u3001\u8bc4\u8bba\u603b\u6570\uff1a &lt;?php echo $wpdb-&gt;get_var(\"SELECT COUNT(*) FROM $wpdb-&gt;comments\");?&gt;\n<\/p>\n<p>\n\t4\u3001\u6210\u7acb\u65f6\u95f4\uff1a &lt;?php echo floor((time()-strtotime(\"2008-8-18\"))\/86400); ?&gt;\n<\/p>\n<p>\n\t5\u3001\u6807\u7b7e\u603b\u6570\uff1a &lt;?php echo $count_tags = wp_count_terms('post_tag'); ?&gt;\n<\/p>\n<p>\n\t6\u3001\u9875\u9762\u603b\u6570\uff1a &lt;?php $count_pages = wp_count_posts('page'); echo $page_posts = $count_pages-&gt;publish; ?&gt;\n<\/p>\n<p>\n\t7\u3001\u5206\u7c7b\u603b\u6570\uff1a&lt;?php echo $count_categories = wp_count_terms('category'); ?&gt;\n<\/p>\n<p>\n\t8\u3001\u94fe\u63a5\u603b\u6570\uff1a &lt;?php $link = $wpdb-&gt;get_var(\"SELECT COUNT(*) FROM $wpdb-&gt;links WHERE link_visible = 'Y'\"); echo $link; ?&gt;\n<\/p>\n<p>\n\t9\u3001\u7528\u6237\u603b\u6570\uff1a&lt;?php $users = $wpdb-&gt;get_var(\"SELECT COUNT(ID) FROM $wpdb-&gt;users\"); echo $users; ?&gt; 10\u3001\u6700\u540e\u66f4\u65b0\uff1a&lt;?php $last = $wpdb-&gt;get_results(\"SELECT MAX(post_modified) AS MAX_m FROM $wpdb-&gt;posts WHERE (post_type = 'post' OR post_type = 'page') AND (post_status = 'publish' OR post_status = 'private')\");$last = date('Y-n-j', strtotime($last[0]-&gt;MAX_m));echo $last; ?&gt; 9.wordpress\u5224\u65ad\u8bed\u53e5\n<\/p>\n<p>\n\tis_single()\n<\/p>\n<p>\n\t\u5224\u65ad\u662f\u5426\u662f\u5177\u4f53\u6587\u7ae0\u7684\u9875\u9762\n<\/p>\n<p>\n\tis_single(\u20192\u2032)\n<\/p>\n<p>\n\t\u5224\u65ad\u662f\u5426\u662f\u5177\u4f53\u6587\u7ae0\uff08id=2\uff09\u7684\u9875\u9762\n<\/p>\n<p>\n\tis_single(\u2019Beef Stew\u2019)\n<\/p>\n<p>\n\t\u5224\u65ad\u662f\u5426\u662f\u5177\u4f53\u6587\u7ae0\uff08\u6807\u9898\u5224\u65ad\uff09\u7684\u9875\u9762\n<\/p>\n<p>\n\tis_single(\u2019beef-stew\u2019)\n<\/p>\n<p>\n\t\u5224\u65ad\u662f\u5426\u662f\u5177\u4f53\u6587\u7ae0\uff08slug\u5224\u65ad\uff09\u7684\u9875\u9762\n<\/p>\n<p>\n\tcomments_open()\n<\/p>\n<p>\n\t\u662f\u5426\u7559\u8a00\u5f00\u542f\n<\/p>\n<p>\n\tpings_open()\n<\/p>\n<p>\n\t\u662f\u5426\u5f00\u542fping\n<\/p>\n<p>\n\tis_page()\n<\/p>\n<p>\n\t\u662f\u5426\u662f\u9875\u9762\n<\/p>\n<p>\n\tis_page(\u201942\u2032)\n<\/p>\n<p>\n\tid\u5224\u65ad\uff0c\u5373\u662f\u5426\u662fid\u4e3a42\u7684\u9875\u9762is_page(\u2019About Me\u2019)\n<\/p>\n<p>\n\t\u5224\u65ad\u6807\u9898\n<\/p>\n<p>\n\tis_page(\u2019about-me\u2019)\n<\/p>\n<p>\n\tslug\u5224\u65ad\n<\/p>\n<p>\n\tis_category()\n<\/p>\n<p>\n\t\u662f\u5426\u662f\u5206\u7c7b\n<\/p>\n<p>\n\tis_category(\u20196\u2032)\n<\/p>\n<p>\n\tid\u5224\u65ad\uff0c\u5373\u662f\u5426\u662fid\u4e3a6\u7684\u5206\u7c7bis_category(\u2019Cheeses\u2019)\n<\/p>\n<p>\n\t\u5206\u7c7btitle\u5224\u65ad\n<\/p>\n<p>\n\tis_category(\u2019cheeses\u2019)\n<\/p>\n<p>\n\t\u5206\u7c7b slug\u5224\u65ad\n<\/p>\n<p>\n\tin_category(\u20195\u2032)\n<\/p>\n<p>\n\t\u5224\u65ad\u5f53\u524d\u7684\u6587\u7ae0\u662f\u5426\u5c5e\u4e8e\u5206\u7c7b5 is_author()\n<\/p>\n<p>\n\t\u5c06\u6240\u6709\u7684\u4f5c\u8005\u7684\u9875\u9762\u663e\u793a\u51fa\u6765\n<\/p>\n<p>\n\tis_author(\u20191337\u2032)\n<\/p>\n<p>\n\t\u663e\u793aauthor number\u4e3a1337\u7684\u9875\u9762\n<\/p>\n<p>\n\tis_author(\u2019Elite Hacker\u2019)\n<\/p>\n<p>\n\t\u901a\u8fc7\u6635\u79f0\u6765\u663e\u793a\u5f53\u524d\u4f5c\u8005\u7684\u9875\u9762\n<\/p>\n<p>\n\tis_author(\u2019elite-hacker\u2019)\n<\/p>\n<p>\n\t\u4e0b\u9762\u662f\u901a\u8fc7\u4e0d\u540c\u7684\u5224\u65ad\u5b9e\u73b0\u4ee5\u5e74\u3001\u6708\u3001\u65e5\u3001\u65f6\u95f4\u7b49\u65b9\u5f0f\u6765\u663e\u793a\u5f52\u6863\n<\/p>\n<p>\n\tis_date()\n<\/p>\n<p>\n\tis_year()\n<\/p>\n<p>\n\tis_month()\n<\/p>\n<p>\n\tis_day()\n<\/p>\n<p>\n\tis_time()\n<\/p>\n<p>\n\t\u5224\u65ad\u5f53\u524d\u662f\u5426\u662f\u5f52\u6863\u9875\u9762\n<\/p>\n<p>\n\tis_archive()\n<\/p>\n<p>\n\t\u5224\u65ad\u662f\u5426\u662f\u641c\u7d22\n<\/p>\n<p>\n\tis_search()\n<\/p>\n<p>\n\t\u5224\u65ad\u9875\u9762\u662f\u5426404\n<\/p>\n<p>\n\tis_404()\n<\/p>\n<p>\n\t\u5224\u65ad\u662f\u5426\u7ffb\u9875\uff0c\u6bd4\u5982\u4f60\u5f53\u524d\u7684blog\u662fhttp:\/\/blog.sina.com.cn\/gutengfei0707 \u663e\u793ahttp:\/\/blog.sina.com.cn\/gutengfei0707?paged=2\u7684\u65f6\u5019\uff0c\u8fd9\u4e2a\u5224\u65ad\u5c06\u8fd4\u56de\u771f\uff0c\u901a\u8fc7\u8fd9\u4e2a\u51fd\u6570\u53ef\u4ee5\u914d\u5408is_home\u6765\u63a7\u5236\u67d0\u4e9b\u53ea\u80fd\u5728\u9996\u9875\u663e\u793a\u7684\u754c\u9762\uff0c\n<\/p>\n<p>\n\t\u4f8b\u5982\uff1a\n<\/p>\n<p>\n\t&lt;?php if(is_single()):?&gt; \/\/\u8fd9\u91cc\u5199\u4f60\u60f3\u663e\u793a\u7684\u5185\u5bb9\uff0c\u5305\u62ec\u51fd\u6570 &lt;?php endif;?&gt;\n<\/p>\n<p>\n\t\u6216\u8005\uff1a\n<\/p>\n<p>\n\t&lt;?php if(is_home() &amp;&amp; !is_paged() ):?&gt; \/\/\u8fd9\u91cc\u5199\u4f60\u60f3\u663e\u793a\u7684\u5185\u5bb9\uff0c\u5305\u62ec\u51fd\u6570 &lt;?php endif;?&gt;  10.wordpress\u975e\u63d2\u4ef6\u540c\u6b65twitter\n<\/p>\n<p>\n\t&lt;?php require_once (ABSPATH . WPINC . \u2018\/class-feed.php\u2019); $feed = new SimplePie(); $feed-&gt;set_feed_url(\u2018http:\/\/feeds.feedburner.com\/agting\u2032); $feed-&gt;set_file_class(\u2018WP_SimplePie_File\u2019); $feed-&gt;set_cache_duration(600); $feed-&gt;init(); $feed-&gt;handle_content_type(); $items = $feed-&gt;get_items(0,1); foreach($items as $item) { echo \u2018&lt;a target=\u201d_blank\u201d rel=\u201dexternal nofollow\u201d title=\u201dFollow Me on Twitter\u201d href=\u201dhttp:\/\/twitter.com\/agting\u2033&gt;@\u90d1\u6c38&lt;\/a&gt;: \u2018.$item-&gt;get_description(); } ?&gt;\n<\/p>\n<p>\n\t\u4ee3\u7801\u4e2d\u7684agting\u6539\u6210\u4f60\u7684twitter\u7528\u6237\u540d\uff0c\u90d1\u6c38\u6539\u6210\u4f60\u7684\u540d\u5b57\u3002\n<\/p>\n<p>\n\t\u53e6\u4e00\u79cd\u8c03\u7528\u65b9\u6cd5\u9700\u8981\u4f60\u7684\u7a7a\u95f4\u662f\u56fd\u5916\u4e3b\u673a\uff1a\n<\/p>\n<p>\n\t&lt;?php \/\/ Your twitter username. $username = \"wange1228\"; \/\/ Prefix - some text you want displayed before your latest tweet. \/\/ (HTML is OK, but be sure to escape quotes with backslashes: for example href=\\\"link.html\\\") \/\/ Suffix - some text you want display after your latest tweet. (Same rules as the prefix.) $suffix = \"\"; $feed = \"http:\/\/search.twitter.com\/search.atom?q=from:\" . $username . \"&amp;rpp=1\"; function parse_feed($feed) { $stepOne = explode(\"&lt;content type=\\\"html\\\"&gt;\", $feed); $stepTwo = explode(\"&lt;\/content&gt;\", $stepOne[1]); $tweet = $stepTwo[0]; $tweet = str_replace(\"&amp;lt;\", \"&lt;\", $tweet); $tweet = str_replace(\"&amp;gt;\", \"&gt;\", $tweet); return $tweet; } $twitterFeed = file_get_contents($feed); echo stripslashes($prefix) . parse_feed($twitterFeed) . stripslashes($suffix); ?&gt;\n<\/p>\n<p>\n\tZeroZ \u603b\u7ed3\u4e86\u4e00\u4e0b\u8fd9\u4e2a\u65b9\u6cd5\u7684\u7279\u70b9\uff1a\n<\/p>\n<p>\n\t1\u3001\u975e\u63d2\u4ef6\uff01\n<\/p>\n<p>\n\t2\u3001\u4e0d\u7528\u9a8c\u8bc1\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u4e5f\u5c31\u662f\u8bf4\u4f60\u53ef\u4ee5\u6307\u5b9a\u8c03\u7528\u4efb\u4f55\u4e00\u4e2a\u4eba\u7684 tweet\uff01\n<\/p>\n<p>\n\t3\u3001\u53ef\u4ee5\u81ea\u5b9a\u4e49 tweet \u4fe1\u606f\u540e\u663e\u793a\u7684\u6587\u5b57\uff0c\u5c31\u662f $suffix = \u201c\u201d; \u8fd9\u91cc\uff01\n<\/p>\n<p>\n\t4\u3001\u53ea\u80fd\u8c03\u7528\u6700\u65b0\u7684\u4e00\u6761 tweet\uff0c\u521a\u597d\u6ee1\u8db3\u6211\u7684\u9700\u6c42\u3002\n<\/p>\n<p>\n\t5\u3001\u5927\u6982\u53ea\u6709\u56fd\u5916\u7a7a\u95f4\u624d\u80fd\u4f7f\u7528\uff01\uff08\u7ecf\u6211\u9a8c\u8bc1\uff0c\u786e\u5b9e\u5982\u6b64\uff09\n<\/p>\n<p>\n\tWP\u5168\u81ea\u52a8\u5916\u94fe\u63d2\u4ef6\n<\/p>\n<p>\n\t\u5728\u8fd9\u91cc\uff0c\u5411\u5927\u5bb6\u9686\u91cd\u63a8\u8350WP\u5168\u81ea\u52a8\u5916\u94fe\u63d2\u4ef6\uff1aAutomatic Backlink Creator\u63d2\u4ef6\u3002\n<\/p>\n<p>\n\t\u8fd9\u6b3e\u8f6f\u4ef6\u672c\u4eba\u4f7f\u7528\u8fc7\uff0c\u6548\u679c\u975e\u5e38\u4e0d\u9519\uff0c\u6240\u4ee5\u4eca\u5929\u5728\u8fd9\u91cc\u63a8\u8350\u4e00\u4e0b\uff0c\u5e0c\u671b\u53ef\u4ee5\u8282\u7701\u5927\u5bb6\u505a\n<\/p>\n<p>\n\t\u5916\u94fe\u7684\u65f6\u95f4\u548c\u7cbe\u529b\uff01\n<\/p>\n<p>\n\tAutomatic Backlink Creator\u4e3b\u8981\u9488\u5bf9wordpress\u7a0b\u5e8f\u5efa\u7acb\u7684\u7f51\u7ad9\u3002\u70ed\u8877\u4e8eWP\u7684\u7ad9\u957f\u670b\u53cb\uff0c\u5c24\u5176\u662f\u9488\u5bf9\u505a\u5916\u8d38\u7684\u7ad9\u957f\u670b\u53cb\u4eec\uff0c\u4e3b\u505aGoogle\u3001Yahoo\u641c\u7d22\u5f15\u64ceSEO\uff0c\u5e94\u8be5\u662f\u4e00\u4e2a\u975e\n<\/p>\n<p>\n\t\u5e38\u597d\u7684\u6d88\u606f\uff01\n<\/p>\n<p>\n\t\u8fd9\u6b3e\u8f6f\u4ef6\u7c7b\u4f3c\u4e8eWP\u63d2\u4ef6\uff0c\u662f\u4e00\u4e2aWP\u7ad9\u5916\u94fe\u7684\u5b8c\u7f8e\u89e3\u51b3\u65b9\u6848\uff01\u53ea\u9700\u8981\u5728\u7f51\u7ad9\u540e\u53f0\u8f7b\u677e\u5b89\u88c5\uff0c\u5c31\u53ef\u4ee5\u91c7\u7528\u5bf9\u641c\u7d22\u5f15\u64ce\u6709\u597d\u7684\u65b9\u5f0f\uff0c\u8ba9WP\u7f51\u7ad9\u81ea\u52a8\u589e\u52a0\u9ad8\u6743\u91cd\u5916\u94fe\u3002\n<\/p>\n<p>\n\t\u6700\u8fd1\u672c\u8f6f\u4ef6\u7684\u5b98\u65b9\u7f51\u7ad9\uff0cAutomatic Backlink Creator\u7684\u4ef7\u683c\u53ea\u9700\u898137\u7f8e\u5143\uff0c\u53ef\u4ee5\u4f7f\u7528\u4fe1\u7528\n<\/p>\n<p>\n\t\u5361\u6216\u8005paypal\u4ed8\u6b3e\uff0c\u5728\u56fd\u5916\u5356\u7684\u975e\u5e38\u706b\u7206\uff01\u8d2d\u4e70\u7684\u540c\u65f6\uff0c\u8fd8\u8d60\u9001MetaSnatcher\u63d2\u4ef6\uff0c\u8fd9\n<\/p>\n<p>\n\t\u6b3e\u63d2\u4ef6\u53ef\u4ee5\u81ea\u52a8\u8ddf\u8e2a\u6392\u5728\u8c37\u6b4c\u524d\u51e0\u540d\u7684\u7ade\u4e89\u5bf9\u624b\u7f51\u7ad9\u6838\u5fc3\u5173\u952e\uff0c\u5e76\u4e14\u81ea\u52a8\u8fd4\u56de\u5230\u8f6f\u4ef6\uff0c\u7701\u53bb\u5927\u91cf\u5173\u952e\u5b57\u5206\u6790\u7684\u65f6\u95f4\u3002Spin Master Pro\u63d2\u4ef6\u3002\u8fd9\u6b3e\u63d2\u4ef6\u76f8\u5f53\u4e8e\u662fWP\u79bb\u7ebf\u4f2a\u539f\u521b\u548c\u53d1\u5e03\u63d2\u4ef6\uff0c\u5b89\u88c5\u8fd9\u6b3e\u63d2\u4ef6\u4e4b\u540e\uff0c\u53ef\u4ee5\u5728\u81ea\u5df1\u7684\u7535\u8111\u8fdb\u884c\u5185\u5bb9\u4f2a\u539f\u521b\u5e76\u79bb\u7ebf\u53d1\u5e03\uff0c\u8282\u7701\u5927\u91cf\u65f6\u95f4\u3002\u540c\u65f6\uff0c\u672c\u8f6f\u4ef6\u63d0\u4f9b60\u5929\u4e0d\u6ee1\u610f\u9000\u6b3e\u4fdd\u8bc1\u3002\n<\/p>\n<p>\n\t\u70b9\u51fb\u67e5\u770b\n<\/p>\n<p>\n\t\u8fd9\u6b3e\u8f6f\u4ef6\u7684\u5f00\u53d1\u8005\u662f\u4e00\u7fa4SEO\u9ad8\u624b\uff0c\u7ed3\u5408\u8c37\u6b4c\u548c\u96c5\u864e\u7684\u5916\u94fe\u7b97\u6cd5\uff0c\u5f00\u53d1\u51fa\u4e86\u8fd9\u6b3e\u5f3a\u5927\u4f18\u79c0\u7684\u5916\u94fe\u8f6f\u4ef6\uff0c\u5728\u5916\u94fe\u7684PR\u3001OBL\u3001FLAG\u7b49\u65b9\u9762\u8003\u8651\u5230\u4e86\u6781\u81f4\u3002\u5e76\u4e14\u901a\u8fc7\u8fd9\u4e2a\u7cfb\u7edf\u53ef\u4ee5\u4ea7\u751f\u7a33\u5b9a\u7684\u3001\u6301\u7eed\u589e\u52a0\u7684\u9ad8\u8d28\u91cf\u53cd\u94fe\uff0c\u4f8b\u5982.edu\u3001.gov\u7b49\u7b49\u7f51\u7ad9\u7684\u5916\u94fe\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\u51fa\u5904 &lt;?php get_calendar() ?&gt; \u65e5\u5386 no-category-paren &hellip; <a href=\"http:\/\/81.70.49.155\/?p=2043\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c[\u8f6c]wordpress\u4ee3\u7801\u8c03\u7528\u5927\u5168\u66f4\u65b0\u5230_3.0\u7248\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"views":785,"_links":{"self":[{"href":"http:\/\/81.70.49.155\/index.php?rest_route=\/wp\/v2\/posts\/2043"}],"collection":[{"href":"http:\/\/81.70.49.155\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/81.70.49.155\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/81.70.49.155\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/81.70.49.155\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2043"}],"version-history":[{"count":1,"href":"http:\/\/81.70.49.155\/index.php?rest_route=\/wp\/v2\/posts\/2043\/revisions"}],"predecessor-version":[{"id":2044,"href":"http:\/\/81.70.49.155\/index.php?rest_route=\/wp\/v2\/posts\/2043\/revisions\/2044"}],"wp:attachment":[{"href":"http:\/\/81.70.49.155\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2043"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/81.70.49.155\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2043"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/81.70.49.155\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}