losrack Posted August 10, 2017 Share Posted August 10, 2017 (edited) 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 August 10, 2017 by losrack correction Link to comment Share on other sites More sharing options...
dsonesuk Posted August 10, 2017 Share Posted August 10, 2017 Yoast SEO does all that for you for each post or page, it comes with many other features to improve SEO. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now