how to add a meta tag to the page template from Wordpress plugin?

Posted by detj on Stack Overflow See other posts from Stack Overflow or by detj
Published on 2010-04-01T11:11:08Z Indexed on 2010/04/01 11:13 UTC
Read the original article Hit count: 249

Filed under:
|
|

I want to add a meta tag like this one:

<meta name="key" content="value" />

to some of the pages in Wordpress. I know, I can add this into my template and it will show up. But the thing is, I am not allowed to even touch the template. It's totally template independent.

So, I have to add the meta tag only by doing something in my plugin code. I have tried wp_head action hook, but it is not working. Any idea of a workaround or anything to get the meta tag inside the head tags of the pages dynamically.

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about php