Wednesday, February 25, 2009

Let's Try Learn to Display Related Posts

How to display related posts

Related Posts is the title of the post and related naming is usually based on the displayed label (category), Realated Post is usually a link that show the exact posting single comment in the fields below. The advantage of the post with a related, of course, will make it easier for visitors to our blog to find related articles without having to go and open the pages one by one in the link label.

Let's try to the following ways :

Step I

Entry on the Templates -> Edit HTML -> then enter the javascript code below to above the code </head> -> do not forget saved

Step II

Entry on the Templates -> Edit HTML -> do not forget to check the Expand Widget Templates -> find the code below.

<b:if cond='data:post.labels'>


<b:loop values='data:post.labels'

<a expr:href='data:label.url'
rel='tag'><></a><b:if cond='data:label.isLast != "true"'>,</b:if>



If you have met them, enter the red code between the code above like this.

<b:if cond='data:post.labels'>


<b:loop values='data:post.labels'

<a expr:href='data:label.url'
rel='tag'><></a><b:if cond='data:label.isLast != "true"'>,</b:if>

<b:if cond='data:blog.pageType == "item"'>

<script expr:src='"/feeds/posts/default/-/" + + "?alt=json-in-script&amp;callback=related_results_labels&amp;max-results=10"'




After that, don't forget to save again.

Step III

Entry on the Templates -> Element -> page and then make a new elemet or click on "Add a Page Element" -> copy-paste the code below and be sure to give the name of the title eg, "Related Articles" -> then do not forget to save .

<script type="text/javascript">




So that Related post does not appear on the main page and only appear on the single post page so we need addition of some code, follow this way:

Entry on the Templates -> Edit HTML -> do not forget to check the Expand Widget Templates -> find the code below, as an example, where before I give "Related Articles", if it is found put the two red code into the code below.

<b:widget id='HTML99'
locked='false' title='
Related Articles' type='HTML'>

<b:includable id='main'>

<b:if cond='data:blog.pageType == "item"'>

<!-- only display title if it's non-empty -->

<b:if cond='data:title != ""'>

<h2 class='title'><data:title/></h2>


<div class='widget-content'>



<b:include name='quickedit'/>




Finish,,,don't forget to save your work,

Let's try it now,,,Happy Blogging,,^_^

HeadLine News


New Blogger Template - Smells Like Facebook

Details : THEME NAME: Smells like Facebook THEME URI: DESCRIPTION: The exact Facebook clone theme for Wordpress.Based on Facebook profile page. VERSION: 1.0.5 AUTHOR: Ainun Nazieb AUTHOR URI:[...]

Netbook Advan Vanbook A1N70T [Alnect Komputer]

Netbook keluaran advan dengan mengusung performa dari prosesor Atom keluaran Intel berasitektur 45nm . Lebih hemat daya dalam penggunaan baterainya. Performa yang cukup baik ditunjukkan netbook ini. Dengan berat hanya 1,2Kg netbook ini cukup mudah dibawa kemanapun Anda menginginkannya.[...]

In Memoriam 50th of Michael Jackson (Jacko)

The King Of Pop Michael Jackson had passed away on 25th June, 2009 and the moment was shocking around the world. The death caused cardiac arrest at his home in Los Angeles. His death triggered an outpouring of grief around the world,[...]

Slider ala Zinmag Primus Template

Zinmag Primus is a professional and white elegant Blogger template. Theme Author: Jinsona Design Converted By: Falcon Hive (Installation and Customization),[...]

Slide Show Smooth Gallery Widget

Slide Show yang begitu keren dengan tampilan featured content dan image,,[...]

Try TO Costumize Facebook Layout

Sedikit tips buat sobat blogger,, yang mungkin pengen belajar jg gmna caranya utk ganti layout facebook yang kita punya,,, skrg ga usah khawatir,,, ganti dengan sesuka hati tampilan facebook kamu... warna merah... warna hijau.. cerah.. bahkan bosen dengan wallpapernya ganti aza.. [...]

Total Blog Posts & Comments Widget

Widget yg satu ini untuk menampilkan Statistic Blog Sobat Blogger,, berdasarkan Total Posting yg Sobat buat dan Total Komentar yg masuk ke blog Sobat,, langsung aja gmna cara nya,, silahkan Sobat copas kode di bawah ini,[...]

CPU Komputer Di Dalam Botol

Apa jadinya kalau CPU komputer berada di dalam Botol minuman!!!! Aneh-aneh aja ya yang dilakukan orang...sampai CPU komputer pun bisa berada dalam Botol minuman.[...]
View All Posts

Increase Earnings

Add URL Here

Sign up for PayPal and start accepting credit card payments instantly.

Let's Join Acme People Search !!

Complete Step 1-3,, Get Free $125, NO SCAM !!

| Social Community | Facebook | Friendster | Twitter |
| News |
Kompas | Media Indonesia | Detik | Seputar Indonesia | Republika | Suara Pembaruan | Antara |
| Forum |
Kompas Forum | Detik Forum | Kaskus | Indo Forum | Chip Forum | Yogyafree | Delphi Forum | Komunitas Muda | Jasakom |
The Press List| | Aljazeera English | Media Indonesia | Tempo Newspaper | Tempo Magazine | The Jakarta Post | CNET Asia | CNET.COM


Twitter Delicious Facebook Digg Stumbleupon Favorites More