Hi @cinematic,
I’m afraid it doesn’t at the moment but like CPT it wouldn’t be too hard to add. They only reason I haven’t is that I didn’t think many people were using this plugin so didn’t really want to spend the time adding it. I may do though if it’s a popular request. There should be an update to it coming next week though any which fixes a few bugs.
Thanks
Hi @ozthegreat,
it just needs to small amendments. Just got it working (for pages and cpt ‘event’). In class-mscp-admin.php
line 85
$post_id = isset( $_GET[ ‘post’ ] ) ? absint( $_GET[ ‘post’ ] ) : false;
change to
$post_id = null !==( $_GET[ ‘post’ ] || $_GET[ ‘page’ ] || $_GET[ ‘event’ ] ) ? absint( $_GET[ ‘post’ ] || $_GET[ ‘page’ ] || $_GET[ ‘event’ ] ) : false;
and then
line 131
public function register_meta_boxes() {
add_meta_box(
‘multisite-crossposter’,
__( ‘Multisite Crossposter’, ‘multisite-crossposter’ ),
array( $this, ‘mscp_meta_box_callback’ ),
‘post’,
‘side’,
‘low’,
null
);
}
change to
public function register_meta_boxes() {
add_meta_box(
‘multisite-crossposter’,
__( ‘Multisite Crossposter’, ‘multisite-crossposter’ ),
array( $this, ‘mscp_meta_box_callback’ ),
array(‘post’, ‘event’, ‘page’),
‘side’,
‘low’,
null
);
}
Then the metabox shows up in pages and cpt event. It works right out of the box! 🙂
-
This reply was modified 9 years, 2 months ago by
cinematic.
Hey @cinematic
I’ve just pushed a new release and you’ll be pleased to know I’ve added in pages and custom post type support. It was sort of similar of similar to your changes but it needed a adjustment in a few other places as well.
Let me know if you have any issues with it!
Thanks
@ozthegreat … PERFECT … you are a genius. Thanks for this great plugin!