Jump to content

head hook to add meta tgas


losrack

Recommended Posts

Hi, 

I have this hook I am using to inject meta tags to my header.php file. I am running a wordpress installation.

 

/* meta description by page to head */

add_action( 'wp_head','carlos_head_meta_page' );  
function carlos_head_meta_page() { ?> 
    <meta name="description" content="Here goes content" />
<?php }

But I would love to be able to do it as per page basis, as I want different tags per page. 

 

Thanks. 

Edited by losrack
correction
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...