• Resolved hslaszlo

    (@hslaszlo)


    Hi, I sync some custom post type posts, but the plugin does not associate it to the author, can you help me?
    Thanks
    Laszlo

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author MagicStick

    (@magicstick)

    Hi Laszlo. If you want this functionality add the following code to your functions.php file:

    function mpd_keep_post_author($mdp_post, $mpd_process_info){
    
      $mdp_post['post_author'] = get_post_field( 'post_author', $mpd_process_info['source_post_id'] );
    
      return $mdp_post;
    
    }
    
    add_filter('mpd_setup_destination_data', 'mpd_keep_post_author', 100, 2);
    Thread Starter hslaszlo

    (@hslaszlo)

    Thank you for the help, works perfectly.

    It it’s possible, that I refresh the original entry, let the copy be refreshed?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘does not associate posts to the author’ is closed to new replies.