Friends Link

February 7th, 2010 Leave a comment Go to comments

A

Friend’s Link


A

A

- Ada Apa YepAgung Haryono - Agus SupriyantoAgustomobil

- Ardiz TarakanArtikel Komputerku

A

- BaNi MusTajaB - BayexBeranda Kawasan

A

- Chikalearntospeak

A

- Ebook DownloadEmbun777

A

- Haribaru08HendraBozzieBlog!Hermawan Blog

A

- Ireng_ajah blogInspired by ProfessorIlmu Tambah Blog

A

- Kursus bhs arab onlinekotakpeluangKrishna Balagita’s
- Krishna New Spectrum

A

- Lirik Lagulerry060183

A

- Meja Mewah

A

- NizarnitisaraNoershani

A

Ouh-Mai-Goat

A

- Pamsceng’s BlogPengawas20

A

- Sudut Pandang

A

- Thread Pangeran 229The95’s BlogTidak Menarik

A

Belajar Photography dan Videography AyemMo rwin blog™ Blog Iseng udin-mduro LUMiNOUS blog My Wordpress COEX My Wordpress Berita Populer di Indonesia kangbir

dharmaarif blogmasnya-logo.jpgFree Photoshop Tutorial ARSITEK DISINI

  1. February 3rd, 2010 at 03:49 | #1

    Kunjungan balik Gan..nice blog. Link sudah terpasang..

    function related_posts_shortcode( $atts ) { extract(shortcode_atts(array( 'limit' => '5', ), $atts)); global $wpdb, $post, $table_prefix; if ($post->ID) { $retval = '
      '; // Get tags $tags = wp_get_post_tags($post->ID); $tagsarray = array(); foreach ($tags as $tag) { $tagsarray[] = $tag->term_id; } $tagslist = implode(',', $tagsarray); // Do the query $q = "SELECT p.*, count(tr.object_id) as count FROM $wpdb->term_taxonomy AS tt, $wpdb->term_relationships AS tr, $wpdb->posts AS p WHERE tt.taxonomy ='post_tag' AND tt.term_taxonomy_id = tr.term_taxonomy_id AND tr.object_id = p.ID AND tt.term_id IN ($tagslist) AND p.ID != $post->ID AND p.post_status = 'publish' AND p.post_date_gmt < NOW() GROUP BY tr.object_id ORDER BY count DESC, p.post_date_gmt DESC LIMIT $limit;"; $related = $wpdb->get_results($q); if ( $related ) { foreach($related as $r) { $retval .= '
    • ' .wptexturize($r->post_title).'
    • '; } } else { $retval .= '
    • No related posts found
    • '; } $retval .= '
    '; return $retval; } return; } add_shortcode('related_posts', 'related_posts_shortcode');
  1. No trackbacks yet.