Change Number of Posts appearing when clicking on Label


Lihat dan hitung, seberapa banyak aplikasi Android yang Anda instal di smartphone Anda? 

Pernahkah terbersit di benak Anda bagaimana cara membuat aplikasi-aplikasi tersebut?

Apakah Anda Saat Ini Ingin Sekali Bisa Bikin Aplikasi Android Sendiri? Seperti aplikasi game edukasi, media pembelajaran, aplikasi berbasis sensor, aplikasi multimedia, dan lain sebagainya?

Tetapi

1. Tidak Ngerti Coding
2. Tidak Tahu Computer Programming
3. Tidak Paham Bahasa Pemrograman Android
4. Dan Sama Sekali Bukan Lulusan IT?

Jangan Khawatir ...
Ternyata, bikin aplikasi Android itu SANGAT MUDAH, bahkan bagi Pemula sekalipun.

Sekarang Anda bisa bikin aplikasi Android dengan Cepat, bahkan TANPA HARUS CODING.

Tak peduli apapun latar belakang Anda, bikin aplikasi Android itu MUDAH, semudah bermain Puzzle.

Anda Hanya Perlu 4 Langkah berikut ini :

1. Drag & drop komponen-komponen yang dibutuhkan
2. Percantik tampilan aplikasi dengan mengatur layout dan desain tampilan
3. Susun blok-blok kode programnya, dan
4. Build aplikasi Anda jadi file instalasi *.APK

Lantas, Bagimana Cara Memulainya?
Mudah kok, karena sudah hadir untuk Anda Di Sini :


Video tutorial yang membahas cara membuat aplikasi Android dengan sangat MUDAH, CEPAT, & TANPA CODING menggunakan tools App Inventor 2. 
Categories
Labels are such an important item using in every blog.Some blogs have large number of posts under several categories.These labels are displaying in the blog post by default.You can hide label tag on your blog posts.But you will not hide them from your blog post or hide label widget on your blog.Label tag is one of linking methods.You can increase your blog's page views by adding label tag in appropriate positions.You might read "How to set number of posts in FEED easily" post in this blog.You'll find out how you can change the number of posts appearing in feed content.I used that trick on blogger label widget and got amazing result.If one label of your blog include large number of posts,you can set the maximum number posts to be displayed  when clicking on the label link.It is very helpful for many readers in the globe.They can view posts under labels without spending more time.When you minimize the number of posts,the time to spend for loading the label result page will be minimum.For example click on below link which is linked to Posts under "Widgets" label.It will open in a new tab and show only 8 posts.


Here in this tutorial you will learn how to set the amount of posts must be appeared when clicking on label tab link( In blog posts,mostly below of post ) or label link of Label gadget.

How to set the number of Posts which appear when clicking on Label links


Step 1: Sign in to your Blogger account.
Step 2: Now go to Blogger Dashboard >> Template and download your template first.It is important to re-install your current template,if you got anything wrong.
Step 3: Click on 'Edit HTML' button and  find below code on your template.

<b:loop values='data:post.labels' var='label'>
You will find piece of code slightly similar to the one below.

<b:loop values='data:post.labels' var='label'>
                                            <a expr:href='data:label.url' rel='tag'>
                                              <data:label.name/>
                                            </a>
                                            <b:if cond='data:label.isLast != &quot;true&quot;'>
                                              ,
                                            </b:if>
                                          </b:loop>
Step 4: Now replace above code with below code.

<b:loop values='data:post.labels' var='label'>
                                            <a expr:href='data:label.url + "?max-results=8"' rel='tag'>
                                              <data:label.name/>
                                            </a>
                                            <b:if cond='data:label.isLast != &quot;true&quot;'>
                                              ,
                                            </b:if>
                                          </b:loop>

Change 8 with your desired number of posts which you want to open when anyone click on label links.

Note:- If you don't use Label widget on your blog, you're all done.But if you use label widget on your blog,you have to set its settings too.So then continue next steps,if you have added Label widget on your blog.

Step 5: Search below code on your template in order to find code of label widget.
type='Label'
Also you can find your blog's Label widget code by clicking on "Jump to Widget" drop down button and select on your blog's Label widget id.
After finding above code using any method,click on sideway arrow to expand the widget code.You'll see chunk of code slightly similar to one give below.

<b:widget id='Label1' locked='false' title='Labels' type='Label'>            <b:includable id='main'>
  <b:if cond='data:title'>
    <h2><data:title/></h2>
  </b:if>
  <div expr:class='&quot;widget-content &quot; + data:display + &quot;-label-widget-content&quot;'>
    <b:if cond='data:display == &quot;list&quot;'>
      <ul>
      <b:loop values='data:labels' var='label'>
        <li>
          <b:if cond='data:blog.url == data:label.url'>
            <span expr:dir='data:blog.languageDirection'><data:label.name/></span>
          <b:else/>
            <a expr:dir='data:blog.languageDirection' expr:href='data:label.url'><data:label.name/></a>
          </b:if>
          <b:if cond='data:showFreqNumbers'>
            <span dir='ltr'>(<data:label.count/>)</span>
          </b:if>
        </li>
      </b:loop>
      </ul>
    <b:else/>
      <b:loop values='data:labels' var='label'>
        <span expr:class='&quot;label-size label-size-&quot; + data:label.cssSize'>
          <b:if cond='data:blog.url == data:label.url'>
            <span expr:dir='data:blog.languageDirection'><data:label.name/></span>
          <b:else/>
            <a expr:dir='data:blog.languageDirection' expr:href='data:label.url'><data:label.name/></a>
          </b:if>
          <b:if cond='data:showFreqNumbers'>
            <span class='label-count' dir='ltr'>(<data:label.count/>)</span>
          </b:if>
        </span>
      </b:loop>
    </b:if>
    <b:include name='quickedit'/>
  </div>
</b:includable>
          </b:widget>

Step 6: Replace above code with below code.

<b:widget id='Label1' locked='false' title='Labels' type='Label'>
            <b:includable id='main'>
  <b:if cond='data:title'>
    <h2><data:title/></h2>
  </b:if>
  <div expr:class='&quot;widget-content &quot; + data:display + &quot;-label-widget-content&quot;'>
    <b:if cond='data:display == &quot;list&quot;'>
      <ul>
      <b:loop values='data:labels' var='label'>
        <li>
          <b:if cond='data:blog.url == data:label.url'>
            <span expr:dir='data:blog.languageDirection'><data:label.name/></span>
          <b:else/>
            <a expr:dir='data:blog.languageDirection' expr:href='data:label.url+ "?max-results=8"'><data:label.name/></a>
          </b:if>
          <b:if cond='data:showFreqNumbers'>
            <span dir='ltr'>(<data:label.count/>)</span>
          </b:if>
        </li>
      </b:loop>
      </ul>
    <b:else/>
      <b:loop values='data:labels' var='label'>
        <span expr:class='&quot;label-size label-size-&quot; + data:label.cssSize'>
          <b:if cond='data:blog.url == data:label.url'>
            <span expr:dir='data:blog.languageDirection'><data:label.name/></span>
          <b:else/>
            <a expr:dir='data:blog.languageDirection' expr:href='data:label.url'><data:label.name/></a>
          </b:if>
          <b:if cond='data:showFreqNumbers'>
            <span class='label-count' dir='ltr'>(<data:label.count/>)</span>
          </b:if>
        </span>
      </b:loop>
    </b:if>
    <b:include name='quickedit'/>
  </div>
</b:includable>
          </b:widget> 

In my case the ID of Label widget is the Label1. So you have to replace your label widget id with blue color text.In most of times these Ids are equal to each templates.

Step 7: Now Save your Template.

You're done.
Have any question? So don't hesitate,ask your questions below commenting.
Do you like this tutorial?Want to get more tutorial in to your mailbox?Subscribe now to get FREE updates..Happy blogging pals :)

Pengelola Blog : ABDUL WAHAB

Judul : Change Number of Posts appearing when clicking on Label
Ditulis oleh : Kejutan Internet pada hari
Rating Blog : 5 dari 5
Terima kasih Anda telah membaca artikel tentang Change Number of Posts appearing when clicking on Label
Anda boleh menyebar luaskannya atau mengcopy paste-nya jika artikel ini sangat bermanfaat bagi Blog dan teman-teman anda.
Namun jangan lupa harap memberikan link aktif dofollow yang mengarah ke URL ini ya
http://kejutaninternet.blogspot.com/2013/07/change-number-of-posts-appearing-when.html

Dan Terima kasih sekali lagi atas kunjungan Anda.

Kritik dan saran atau apapun bisa anda sampaikan melalui kotak komentar.
Dan mohon maaf jika komentar atau pertanyaan tidak bisa cepat saya respon,
karena Saya tidak bisa selalu online selama 24 Jam.


Mau Di Buatkan Blog Siap Pakai Seperti Ini ?.

Artikel Terkait

Previous
Next Post »