-->
6/Tutorial/slider

2 cara membalik urutan komentar wordpress

No comments
Halo...
kali ini saya akan memberikan tips membalikkan urutan komentar di wordpress. Memang sih udah banyak tentang cara membalik urutan.. Namun kali ini, saya memberikan 2 cara untuk antisipasi kalau salah satu cara gagal.

Langsung aja -->

Cara Pertama :

  • Masuk ke dasbor pilih pengaturan/settings dan klik diskusi/discussion
  • Pada "Comments should be displayed with the" pilih newer
  • save changes
  • selesai


Cara Kedua:
Cara ini hanya berlaku pada wordpress.org

  • Buka comments.php
  • Tambahkan script berikut ini:
    <?php $comments = array_reverse($comments, true); ?>
    letakkan script tadi diatas kode:
    <?php foreach ($comments as $comment) : ?>
    save
  • selesai
  • lihat salah satu posting yang ada komentarnya.. Pasti sudah terbalik


~SEKIAN~

author profile image
Abdelghafour

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

No comments

Post a Comment

An ENTJ Person. A software engineer, experienced in web development, especially in Java. The best graduate of engineering field of Bandung State Polytechnic. Self-motivated and adaptable person. Highly passionate about IT stuff. A fast learner, always curious and loves to learn something new. Has a strong logical and analytical thinking. [Faris Arifiansyah] (https://lh4.googleusercontent.com/9-OcR6PfTb9wECGLmzP0uzrFor9GiXdbMHRt_eXiIh9D_kdopGPGDogIuhWVlCaeBfGONpDMz54MuZHfm98s=w1920-h925)