Norbert
Member
Posted 7 years ago #
Hi all,
I need a possibility to modify the html head (meta tags etc.) of the page for each individual post if this post is requested from the archive.
So far I found plugins which get the custom fields, but they always have to be used inside the loop. Has anyone an idea how to write something which can be called already inside the html head and gets custom fields from the post that was requested ?
Thx. Norbert
Joshua Sigar
Member
Posted 7 years ago #
Norbert
Member
Posted 7 years ago #
This works, but the custom field will be displayed all the time. I created a testfield in post1 and no matter which post you request it is on the page.
But maybe this is a start and I can modify the code.
I need a possibility to identify the requested post and get the custom fields from the database only for this post.
Norbert
Member
Posted 7 years ago #
Ah, the moisie plugin works, great !!!