For my WordPress theme I have a custom portfolio post type and a portfolio page template to display them. What I want to do is add a meta box to the edit page area, but only when the page has the portfolio template.
Thanks.
For my WordPress theme I have a custom portfolio post type and a portfolio page template to display them. What I want to do is add a meta box to the edit page area, but only when the page has the portfolio template.
Thanks.
You must be logged in to post a comment.
Hook this via the
register_meta_box_cb
arg when registering the post type or in your manually viaadd_meta_boxes-portfolio
hook.