• Resolved Marcelo Pedra

    (@kent-brockman)


    Hi! This is a very interesting plugin that could help me do what I’m asked to, from a self hosted WP to another self hosted WP.

    So, here I leave you with 3 questions:

    1) If I use some editor builder, like Divi theme or the Visual Composer plugin, will all that markup and shortcodes in the editor be seamlessly copied to the destination?
    2) Could this plugin broadcast other custom post types? like: pages, and custom post types… is it possible to *edit* your code to allow the plugin widget to be present into those other CPT editor screens?
    3) Is it possible to crosspost posts that have been already posted in the source website? (Kinda repost).

    I hope you can clarify these and see further to use your plugin.
    Best regards

    https://www.ads-software.com/plugins/wp-crosspost/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Meitar

    (@meitar)

    Hi. ?? I’m glad you find this project interesting.

    To answer your questions:

    1. Yes. Anything you put in the post body field will be crossposted as HTML. This means that any shortcodes you have are first evaluated (processed) and the shortcode’s resulting HTML output is inserted into the post body, as though the WordPress post were going to be displayed. This means you can not crosspost shortcodes directly, because they will be expanded to their HTML output before WordPress Crosspost crossposts them.
    2. Theoretically, yes. However, the problem with custom post types is that they usually contain data that is specific to that post type. This means that to work with custom post types, the plugin needs a way to understand what to do with that custom data, too. So, right now, there is no way to crosspost custom post types. That’s a really good idea for the future, though.
    3. Yes, it is. If you crosspost a post more than once however, crossposting again simply updates the destination copy with the source copy, rather than making a new post each time.

    If you want to, you can look into the source code for the addMetaBox function on line 150, which is where the plugin connects its module (widget) to the post post type. If you wanted to connect it also to a different post type, say book, then you would add another call to add_meta_box like this:

    add_meta_box(
        'wp-crosspost-meta-box',
        __('WordPress Crosspost', 'wp-crosspost'),
        array($this, 'renderMetaBox'),
        'book',
        'side'
    );
    

    It’s possible that very little else needs to change to get the plugin to work with other post types, but I have not tested this. If you try it out, please let me know how it goes. ??

    Hello, Meitar,

    I just want to get clarification of your answer: will this plugin allow me to keep Pages in sync across two WordPress installs?

    Also, I have a self-hosted WP install on both the domain and a subdomain, and I would like the subdomain WP install to mirror a couple of pages that may change on the main site. Is your plugin capable of doing this?

    Thanks!

    Plugin Author Meitar

    (@meitar)

    will this plugin allow me to keep Pages in sync across two WordPress installs?

    Theoretically, yes, but that capability is not yet tested and not yet supported.

    I have a self-hosted WP install on both the domain and a subdomain, and I would like the subdomain WP install to mirror a couple of pages that may change on the main site. Is your plugin capable of doing this?

    Again, not with page post types, yet, but with regular post post types. Also, you’ll need to set up the destination blog with Jetpack as described here to enable self-hosted to self-hosted crossposting.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Only "posts" entries can be broadcasted?’ is closed to new replies.