Is there no post AND page parameter for WordPress functions? So would I have to create a custom post type to define post AND page?
add_meta_box( $id, $title, $callback, $post_type, $context, $priority, $callback_args ); you need to define what type of
$post_type. The options are 'post', 'page', 'link' or a custom post type.
I'd like to define a meta box that applies to both the post and page. Surely copying and pasting the function and then replacing the $post_type with post and page would work but it wouldn't be very efficient.
I know that
is_singular() defines both a post and page, but that is for a query.
Any ideas? I'd prefer not to install another plugin. One reason I am creating a meta box is so that I don't have to install a plugin.