Yazılarınızı En Çok Okunanlara Göre Listeleyin

Yazılarınızı En Çok Okunanlara Göre Listeleyin

SEO için gözden kaçsa da aslında çok işe yarayan bir yöntemdir. Çok hit gören yazıların anasayda da ilk sıralarda olması Google tarafından tekrar indexlenerek o kelimelerdeki ilk sıralara gelmenize sebep olur. Bir çok SEO firması da bunu kullanmaktadır. Biz de bunun nasıl yapıldığını sizlere aktarıyoruz. Çok da basit bir yöntemdir. Yapmanız gereken aşağıdaki yöntemleri uygulamaktır.

Gerekli Kodlar:

[php]
<div class="line number1 index0 alt2"><code class="php plain">&lt;div </code><code class="php keyword">class</code><code class="php plain">=</code><code class="php string">"line number1 index0 alt2"</code><code class="php plain">&gt;&lt;code </code><code class="php keyword">class</code><code class="php plain">=</code><code class="php string">"php plain"</code><code class="php plain">&gt;&lt;?php &lt;/code&gt;&lt;code </code><code class="php keyword">class</code><code class="php plain">=</code><code class="php string">"php variable"</code><code class="php plain">&gt;</code><code class="php variable">$kadirdurukan</code><code class="php plain">&lt;/code&gt; &lt;code </code><code class="php keyword">class</code><code class="php plain">=</code><code class="php string">"php plain"</code><code class="php plain">&gt;= &lt;/code&gt;&lt;code </code><code class="php keyword">class</code><code class="php plain">=</code><code class="php string">"php keyword"</code><code class="php plain">&gt;</code><code class="php keyword">new</code><code class="php plain">&lt;/code&gt; &lt;code </code><code class="php keyword">class</code><code class="php plain">=</code><code class="php string">"php plain"</code><code class="php plain">&gt;WP_Query(&lt;/code&gt;&lt;code </code><code class="php keyword">class</code><code class="php plain">=</code><code class="php string">"php string"</code><code class="php plain">&gt;</code><code class="php string">"showposts=5&amp;orderby=comment_count"</code><code class="php plain">&lt;/code&gt;&lt;code </code><code class="php keyword">class</code><code class="php plain">=</code><code class="php string">"php plain"</code><code class="php plain">&gt;); &lt;/code&gt;&lt;code </code><code class="php keyword">class</code><code class="php plain">=</code><code class="php string">"php keyword"</code><code class="php plain">&gt;</code><code class="php keyword">while</code><code class="php plain">&lt;/code&gt;&lt;code </code><code class="php keyword">class</code><code class="php plain">=</code><code class="php string">"php plain"</code><code class="php plain">&gt;(&lt;/code&gt;&lt;code </code><code class="php keyword">class</code><code class="php plain">=</code><code class="php string">"php variable"</code><code class="php plain">&gt;</code><code class="php variable">$khaaos</code><code class="php plain">&lt;/code&gt;&lt;code </code><code class="php keyword">class</code><code class="php plain">=</code><code class="php string">"php plain"</code><code class="php plain">&gt;-&gt;have_posts()) : </code><code class="php variable">$kadirdurukan</code><code class="php plain">&lt;/code&gt;&lt;code </code><code class="php keyword">class</code><code class="php plain">=</code><code class="php string">"php plain"</code><code class="php plain">&gt;-&gt;the_post();?&gt;&lt;/code&gt;&lt;/div&gt;</code></div>
<div class="line number2 index1 alt1"><code class="php plain">&lt;div </code><code class="php keyword">class</code><code class="php plain">=</code><code class="php string">"line number2 index1 alt1"</code><code class="php plain">&gt;&lt;code </code><code class="php keyword">class</code><code class="php plain">=</code><code class="php string">"php plain"</code><code class="php plain">&gt;&lt;?php &lt;/code&gt;&lt;code </code><code class="php keyword">class</code><code class="php plain">=</code><code class="php string">"php keyword"</code><code class="php plain">&gt;</code><code class="php keyword">endwhile</code><code class="php plain">&lt;/code&gt;&lt;code </code><code class="php keyword">class</code><code class="php plain">=</code><code class="php string">"php plain"</code><code class="php plain">&gt;; ?&gt;&lt;/code&gt;&lt;/div&gt;</code></div>
[/php]

Verdiğimiz kodlarla Showpost ile 5 isterseniz daha fazla sayıda yazı gösterebilirsiniz. En çok okunandan aza doğru sıralama yapar. Ayrıca yukarıdaki verilen kodla çıkacak olan yazıların özeti, görseleri, başlıkları ve linkleri gibi özelikleri ise aşağıdaki kodla atıyoruz.

Gerekli Kodlar:

[php]&lt;div class="line number1 index0 alt2"&gt;&lt;code class="php plain"&gt;&lt;ul&gt;&lt;?php $kadirdurukan&lt;/code&gt; &lt;code class="php plain"&gt;= &lt;/code&gt;&lt;code class="php keyword"&gt;new&lt;/code&gt; &lt;code class="php plain"&gt;WP_Query(&lt;/code&gt;&lt;code class="php string"&gt;"showposts=5&amp;orderby=comment_count"&lt;/code&gt;&lt;code class="php plain"&gt;); &lt;/code&gt;&lt;code class="php keyword"&gt;while&lt;/code&gt;&lt;code class="php plain"&gt;($kadirdurukan&lt;/code&gt;&lt;code class="php plain"&gt;-&gt;have_posts()) : $kadirdurukan&lt;/code&gt;&lt;code class="php plain"&gt;-&gt;the_post();?&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number2 index1 alt1"&gt;&lt;/div&gt;
&lt;div class="line number3 index2 alt2"&gt;&lt;code class="php plain"&gt;&lt;li&gt;&lt;a href=&lt;/code&gt;&lt;code class="php string"&gt;"&lt;?php the_permalink() ?&gt;"&lt;/code&gt; &lt;code class="php plain"&gt;rel=&lt;/code&gt;&lt;code class="php string"&gt;"bookmark"&lt;/code&gt; &lt;code class="php plain"&gt;title=&lt;/code&gt;&lt;code class="php string"&gt;"&lt;?php the_title_attribute(); ?&gt;"&lt;/code&gt;&lt;code class="php plain"&gt;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number4 index3 alt1"&gt;&lt;/div&gt;
&lt;div class="line number5 index4 alt2"&gt;&lt;code class="php plain"&gt;&lt;?php &lt;/code&gt;&lt;code class="php keyword"&gt;endwhile&lt;/code&gt;&lt;code class="php plain"&gt;; ?&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div class="line number6 index5 alt1"&gt;&lt;code class="php plain"&gt;&lt;/ul&gt;&lt;/code&gt;&lt;/div&gt;

[/php]

 

İyi Blog’lamalar.

Son Yazılar
Bir cevap bırakın
Malazgirt Meydan Muharebesi kaç yılında yapıldı ?