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() { ?><metaname="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.
head hook to add meta tgas
in PHP
Posted · Edited by losrack
correction
Hi,
I have this hook I am using to inject meta tags to my header.php file. I am running a wordpress installation.
But I would love to be able to do it as per page basis, as I want different tags per page.
Thanks.