{"id":22081,"date":"2021-12-18T19:00:44","date_gmt":"2021-12-18T15:30:44","guid":{"rendered":"https:\/\/www.themento.net\/fa\/?p=22081"},"modified":"2021-12-18T15:37:12","modified_gmt":"2021-12-18T12:07:12","slug":"learn-how-to-display-popular-content-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.themento.net\/fa\/22081\/learn-how-to-display-popular-content-in-wordpress\/","title":{"rendered":"\u0622\u0645\u0648\u0632\u0634 \u0646\u0645\u0627\u06cc\u0634 \u0645\u0637\u0627\u0644\u0628 \u067e\u0631\u0628\u0627\u0632\u062f\u06cc\u062f \u062f\u0631 \u0648\u0631\u062f\u067e\u0631\u0633"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"22081\" class=\"elementor elementor-22081\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1a4501f elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1a4501f\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-eb742f8\" data-id=\"eb742f8\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9f5799b elementor-widget elementor-widget-heading\" data-id=\"9f5799b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u0646\u0645\u0627\u06cc\u0634 \u0645\u0637\u0627\u0644\u0628 \u067e\u0631\u0628\u0627\u0632\u062f\u06cc\u062f \u0628\u062f\u0648\u0646 \u0627\u0641\u0632\u0648\u0646\u0647<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d11d62a elementor-widget elementor-widget-text-editor\" data-id=\"d11d62a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>\u062a\u0648\u06cc \u0622\u0645\u0648\u0632\u0634 \u0642\u0628\u0644 \u0645\u0627 \u0628\u062f\u0648\u0646 \u0627\u0641\u0632\u0648\u0646\u0647 \u062a\u0639\u062f\u0627\u062f \u0628\u0627\u0632\u062f\u06cc\u062f \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u06cc\u0645 \u0648 \u0645\u06cc\u062e\u0648\u0627\u06cc\u0645 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0647\u0645\u0648\u0646 \u0622\u0645\u0648\u0632\u0634 \u0642\u0628\u0644 \u0628\u0648\u0633\u06cc\u0644\u0647 \u0647\u0645\u0648\u0646 \u06a9\u062f \u0647\u0627 \u062d\u0644\u0642\u0647 \u0645\u0637\u0627\u0644\u0628 \u067e\u0631\u0628\u0627\u0632\u062f\u06cc\u062f \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u0628\u062f\u06cc\u0645.<\/p><p>\u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0627\u0631 \u0628\u0627\u06cc\u062f \u06a9\u062f \u0647\u0627\u06cc &#8220;\u0622\u0645\u0648\u0632\u0634 \u0646\u0645\u0627\u06cc\u0634 \u062a\u0639\u062f\u0627\u062f \u0628\u0627\u0632\u062f\u06cc\u062f \u0645\u0637\u0627\u0644\u0628 \u0648\u0631\u062f\u067e\u0631\u0633&#8221; \u062d\u062a\u0645\u0627 \u062f\u0631 \u0642\u0627\u0644\u0628 \u0641\u0639\u0627\u0644 \u0628\u0627\u0634\u0647 \u0648 \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u067e\u0631\u0628\u0627\u0632\u062f\u06cc\u062f \u062a\u0631\u06cc\u0646 \u0645\u0642\u0627\u0644\u0627\u062a \u0634\u0645\u0627 \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u062d\u0644\u0642\u0647 \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6059dbf elementor-widget elementor-widget-bdt-source-code\" data-id=\"6059dbf\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"bdt-source-code.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\n\n        <div class=\"bdt-source-code prism-okaidia\">\n\n\t\t\t                <button class=\"bdt-copy-button\">Copy<\/button>\n\t\t\t<pre class=\"language-php\"><code>&lt;?php\n    $paged = (get_query_var(&#039;paged&#039;)) ? get_query_var(&#039;paged&#039;) : 1;\n    $args = array(\n        &#039;posts_per_page&#039; =&gt; 6,\n        &#039;post_type&#039; =&gt; &#039;post&#039;,\n        &#039;post_status&#039; =&gt; &#039;publish&#039;,\n        &#039;paged&#039;=&gt; $paged,\n        &#039;meta_key&#039;=&gt; &#039;post_views_count&#039;,\n        &#039;orderby&#039;=&gt; &#039;meta_value_num&#039;,\n    );\n    $query = new WP_Query($args);\n    if ( $query-&gt;have_posts() ):while ( $query-&gt;have_posts() ):$query-&gt;the_post();\n        the_title();\n    endwhile;endif;wp_reset_postdata();\n?&gt;<\/code><\/pre><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u0646\u0645\u0627\u06cc\u0634 \u0645\u0637\u0627\u0644\u0628 \u067e\u0631\u0628\u0627\u0632\u062f\u06cc\u062f \u0628\u062f\u0648\u0646 \u0627\u0641\u0632\u0648\u0646\u0647 \u062a\u0648\u06cc \u0622\u0645\u0648\u0632\u0634 \u0642\u0628\u0644 \u0645\u0627 \u0628\u062f\u0648\u0646 \u0627\u0641\u0632\u0648\u0646\u0647 \u062a\u0639\u062f\u0627\u062f \u0628\u0627\u0632\u062f\u06cc\u062f \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u06cc\u0645 \u0648 \u0645\u06cc\u062e\u0648\u0627\u06cc\u0645 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0647\u0645\u0648\u0646 \u0622\u0645\u0648\u0632\u0634 \u0642\u0628\u0644 \u0628\u0648\u0633\u06cc\u0644\u0647 \u0647\u0645\u0648\u0646 \u06a9\u062f \u0647\u0627 \u062d\u0644\u0642\u0647 \u0645\u0637\u0627\u0644\u0628 \u067e\u0631\u0628\u0627\u0632\u062f\u06cc\u062f \u0631\u0627 \u0646\u0645\u0627\u06cc\u0634 \u0628\u062f\u06cc\u0645. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646\u06a9\u0627\u0631 \u0628\u0627\u06cc\u062f \u06a9\u062f \u0647\u0627\u06cc &#8220;\u0622\u0645\u0648\u0632\u0634 \u0646\u0645\u0627\u06cc\u0634 \u062a\u0639\u062f\u0627\u062f \u0628\u0627\u0632\u062f\u06cc\u062f \u0645\u0637\u0627\u0644\u0628 \u0648\u0631\u062f\u067e\u0631\u0633&#8221; \u062d\u062a\u0645\u0627 \u062f\u0631 \u0642\u0627\u0644\u0628 \u0641\u0639\u0627\u0644 \u0628\u0627\u0634\u0647 \u0648 \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u067e\u0631\u0628\u0627\u0632\u062f\u06cc\u062f \u062a\u0631\u06cc\u0646 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":22225,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[59,57,65],"tags":[],"class_list":["post-22081","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-codes","category-wordpress-tutorials","category-social-networks"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.themento.net\/fa\/wp-json\/wp\/v2\/posts\/22081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.themento.net\/fa\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.themento.net\/fa\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.themento.net\/fa\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.themento.net\/fa\/wp-json\/wp\/v2\/comments?post=22081"}],"version-history":[{"count":12,"href":"https:\/\/www.themento.net\/fa\/wp-json\/wp\/v2\/posts\/22081\/revisions"}],"predecessor-version":[{"id":22226,"href":"https:\/\/www.themento.net\/fa\/wp-json\/wp\/v2\/posts\/22081\/revisions\/22226"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.themento.net\/fa\/wp-json\/wp\/v2\/media\/22225"}],"wp:attachment":[{"href":"https:\/\/www.themento.net\/fa\/wp-json\/wp\/v2\/media?parent=22081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.themento.net\/fa\/wp-json\/wp\/v2\/categories?post=22081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.themento.net\/fa\/wp-json\/wp\/v2\/tags?post=22081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}