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”>’;
}
{/code}
Mudah-mudahan bisa membantu.
Sumber: wprecipes.com
13 replies on “Cara Menyembunyikan Kategori dari Search Engine”
makasih infonya mas, sangat bermanfaat bagi pemula seperti saya
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.
Below are great tips at a top notch social sites master on using your Facebook or myspace fan page to another level
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.
There is noticeably a bundle to find out about this. I assume you made sure nice points in options also.
You made approximately good points there. I looked on the internet for the deliver and establish mainly those will go all along with with your website.
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!
This website certainly has all the information I wanted about this subject and didn’t know who to ask.
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!
Well I definitely liked studying it. This subject procured by you is very helpful for proper planning.