{"id":21116,"date":"2016-08-14T22:14:33","date_gmt":"2016-08-14T18:44:33","guid":{"rendered":"http:\/\/www.xn--mgbguh09aqiwi.com\/?p=21116"},"modified":"2016-08-14T22:14:33","modified_gmt":"2016-08-14T18:44:33","slug":"%d8%aa%d8%b1%d9%81%d9%86%d8%af-%d9%86%d9%85%d8%a7%db%8c%d8%b4-%d8%a8%d8%a7%d8%b2%d8%af%db%8c%d8%af-%d9%be%d8%b3%d8%aa-%d9%87%d8%a7%db%8c-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3%db%8c","status":"publish","type":"post","link":"https:\/\/www.xn--mgbguh09aqiwi.com\/%d8%aa%d8%b1%d9%81%d9%86%d8%af-%d9%86%d9%85%d8%a7%db%8c%d8%b4-%d8%a8%d8%a7%d8%b2%d8%af%db%8c%d8%af-%d9%be%d8%b3%d8%aa-%d9%87%d8%a7%db%8c-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3%db%8c.html","title":{"rendered":"\u062a\u0631\u0641\u0646\u062f \u0646\u0645\u0627\u06cc\u0634 \u0628\u0627\u0632\u062f\u06cc\u062f \u067e\u0633\u062a \u0647\u0627\u06cc \u0648\u0631\u062f\u067e\u0631\u0633\u06cc \u0628\u062f\u0648\u0646 \u0646\u0635\u0628 \u0627\u0641\u0632\u0648\u0646\u0647"},"content":{"rendered":"

\u0637\u0628\u06cc\u0639\u062a\u0627 \u0627\u0637\u0644\u0627\u0639 \u0627\u0632 \u0622\u0645\u0627\u0631 \u0628\u0627\u0632\u062f\u06cc\u062f \u0635\u0641\u062d\u0627\u062a \u062f\u0631 \u0648\u0628 \u0633\u0627\u06cc\u062a , \u06cc\u06a9\u06cc \u0627\u0632 \u0645\u0647\u0645\u062a\u0631\u06cc\u0646 \u06af\u0632\u06cc\u0646\u0647 \u0647\u0627\u06cc \u0647\u0631 \u0648\u0628\u0645\u0633\u062a\u0631\u06cc \u0645\u06cc\u0628\u0627\u0634\u062f . \u0627\u0645\u0627 \u0645\u0634\u06a9\u0644\u06cc \u06a9\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u0631\u0627\u0647 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f , \u0627\u062c\u0628\u0627\u0631 \u0628\u0647 \u0646\u0635\u0628 \u067e\u0644\u0627\u06af\u06cc\u0646 \u06cc\u0627 \u0647\u0645\u0627\u0646 \u0627\u0641\u0632\u0648\u0646\u0647 \u0647\u0627\u06cc \u0622\u0645\u0627\u0631\u06af\u06cc\u0631 \u0645\u06cc\u0628\u0627\u0634\u062f \u06a9\u0647 \u0628\u0647 \u062f\u0644\u06cc\u0644 \u0633\u0646\u06af\u06cc\u0646\u06cc \u06a9\u062f\u0646\u0648\u06cc\u0633\u06cc \u0622\u0646\u0647\u0627 , \u0633\u0631\u0639\u062a \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u0648\u0628 \u0633\u0627\u06cc\u062a \u0631\u0627 \u067e\u0627\u06cc\u06cc\u0646 \u0645\u06cc\u0627\u0648\u0631\u0646\u062f .<\/p>\n

\u062f\u0631 \u0627\u06cc\u0646 \u067e\u0633\u062a \u0627\u0632 \u0633\u0627\u06cc\u062a \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a \u062f\u0627\u062a \u06a9\u0627\u0645 \u0642\u0635\u062f \u0622\u0645\u0648\u0632\u0634 \u0646\u0645\u0627\u06cc\u0634 \u0628\u0627\u0632\u062f\u06cc\u062f \u0647\u0627\u06cc \u0635\u0641\u062d\u0627\u062a \u0648\u0631\u062f\u067e\u0631\u0633\u06cc \u0628\u062f\u0648\u0646 \u0646\u0635\u0628 \u0647\u06cc\u0686 \u06af\u0648\u0646\u0647 \u0627\u0641\u0632\u0648\u0646\u0647 \u0631\u0627 \u062f\u0627\u0631\u0645 .<\/p>\n

\u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0628\u0627 \u0645\u0627 \u0647\u0645\u0631\u0627\u0647 \u0628\u0627\u0634\u06cc\u062f …
\n<\/p>\n

\"\u062a\u0631\u0641\u0646\u062f<\/a><\/p>\n

\u062f\u0631 \u06af\u0627\u0645 \u0627\u0648\u0644 \u0628\u0627\u06cc\u062f \u06a9\u062f \u0647\u0627\u06cc \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0641\u0627\u06cc\u0644 functions.php \u0642\u0627\u0644\u0628 \u0648\u0631\u062f\u067e\u0631\u0633 \u062e\u0648\u062f \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f :<\/p>\n

function getPostViewsVms($postID){\r\n    $count_key = 'post_views_count';\r\n    $count = get_post_meta($postID, $count_key, true);\r\n    if($count==''){\r\n        delete_post_meta($postID, $count_key);\r\n        add_post_meta($postID, $count_key, '0');\r\n        return \"0 \u0628\u0627\u0632\u062f\u06cc\u062f\";\r\n    }\r\n    return $count.' \u0628\u0627\u0632\u062f\u06cc\u062f';\r\n}\r\nfunction setPostViewsVms($postID) {\r\n    $count_key = 'post_views_count';\r\n    $count = get_post_meta($postID, $count_key, true);\r\n    if($count==''){\r\n        $count = 0;\r\n        delete_post_meta($postID, $count_key);\r\n        add_post_meta($postID, $count_key, '0');\r\n    }else{\r\n        $count++;\r\n        update_post_meta($postID, $count_key, $count);\r\n    }\r\n}\r\nremove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0);<\/pre>\n

\u062d\u0627\u0644 \u06a9\u062f \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0641\u0627\u06cc\u0644 single.php \u0642\u0627\u0644\u0628 \u062e\u0648\u062f \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f ( \u0641\u0627\u06cc\u0644 single \u0647\u0645\u0627\u0646 \u0641\u0627\u06cc\u0644 \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0635\u0641\u062d\u0627\u062a \u0648 \u0646\u0648\u0634\u062a\u0647 \u0647\u0627\u06cc \u06cc\u06a9\u062a\u0627\u06cc \u0648\u0631\u062f\u067e\u0631\u0633 \u0645\u06cc\u0628\u0627\u0634\u062f ) .<\/p>\n

\u062a\u0648\u062c\u0647 :<\/span> \u0645\u06a9\u0627\u0646 \u0642\u0631\u0627\u0631 \u06af\u06cc\u0631\u06cc \u06a9\u062f \u062f\u0631 \u0641\u0627\u06cc\u0644 single.php \u0645\u0647\u0645 \u0646\u06cc\u0633\u062a .<\/p>\n

<?php setPostViewsVms(get_the_ID()); ?><\/pre>\n

\u0648 \u062f\u0631 \u0622\u062e\u0631 \u06a9\u062f \u0632\u06cc\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u0622\u0645\u0627\u0631 \u0628\u0627\u0632\u062f\u06cc\u062f \u0647\u0631 \u0635\u0641\u062d\u0647 \u0628\u0647 \u06a9\u0627\u0631 \u0645\u06cc\u0631\u0648\u062f \u06a9\u0647 \u0628\u0627\u0632 \u0647\u0645 \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u062f\u0631 \u0641\u0627\u06cc\u0644 single.php \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f .<\/p>\n

\u062a\u0648\u062c\u0647 :<\/span> \u0645\u06a9\u0627\u0646 \u0642\u0631\u0627\u0631 \u06af\u06cc\u0631\u06cc \u0627\u06cc\u0646 \u06a9\u062f \u0647\u0645 \u062f\u0631 \u0641\u0627\u06cc\u0644 single.php \u0645\u0647\u0645 \u0646\u06cc\u0633\u062a \u0648 \u0647\u0631 \u06a9\u062c\u0627\u06cc \u0622\u0646 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f , \u0622\u0645\u0627\u0631 \u062f\u0631 \u0647\u0645\u0627\u0646 \u062c\u0627 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0645\u06cc\u0634\u0648\u062f\u00a0) .<\/p>\n

<?php echo getPostViewsVms (get_the_ID()); ?><\/pre>\n

\u0636\u0645\u0646\u0627 \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u0622\u0645\u0627\u0631 \u062f\u0631 \u0642\u0633\u0645\u062a \u0645\u062f\u06cc\u0631\u06cc\u062a \u0648\u0631\u062f\u067e\u0631\u0633 \u0647\u0645 \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u06a9\u062f \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f ( \u0642\u0631\u0627\u0631 \u062f\u0627\u062f\u0647 \u0634\u0648\u062f \u062f\u0631 functions.php ) :<\/p>\n

\r\n<?php\r\nadd_filter('manage_posts_columns', 'posts_column_views');\r\nadd_action('manage_posts_custom_column', 'posts_custom_column_views',5,2);\r\nfunction posts_column_views($defaults){\r\n$defaults['post_views'] = __('view');\r\nreturn $defaults;\r\n}\r\nfunction posts_custom_column_views($column_name, $id){\r\nif($column_name === 'post_views'){\r\necho getPostViewsVms(get_the_ID());\r\n}\r\n}\r\n?><\/pre>\n

\u067e\u062e\u0634 \u0627\u062e\u062a\u0635\u0627\u0635\u06cc<\/p>\n

\u06af\u0631\u062f\u0627\u0648\u0631\u06cc \u0648 \u0622\u0645\u0648\u0632\u0634 : \u0648\u062d\u06cc\u062f \u0645\u062c\u06cc\u062f\u06cc<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"

\u0637\u0628\u06cc\u0639\u062a\u0627 \u0627\u0637\u0644\u0627\u0639 \u0627\u0632 \u0622\u0645\u0627\u0631 \u0628\u0627\u0632\u062f\u06cc\u062f \u0635\u0641\u062d\u0627\u062a \u062f\u0631 \u0648\u0628 \u0633\u0627\u06cc\u062a , \u06cc\u06a9\u06cc \u0627\u0632 \u0645\u0647\u0645\u062a\u0631\u06cc\u0646 \u06af\u0632\u06cc\u0646\u0647 \u0647\u0627\u06cc \u0647\u0631 \u0648\u0628\u0645\u0633\u062a\u0631\u06cc \u0645\u06cc\u0628\u0627\u0634\u062f . \u0627\u0645\u0627 \u0645\u0634\u06a9\u0644\u06cc \u06a9\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u0631\u0627\u0647 \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f , \u0627\u062c\u0628\u0627\u0631 \u0628\u0647 \u0646\u0635\u0628 \u067e\u0644\u0627\u06af\u06cc\u0646 \u06cc\u0627 \u0647\u0645\u0627\u0646 \u0627\u0641\u0632\u0648\u0646\u0647 \u0647\u0627\u06cc \u0622\u0645\u0627\u0631\u06af\u06cc\u0631 \u0645\u06cc\u0628\u0627\u0634\u062f \u06a9\u0647 \u0628\u0647 \u062f\u0644\u06cc\u0644 \u0633\u0646\u06af\u06cc\u0646\u06cc \u06a9\u062f\u0646\u0648\u06cc\u0633\u06cc \u0622\u0646\u0647\u0627 , \u0633\u0631\u0639\u062a \u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc \u0648\u0628 \u0633\u0627\u06cc\u062a \u0631\u0627 \u067e\u0627\u06cc\u06cc\u0646 \u0645\u06cc\u0627\u0648\u0631\u0646\u062f . \u062f\u0631 \u0627\u06cc\u0646 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[258],"tags":[22333,22334,22331,22329,22332,22330],"_links":{"self":[{"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/posts\/21116"}],"collection":[{"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/comments?post=21116"}],"version-history":[{"count":0,"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/posts\/21116\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/media?parent=21116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/categories?post=21116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xn--mgbguh09aqiwi.com\/wp-json\/wp\/v2\/tags?post=21116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}