Using custom fields for meta tags (keywords and descriptions) in head
-
Reading over the codex I have the impression that you can only access a page or post’s custom fields from within the loop. Is there any way around that?
I’d like to be able to use custom fields to create descriptions and keywords for some post and pages which I could then insert as meta elements in head.
I know there are plugins that will do what I want, but I was wondering if I could do this just using template tags and a little clever PHP?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Using custom fields for meta tags (keywords and descriptions) in head’ is closed to new replies.