• Resolved sintrapsz

    (@sintrapsz)


    Client bought Sync Taxonomies addon to synchronize certain custom posts and custom taxonomies. I assume that in order to sync everything I would have to either run “Sync” page or run Recorded actions everytime I save term. So I tried to follow your programmatic solution


    if ( function_exists( ‘broadcast_sync_taxonomies’ ) && get_current_blog_id() === 1 )
    {
    // Before you start, you’re on the source blog, right?
    // This is the name of the post type the taxonomy belongs to.
    $post_type = ‘offer’;
    // This is the taxonomy name beloning to the post type above.
    $taxonomy = ‘department_category’;
    // An array of blog IDs to which to sync the chosen taxonomy.
    $blogs = [ 2, 3, 4 ];
    broadcast_sync_taxonomies()->sync_taxonomy( $post_type, $taxonomy, $blogs );
    }”

    I checked the post_name , taxonomy and blog ids few times. Could you hint me into right direction. I posted debug log below but it doesn’t tell me much ?

    I get this from debug log
    “2020-12-22 15:08:27.0715 ThreeWP_Broadcast: Sync_Taxonomies: Syncing taxonomy department_category for post type offer.<br/>
    2020-12-22 15:08:27.0122 ThreeWP_Broadcast: The custom field blacklist is:

    array (
      0 => '_thumbnail_id',
    )

    <br/>
    2020-12-22 15:08:27.1255 ThreeWP_Broadcast: The custom field protectlist is:

    array (
    )

    <br/>
    2020-12-22 15:08:27.1287 ThreeWP_Broadcast: The custom field whitelist is:

    array (
    )

    <br/>
    2020-12-22 15:08:27.1314 ThreeWP_Broadcast: Taxonomy term meta:

    plainview\sdk_broadcast\collections\collection::__set_state(array(
       'items' => 
      array (
      ),
    ))

    <br/>
    2020-12-22 15:08:27.1337 ThreeWP_Broadcast: Sync_Taxonomies: Switching to blog 2<br/>
    2020-12-22 15:08:27.0136 ThreeWP_Broadcast: Sync_Taxonomies: Done syncing.<br/>
    2020-12-22 15:08:27.1381 ThreeWP_Broadcast: Sync_Taxonomies: Switching to blog 3<br/>
    2020-12-22 15:08:27.1403 ThreeWP_Broadcast: Sync_Taxonomies: Done syncing.<br/>
    2020-12-22 15:08:27.1425 ThreeWP_Broadcast: Sync_Taxonomies: Switching to blog 4<br/>
    2020-12-22 15:08:27.1448 ThreeWP_Broadcast: Sync_Taxonomies: Done syncing.<br/>
    2020-12-22 15:08:30.2868 ThreeWP_Broadcast: Sync_Taxonomies: Syncing taxonomy department_category for post type offer.<br/>
    2020-12-22 15:08:30.3409 ThreeWP_Broadcast: The custom field blacklist is:

    array (
      0 => '_thumbnail_id',
    )

    <br/>
    2020-12-22 15:08:30.3444 ThreeWP_Broadcast: The custom field protectlist is:

    array (
    )

    <br/>
    2020-12-22 15:08:30.3473 ThreeWP_Broadcast: The custom field whitelist is:

    array (
    )

    <br/>
    2020-12-22 15:08:30.3501 ThreeWP_Broadcast: Taxonomy term meta:

    plainview\sdk_broadcast\collections\collection::__set_state(array(
       'items' => 
      array (
      ),
    ))

    <br/>
    2020-12-22 15:08:30.3527 ThreeWP_Broadcast: Sync_Taxonomies: Switching to blog 2<br/>
    2020-12-22 15:08:30.3553 ThreeWP_Broadcast: Sync_Taxonomies: Done syncing.<br/>
    2020-12-22 15:08:30.3579 ThreeWP_Broadcast: Sync_Taxonomies: Switching to blog 3<br/>
    2020-12-22 15:08:30.3603 ThreeWP_Broadcast: Sync_Taxonomies: Done syncing.<br/>
    2020-12-22 15:08:30.3626 ThreeWP_Broadcast: Sync_Taxonomies: Switching to blog 4<br/>
    2020-12-22 15:08:30.3653 ThreeWP_Broadcast: Sync_Taxonomies: Done syncing.<br/>
    2020-12-22 15:08:31.5949 ThreeWP_Broadcast: Sync_Taxonomies: Syncing taxonomy department_category for post type offer.<br/>
    2020-12-22 15:08:31.0642 ThreeWP_Broadcast: The custom field blacklist is:

    array (
      0 => '_thumbnail_id',
    )

    <br/>
    2020-12-22 15:08:31.6452 ThreeWP_Broadcast: The custom field protectlist is:

    array (
    )

    <br/>
    2020-12-22 15:08:31.6483 ThreeWP_Broadcast: The custom field whitelist is:

    array (
    )

    <br/>
    2020-12-22 15:08:31.6508 ThreeWP_Broadcast: Taxonomy term meta:

    plainview\sdk_broadcast\collections\collection::__set_state(array(
       'items' => 
      array (
      ),
    ))

    <br/>
    2020-12-22 15:08:31.6528 ThreeWP_Broadcast: Sync_Taxonomies: Switching to blog 2<br/>
    2020-12-22 15:08:31.0655 ThreeWP_Broadcast: Sync_Taxonomies: Done syncing.<br/>
    2020-12-22 15:08:31.6572 ThreeWP_Broadcast: Sync_Taxonomies: Switching to blog 3<br/>
    2020-12-22 15:08:31.6593 ThreeWP_Broadcast: Sync_Taxonomies: Done syncing.<br/>
    2020-12-22 15:08:31.6615 ThreeWP_Broadcast: Sync_Taxonomies: Switching to blog 4<br/>
    2020-12-22 15:08:31.6637 ThreeWP_Broadcast: Sync_Taxonomies: Done syncing.<br/>
    2020-12-22 15:08:33.5824 ThreeWP_Broadcast: Sync_Taxonomies: Syncing taxonomy department_category for post type offer.<br/>
    2020-12-22 15:08:33.6328 ThreeWP_Broadcast: The custom field blacklist is:

    array (
      0 => '_thumbnail_id',
    )

    <br/>
    2020-12-22 15:08:33.6364 ThreeWP_Broadcast: The custom field protectlist is:

    array (
    )

    <br/>
    2020-12-22 15:08:33.6395 ThreeWP_Broadcast: The custom field whitelist is:

    array (
    )

    <br/>
    2020-12-22 15:08:33.6421 ThreeWP_Broadcast: Taxonomy term meta:

    plainview\sdk_broadcast\collections\collection::__set_state(array(
       'items' => 
      array (
      ),
    ))

    <br/>
    2020-12-22 15:08:33.6448 ThreeWP_Broadcast: Sync_Taxonomies: Switching to blog 2<br/>
    2020-12-22 15:08:33.6473 ThreeWP_Broadcast: Sync_Taxonomies: Done syncing.<br/>
    2020-12-22 15:08:33.6495 ThreeWP_Broadcast: Sync_Taxonomies: Switching to blog 3<br/>
    2020-12-22 15:08:33.6523 ThreeWP_Broadcast: Sync_Taxonomies: Done syncing.<br/>
    2020-12-22 15:08:33.6548 ThreeWP_Broadcast: Sync_Taxonomies: Switching to blog 4<br/>
    2020-12-22 15:08:33.6573 ThreeWP_Broadcast: Sync_Taxonomies: Done syncing.<br/>
    2020-12-22 15:08:36.7243 ThreeWP_Broadcast: Sync_Taxonomies: Syncing taxonomy department_category for post type offer.<br/>
    2020-12-22 15:08:36.7748 ThreeWP_Broadcast: The custom field blacklist is:

    array (
      0 => '_thumbnail_id',
    )

    <br/>
    2020-12-22 15:08:36.7781 ThreeWP_Broadcast: The custom field protectlist is:

    array (
    )

    <br/>
    2020-12-22 15:08:36.7814 ThreeWP_Broadcast: The custom field whitelist is:

    array (
    )

    <br/>
    2020-12-22 15:08:36.7844 ThreeWP_Broadcast: Taxonomy term meta:

    plainview\sdk_broadcast\collections\collection::__set_state(array(
       'items' => 
      array (
      ),
    ))

    <br/>
    2020-12-22 15:08:36.0787 ThreeWP_Broadcast: Sync_Taxonomies: Switching to blog 2<br/>
    2020-12-22 15:08:36.079 ThreeWP_Broadcast: Sync_Taxonomies: Done syncing.<br/>
    2020-12-22 15:08:36.7927 ThreeWP_Broadcast: Sync_Taxonomies: Switching to blog 3<br/>
    2020-12-22 15:08:36.7955 ThreeWP_Broadcast: Sync_Taxonomies: Done syncing.<br/>
    2020-12-22 15:08:36.7982 ThreeWP_Broadcast: Sync_Taxonomies: Switching to blog 4<br/>
    2020-12-22 15:08:36.8009 ThreeWP_Broadcast: Sync_Taxonomies: Done syncing.<br/>”

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

    (@edward_plainview)

    Since this is a part of the premium pack, please contact me via e-mail to get this solved.

    In the meantime, I’ll run a test locally to see if that code works as it should.

    Plugin Author edward_plainview

    (@edward_plainview)

    Works as expected on my end (but with post / category, instead of your custom stuff). Awaiting your e-mail so we can get this problem behind us.

    Thread Starter sintrapsz

    (@sintrapsz)

    Moved to email discussion

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sync Taxonomies not syncing data’ is closed to new replies.