Commit 525498c3 authored by Erick Hitter's avatar Erick Hitter

Ensure metabox appears on all supported posts types. Fixes #3.

parent 6eb90f6f
...@@ -59,7 +59,9 @@ class Automatically_Paginate_Posts { ...@@ -59,7 +59,9 @@ class Automatically_Paginate_Posts {
* @return null * @return null
*/ */
function action_add_meta_boxes() { 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' );
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment