{"id":751,"date":"2018-04-07T16:47:36","date_gmt":"2018-04-07T12:17:36","guid":{"rendered":"https:\/\/mahanserver.net\/blog\/?p=751"},"modified":"2024-05-28T00:28:34","modified_gmt":"2024-05-27T19:58:34","slug":"%d9%86%d9%85%d8%a7%db%8c%d8%b4-%d8%aa%d8%b9%d8%af%d8%a7%d8%af-%d8%a8%d8%a7%d8%b2%d8%af%db%8c%d8%af-%d9%85%d8%b7%d8%a7%d9%84%d8%a8-%d8%af%d8%b1-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3","status":"publish","type":"post","link":"https:\/\/mahanserver.net\/blog\/%d9%86%d9%85%d8%a7%db%8c%d8%b4-%d8%aa%d8%b9%d8%af%d8%a7%d8%af-%d8%a8%d8%a7%d8%b2%d8%af%db%8c%d8%af-%d9%85%d8%b7%d8%a7%d9%84%d8%a8-%d8%af%d8%b1-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3\/","title":{"rendered":"\u0646\u0645\u0627\u06cc\u0634 \u062a\u0639\u062f\u0627\u062f \u0628\u0627\u0632\u062f\u06cc\u062f \u0645\u0637\u0627\u0644\u0628 \u062f\u0631 \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u062f\u0646\u0648\u06cc\u0633\u06cc"},"content":{"rendered":"<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u0646\u0645\u0627\u06cc\u0634 \u062a\u0639\u062f\u0627\u062f \u0628\u0627\u0632\u062f\u06cc\u062f \u0645\u0637\u0627\u0644\u0628 \u062f\u0631 <a href=\"https:\/\/mahanserver.net\/blog\/%d9%84%d8%a7%db%8c%da%a9-%d9%88-%d8%af%db%8c%d8%b3%d9%84%d8%a7%db%8c%da%a9-%d9%86%d8%b8%d8%b1%d8%a7%d8%aa-%d9%88%d8%b1%d8%af%d9%be%d8%b1%d8%b3\/\" target=\"_blank\" rel=\"noopener\">\u0648\u0631\u062f\u067e\u0631\u0633<\/a> \u0645\u0648\u0631\u062f\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0628\u0633\u06cc\u0627\u0631\u06cc \u0627\u0632 \u0645\u062f\u06cc\u0631\u0627\u0646 \u0648 \u0648\u0628\u200c\u0645\u0633\u062a\u0631\u200c\u0647\u0627 \u0628\u0647 \u062f\u0646\u0628\u0627\u0644\u200c\u0627\u0634 \u0647\u0633\u062a\u0646\u062f. \u0628\u0627 \u0648\u062c\u0648\u062f \u0622\u0646 \u06a9\u0647 \u0627\u06cc\u0646 \u0642\u0627\u0628\u0644\u06cc\u062a \u0631\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0627\u0641\u0632\u0648\u0646\u0647 \u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u060c \u0627\u0645\u0627 \u0628\u062f\u0648\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u0641\u0632\u0648\u0646\u0647 \u0648 \u0635\u0631\u0641\u0627\u064b \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u062f\u0646\u0648\u06cc\u0633\u06cc \u0646\u06cc\u0632 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u0627\u0632 \u0646\u0645\u0627\u06cc\u0634 \u062a\u0639\u062f\u0627\u062f \u0628\u0627\u0632\u062f\u06cc\u062f \u0645\u0637\u0627\u0644\u0628 \u062f\u0631 \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0647\u0631\u0647\u200c\u0645\u0646\u062f \u0634\u062f. \u0645\u0646 \u062f\u0631 \u0627\u06cc\u0646 \u0646\u0648\u0634\u062a\u0627\u0631 \u0628\u0647\u200c\u0627\u062e\u062a\u0635\u0627\u0631 \u0628\u0647 \u0646\u062d\u0648\u0647\u200c\u06cc \u0641\u0631\u0627\u0647\u0645 \u0622\u0648\u0631\u062f\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0646\u0645\u0627\u06cc\u0634 \u062a\u0639\u062f\u0627\u062f \u0628\u0627\u0632\u062f\u06cc\u062f \u0645\u0637\u0627\u0644\u0628 \u062f\u0631 \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u062f\u0646\u0648\u06cc\u0633\u06cc \u0645\u06cc\u200c\u067e\u0631\u062f\u0627\u0632\u0645\u060c \u0628\u0627 \u0627\u06cc\u0646 \u0627\u0645\u06cc\u062f \u06a9\u0647 \u0645\u0641\u06cc\u062f \u0648\u0627\u0642\u0639 \u0634\u0648\u062f.<\/span><\/p>\n<h2 style=\"text-align: justify;\"><span style=\"color: #000000;\">\u0646\u0645\u0627\u06cc\u0634 \u062a\u0639\u062f\u0627\u062f \u0628\u0627\u0632\u062f\u06cc\u062f \u0645\u0637\u0627\u0644\u0628 \u062f\u0631 \u0648\u0631\u062f\u067e\u0631\u0633<\/span><\/h2>\n<h3 style=\"text-align: justify;\"><span style=\"color: #000000;\">1- \u0645\u0631\u062d\u0644\u0647\u200c\u06cc \u0627\u0648\u0644:<\/span><\/h3>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u062f\u0631 \u0645\u0631\u062d\u0644\u0647\u200c\u06cc \u0627\u0648\u0644 \u0628\u0627\u06cc\u0633\u062a\u06cc \u0628\u0647 \u0642\u0627\u0644\u0628 \u0648\u0631\u062f\u067e\u0631\u0633 \u0645\u0631\u0627\u062c\u0639\u0647 \u0646\u0645\u0648\u062f\u0647 \u0648 \u06a9\u062f \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0641\u0627\u06cc\u0644 Functions.php \u06a9\u067e\u06cc \u06a9\u0631\u062f\u0647 \u0648 \u0630\u062e\u06cc\u0631\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f. \u0641\u0631\u0627\u0645\u0648\u0634 \u0646\u06a9\u0646\u06cc\u062f \u06a9\u0647 \u067e\u06cc\u0634 \u0627\u0632 \u06a9\u067e\u06cc \u06a9\u0631\u062f\u0646 \u0627\u06cc\u0646 \u06a9\u062f \u062f\u0631 \u0641\u0627\u06cc\u0644 Functions.php \u0628\u0627\u06cc\u0633\u062a\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u06cc\u06a9 \u0628\u06a9\u200c\u0622\u067e \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u062a\u0627 \u062f\u0631 \u0635\u0648\u0631\u062a \u0628\u0631\u0648\u0632 \u0647\u0631\u06af\u0648\u0646\u0647 \u062e\u0637\u0627 \u0645\u0634\u06a9\u0644\u06cc \u062f\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0641\u0627\u06cc\u0644 \u067e\u06cc\u0634\u06cc\u0646 \u0646\u0628\u0627\u0634\u062f.<\/span><\/p>\n<pre class=\"lang:default decode:true \">\/\/ function to display number of posts. function getPostViews($postID){ $count_key = 'views'; $count = get_post_meta($postID, $count_key, true); if($count==''){ delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, '\u06f0'); return \"\u06f0 \u0646\u0645\u0627\u06cc\u0634\"; } return $count.'\u0646\u0645\u0627\u06cc\u0634'; } \/\/ function to count views. function setPostViews($postID) { $count_key = 'views'; $count = get_post_meta($postID, $count_key, true); if($count==''){ $count = \u06f0; delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, '\u06f0'); }else{ $count++; update_post_meta($postID, $count_key, $count); } } \/\/ Add it to a column in WP-Admin add_filter('manage_posts_columns', 'posts_column_views'); add_action('manage_posts_custom_column', 'posts_custom_column_views',\u06f5,\u06f2); function posts_column_views($defaults){ $defaults['post_views'] = __('Views'); return $defaults; } function posts_custom_column_views($column_name, $id){ if($column_name === 'post_views'){ echo getPostViews(get_the_ID()); } } ?&gt;<\/pre>\n<p>&nbsp;<\/p>\n<h3 style=\"text-align: justify;\"><span style=\"color: #000000;\">2- \u0645\u0631\u062d\u0644\u0647\u200c\u06cc \u062f\u0648\u0645:<\/span><\/h3>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u062f\u0631 \u0645\u0631\u062d\u0644\u0647\u200c\u06cc \u062f\u0648\u0645 \u0628\u0627\u06cc\u0633\u062a\u06cc \u06a9\u062f \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0641\u0627\u06cc\u0644 Single.php \u06a9\u067e\u06cc \u06a9\u0631\u062f\u0647 \u0648 \u0630\u062e\u06cc\u0631\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f. \u0628\u0647\u062a\u0631 \u0627\u0633\u062a \u067e\u06cc\u0634 \u0627\u0632 \u06a9\u067e\u06cc \u06a9\u062f \u062f\u0631 \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0646\u06cc\u0632\u060c \u06cc\u06a9 \u0628\u06a9\u200c\u0622\u067e \u0627\u0632 \u0622\u0646 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f. \u0646\u06a9\u062a\u0647\u200c\u0627\u06cc \u06a9\u0647 \u0628\u0627\u06cc\u0633\u062a\u06cc \u0628\u0647 \u0622\u0646 \u062a\u0648\u062c\u0647 \u06a9\u0646\u06cc\u062f \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0628\u0647 \u0647\u0646\u06af\u0627\u0645 \u06a9\u067e\u06cc \u06a9\u0631\u062f\u0646 \u06a9\u062f \u062f\u0631 \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0628\u0627\u06cc\u062f \u06a9\u062f \u0631\u0627 \u062f\u0631 \u0645\u06a9\u0627\u0646\u06cc \u06a9\u0647 \u062f\u0648\u0633\u062a \u062f\u0627\u0631\u06cc\u062f \u062a\u0639\u062f\u0627\u062f \u0628\u0627\u0632\u062f\u06cc\u062f\u0647\u0627 \u062f\u0631 \u0622\u0646\u200c\u062c\u0627 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647 \u0634\u0648\u0646\u062f \u06a9\u067e\u06cc \u06a9\u0646\u06cc\u062f.<\/span><\/p>\n<pre class=\"lang:default decode:true \">&lt;?php setPostViews(get_the_ID()); ?&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">*****<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u0633\u062e\u0646 \u0622\u062e\u0631<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: #000000;\">\u0628\u0627 \u0627\u0646\u062c\u0627\u0645 \u0627\u06cc\u0646 \u062f\u0648 \u0645\u0631\u062d\u0644\u0647\u060c \u062a\u0639\u062f\u0627\u062f \u0628\u0627\u0632\u062f\u06cc\u062f\u0647\u0627 \u0628\u0631\u0627\u06cc \u0647\u0631 \u0645\u0637\u0644\u0628 \u062f\u0631 \u0647\u0645\u0627\u0646 \u0645\u0637\u0644\u0628 \u0628\u0647 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0631\u0645\u06cc\u200c\u0622\u06cc\u0646\u062f. \u0627\u0645\u0627 \u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u062a\u0639\u062f\u0627\u062f \u0628\u0627\u0632\u062f\u06cc\u062f\u0647\u0627 \u0639\u0644\u0627\u0648\u0647 \u0628\u0631 \u062e\u0648\u062f\u0650 \u0645\u0637\u0627\u0644\u0628 \u062f\u0631 \u0633\u0627\u06cc\u0631 \u0645\u06a9\u0627\u0646\u200c\u0647\u0627\u06cc \u0633\u0627\u06cc\u062a\u060c \u0627\u0632 \u062c\u0645\u0644\u0647 \u062f\u0633\u062a\u0647\u200c\u0628\u0646\u062f\u06cc \u0648 \u0646\u062a\u0627\u06cc\u062c \u062c\u0633\u062a\u062c\u0648\u060c \u0646\u06cc\u0632 \u0628\u0647 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0631\u0622\u06cc\u0646\u062f \u0628\u0627\u06cc\u0633\u062a\u06cc \u06a9\u062f \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0631 \u0647\u0631 \u0642\u0633\u0645\u062a \u06a9\u0647 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0628\u0647 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0631\u0622\u06cc\u062f \u06a9\u067e\u06cc \u06a9\u0646\u06cc\u062f:<\/span><\/p>\n<pre class=\"lang:default decode:true \">&lt;?php echo getPostViews(get_the_ID()); ?&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">\n","protected":false},"excerpt":{"rendered":"<p>\u0645\u0646 \u062f\u0631 \u0627\u06cc\u0646 \u0646\u0648\u0634\u062a\u0627\u0631 \u0628\u0647\u200c\u0627\u062e\u062a\u0635\u0627\u0631 \u0628\u0647 \u0646\u062d\u0648\u0647\u200c\u06cc \u0641\u0631\u0627\u0647\u0645 \u0622\u0648\u0631\u062f\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0646\u0645\u0627\u06cc\u0634 \u062a\u0639\u062f\u0627\u062f \u0628\u0627\u0632\u062f\u06cc\u062f \u0645\u0637\u0627\u0644\u0628 \u062f\u0631 \u0648\u0631\u062f\u067e\u0631\u0633 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u062f\u0646\u0648\u06cc\u0633\u06cc \u0645\u06cc\u200c\u067e\u0631\u062f\u0627\u0632\u0645\u060c \u0628\u0627 \u0627\u06cc\u0646 \u0627\u0645\u06cc\u062f \u06a9\u0647 \u0645\u0641\u06cc\u062f \u0648\u0627\u0642\u0639 \u0634\u0648\u062f.<\/p>\n","protected":false},"author":10,"featured_media":759,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[],"class_list":["post-751","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/mahanserver.net\/blog\/wp-json\/wp\/v2\/posts\/751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mahanserver.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mahanserver.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mahanserver.net\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/mahanserver.net\/blog\/wp-json\/wp\/v2\/comments?post=751"}],"version-history":[{"count":4,"href":"https:\/\/mahanserver.net\/blog\/wp-json\/wp\/v2\/posts\/751\/revisions"}],"predecessor-version":[{"id":4757,"href":"https:\/\/mahanserver.net\/blog\/wp-json\/wp\/v2\/posts\/751\/revisions\/4757"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mahanserver.net\/blog\/wp-json\/wp\/v2\/media\/759"}],"wp:attachment":[{"href":"https:\/\/mahanserver.net\/blog\/wp-json\/wp\/v2\/media?parent=751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mahanserver.net\/blog\/wp-json\/wp\/v2\/categories?post=751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mahanserver.net\/blog\/wp-json\/wp\/v2\/tags?post=751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}