without paid plugins? https://ww.wp.xz.cn/plugins/wordpress-seo or https://ww.wp.xz.cn/plugins/search/seo
Adding it manually to each page would be an extreme pain. You could always write your own plugin if you don’t want to use someone else’s.
Thread Starter
tu586
(@tu586)
I want to add them manually to the head tag of the page.
I just need to know where can I find the head section to add code to it.
Gotta be a way to work in WordPress using code instead of using plugins for adding a tag..
No, not really, because WP does not create HTML pages. It uses a database, so the meta you want need to be in the postmeta table for the specific post. You could write your own plugin — you’d need to put a metabox on the post editor, save the result (properly sanitized) in postmeta, and then hook the wp_head filter to fetch the saved info, format it, and output in the header.
All in all, it’s a lot easier to use of of the SEO plugins.
Thread Starter
tu586
(@tu586)
Ouch…
Yoast cost money… I am trying to not spend money and just code it.
Gotta be an easy way to the get to the head tag of a page just to add a couple lines of code for the meta tags..
I recently added raw html and javascript to the body of a new page because it was something that I just needed to do…. so I figure a copule head tags shouldn’t be that hard to do..
Maybe I can explore the template in the Cpanel and see if there are tags in there and add them… I so, I would need to create a new template for each new page..
No, Yoast is free. There’s a “pro” version, but I’ve never found a need for it.
DO NOT EDIT core WP files.
Thread Starter
tu586
(@tu586)
For some reason I have the paid version of Yoast..
I’ll ask them not to auto renew on the paid version.
In the mean time I might need to learn some php coding to add more information..
I want to work more in pure code rather than using the plugins … that includes the page builders as well..