Quantcast
Channel: Custom Title, Description, and Keywords per Post/Page | WordPress.org
Viewing all articles
Browse latest Browse all 8

Reply To: Custom Title, Description, and Keywords per Post/Page

$
0
0

It’s easy. Use get_post_meta() function.

For example. How to make custom <title> tag:
1) Add custom field ‘title’ for every page
2) Edit your header template. Use something like that:
<title><?php echo get_post_meta($wp_query->post->ID, ‘title’, true); ?></title>

PS: Sorry for my english


Viewing all articles
Browse latest Browse all 8

Trending Articles