Skip to main content
6 events
when toggle format what by license comment
Feb 14, 2017 at 8:13 answer added cybmeta timeline score: 1
Feb 14, 2017 at 8:01 comment added user6552940 An alternate method will be to create the pages associated with each template file after your theme activation and then saving there page ids, create an object or array out of it and then later you can do something like if arr[my-page] then add this meta box
Feb 14, 2017 at 7:52 comment added user6552940 The switch statement can be hooked to the add_meta_boxes
Feb 14, 2017 at 7:49 comment added user6552940 If you already know the pages will be named after the template files, use a switch statement to choose the appropriate metabox based on the page slug or the page title. This is a simple approach but will work.
Feb 14, 2017 at 7:22 review First posts
Feb 14, 2017 at 7:42
Feb 14, 2017 at 7:14 history asked signif_3223 CC BY-SA 3.0