• Resolved cinematic

    (@cinematic)


    Hi, this is a very useful plugin. However, I noticed that the crossposting options appears with posts only. Does the plugin support pages too? And yes, supporting cpt would be a great option!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author OzTheGreat

    (@ozthegreat)

    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

    Thread Starter cinematic

    (@cinematic)

    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 7 years, 8 months ago by cinematic.
    Plugin Author OzTheGreat

    (@ozthegreat)

    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

    Thread Starter cinematic

    (@cinematic)

    @ozthegreat … PERFECT … you are a genius. Thanks for this great plugin!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Support for pages?’ is closed to new replies.