• Hi,

    I’m using this plugin with ACF Pro and it all works great! Thanks very much!

    I was wondering if there is a way to exclude some of the fields while duplicating the post.

    For example: I have a post with multiple ACF fields in it as field-a, field-b, field-c. I’d like to duplicate the post without copying field-b.

    Is there a way of doing this?

    Regards,

    Ozan

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

    (@metaphorcreations)

    I’m glad you’re liking the plugin! As of right now there isn’t any way to exclude specific custom fields, sorry.

    Hiya!

    As a workaround, you could clear the necessary field after duplicate using the ‘mtphr_post_duplicator_created’ action.

    
    function mtphr_after_duplicate($original_id, $duplicate_id, $settings) {
      //delete post meta or clear contents of acf
    }
    add_action( 'mtphr_post_duplicator_created', 'mtphr_after_duplicate', 10, 2);
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ACF Field Exclusion’ is closed to new replies.