From 525498c302b4b410cff0d5861867d6bcb2f4c5a2 Mon Sep 17 00:00:00 2001 From: Erick Hitter <ehitter@gmail.com> Date: Sun, 3 Jun 2012 10:49:29 -0400 Subject: [PATCH] Ensure metabox appears on all supported posts types. Fixes #3. --- automatically-paginate-posts.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/automatically-paginate-posts.php b/automatically-paginate-posts.php index 60ad152..c2ea7de 100644 --- a/automatically-paginate-posts.php +++ b/automatically-paginate-posts.php @@ -59,7 +59,9 @@ class Automatically_Paginate_Posts { * @return null */ function action_add_meta_boxes() { - add_meta_box( 'autopaging', 'Post Autopaging', array( $this, 'meta_box_autopaging' ), 'post', 'side' ); + foreach ( $this->post_types as $post_type ) { + add_meta_box( 'autopaging', 'Post Autopaging', array( $this, 'meta_box_autopaging' ), $post_type, 'side' ); + } } /** -- GitLab