Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
3 fixed grammar and formatting
source | link

I have created custom page template. Now I have to make it configurable, however since I am using more than one template in my theme I would like to make sure that configuration will be available only when the user choosechooses this template for a page. Is there an option to do so?

add_meta_boxadd_meta_box accepts different $post_type$post_type, so the closest I can get is to add metabox to all pages, which I would like to avoid.

I have created custom page template. Now I have to make it configurable, however since I am using more than one template in my theme I would like to make sure that configuration will be available only when user choose this template for a page. Is there an option to do so?

add_meta_box accepts different $post_type so the closest I can get is to add metabox to all pages which I would like to avoid.

I have created custom page template. Now I have to make it configurable, however since I am using more than one template in my theme I would like to make sure that configuration will be available only when the user chooses this template for a page. Is there an option to do so?

add_meta_box accepts different $post_type, so the closest I can get is to add metabox to all pages, which I would like to avoid.

2 edited title
| link

Custom metabox fotfor custom page template

1
source | link

Custom metabox fot custom page template

I have created custom page template. Now I have to make it configurable, however since I am using more than one template in my theme I would like to make sure that configuration will be available only when user choose this template for a page. Is there an option to do so?

add_meta_box accepts different $post_type so the closest I can get is to add metabox to all pages which I would like to avoid.