Skip to content

Default page template can be empty string or ‘default' #347

Description

@barryceelen

To show a meta box on a page with the ‘default’ template selected (or no template selected) you currently have to do this:

'page-template' => array( '', 'default’ )

Would be nice if the plugin would handle this.
On a side note, it would be better to check for the current page template by using get_page_template_slug( $post_id ) in stead if get_post_meta( $post_id, '_wp_page_template', true ). The former always returns an empty string if the ‘default’ template or no template is chosen.

Kind of related: #305

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions