Membuat Meta Description Dinamik pada WordPress

Rek,pingin punya meta description tag dan kategori di WordPress yang dinamik?
Dinamik ini maksudnya, meta description akan memberikan outputan berupa 250 karakter pertama yang ada di post.

kalau penasaran, coba aja script di bawah ini. Taruhnya di header.php ya.

<meta name="description" content="post_content,0 , 250)); ?>” />

Iklan

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

w

Connecting to %s

%d blogger menyukai ini:
search previous next tag category expand menu location phone mail time cart zoom edit close