Meta-box for pages
-
Hello!
My question can be a duplicate or can sound silly, but I am desperate in creating meta-boxes for wordpress pages.
I found that it is possbile with add_meta_box and that it is required to set screen as ‘page’. In that case metabox tab appears and further is is possbile to write code for required fields.
My problem is I cannot find a way on how to show input on the exact page where I put it, I mean how to render it to the front end.
I`ve been searching for a solution for 4 days and found a huge number of tutorials for metaboxes but for posts or cutom posts, not for pages.
Therefore, changing screen from ‘post’ to ‘page’ in add_meta_box function is obviously not enough and I do really need your help.
PS. I know the easy way is to use a plugin like Advanced Custom Fields, but I need to learn how to do it without plugins.
- The topic ‘Meta-box for pages’ is closed to new replies.