Cara menampilkan kategori tertentu di widget atau sidebar wordpress

Discussion in 'Desain Web dan Programming' started by Yundar Setiawan, 5 Apr 2016.

Thread Status:
Not open for further replies.
  1. Yundar Setiawan

    Yundar Setiawan Apprentice 2.0

    Messages:
    476
    Likes Received:
    38
    Trophy Points:
    28
    Bro sist ada yang tahu caranya menampilkan daftar link judul dari kategori tertentu di widget atau sidebar pada wordpress?saya dah nemu codingnya di categoy_name dah tak ganti umum ( nama kategoi) tapi blm bisa jalan, atau ada yang kurang.. atau ada plugin biar lbih mudah.. thnks


    <ul>
    <?php query_posts('category_name=NAMA_KATEGORI&showposts=5');
    while (have_posts()) : the_post();
    ?>
    //di bawah ini adalah isi Kode
    <li> <a href="<?php the_permalink() ?>"><?php the_title(); ?></a> </li>

    <?php endwhile;?>
    </ul>
     
  2. Arifin Mochammad

    Arifin Mochammad Poster 1.0

    Messages:
    57
    Likes Received:
    8
    Trophy Points:
    8
  3. Yundar Setiawan

    Yundar Setiawan Apprentice 2.0

    Messages:
    476
    Likes Received:
    38
    Trophy Points:
    28
  4. Arifin Mochammad

    Arifin Mochammad Poster 1.0

    Messages:
    57
    Likes Received:
    8
    Trophy Points:
    8
Loading...
Thread Status:
Not open for further replies.

Share This Page

Loading...