Trik WordPress

Cara Menyembunyikan Kategori dari Search Engine

Ada kalanya kita ingin agar artikel-artikel tertentu tidak diindex oleh search engine. Misalnya info-info rahasia yang hanya boleh dibaca oleh pengunjung setia blog anda saja atau artikel-artikel yang sudah kadaluarsa tapi sayang untuk dihapus. Semua tulisan di bawah kategori itu tidak boleh muncul.

Caranya pun sangat mudah. Pertama anda harus tahu nomor ID kategori yang ingin anda rahasiakan. Bisa di cek di menu Posts – Categories. Misalnya kita sudah tahu bahwa nomor ID-nya ada 5. Lalu masukkan kode ini di file header.php

{code type=php}
<?php if ( is_category(‘5’) || in_category(‘5’) ) {
echo ‘<meta name=”robots” content=”noindex”>’;

Mudah-mudahan bisa membantu.


By Lutvi

Bukan Ustadz, bukan Dai apalagi Kyai. Juga bukan guru. Hanya sekedar santri miskin ilmu yang coba mengamalkan 1 ayat warisan dari para ulama. Saat ini diamanahi menjadi admin web WordPress Indonesia

13 replies on “Cara Menyembunyikan Kategori dari Search Engine”

I simply want to tell you that I’m new to blogging and site-building and seriously liked you’re web-site. Likely I’m going to bookmark your blog . You amazingly have incredible well written articles. Thanks a lot for revealing your blog.

I just want to say I am very new to weblog and truly liked this website. Most likely I’m want to bookmark your blog . You amazingly have really good well written articles. Thanks a bunch for revealing your website page.

We are a group of volunteers and opening a new scheme in our community. Your site provided us with valuable info to work on. You’ve done an impressive job and our whole community will be thankful to you.

Fantastic goods from you, man. I’ve understand your stuff previous to and you’re just too fantastic. I actually like what you have acquired here, certainly like what you’re stating and the way in which you say it. You make it entertaining and you still care for to keep it sensible. I can’t wait to read much more from you. This is really a wonderful site.

Hi there, You have done an excellent job. I’ll definitely digg it and personally recommend to my friends. I am confident they will be benefited from this web site.

You actually make it seem so easy with your presentation but I find this matter to be really something that I think I would never understand. It seems too complicated and very broad for me. I’m looking forward for your next post, I’ll try to get the hang of it!

I do not even know how I ended up here, but I thought this post was great. I don’t know who you are but certainly you are going to a famous blogger if you are not already 😉 Cheers!

Comments are closed.