Closed szepeviktor closed 8 years ago
Do you mean you want to display meta boxes in the front-end?
NO!!! On the back-end. But only for a certain page template.
Do you mean this?
When the user selects an item in the Template select drop-down , do you want to display an associated meta box?
When the user selects an item in the Template select drop-down , do you want to display an associated meta box?
Actually when the template is already set, thus after hitting Publish/Update.
You can set an empty array to the $this->oProp->aPostTypes
property to disable the post meta box in the setUp()
method.
public function setUp() {
...
if ( ...not the desired template... ) {
$this->oProp->aPostTypes = array();
}
...
}
Thank you!
Could I tie metaboxes to - let's say - the front page only?