get_duplicate_field()

Description

Returns An array of the specified field (By given metaKey) with all duplicate values.

Parameters

 

  • $metaKey: The Meta key of the field . eg “book_author” (required)
  • $groupIndex:Specific group index if you have duplicate group. Defaults to 1(not required)
  • $post_id: Specific post ID where your value was entered. Defaults to current post ID(not required)

 

Usage

Out Put