Description
Returns A group with field value and label with a template format (By given metaKey) with all duplicate group.
Parameters
1 2 3 4 5 |
<?php get_duplicate_group_tpl($metaKey,$post_id=null); ?> |
- $metaKey: The Meta key of the field . eg “book_author” (required)
- $post_id: Specific post ID where your value was entered. Defaults to current post ID(not required)
Usage
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<?php $group = get_duplicate_group_tpl(info,405); // By using All parameter $group = get_duplicate_group_tpl(info); // using $metakey if($group){ echo $group; } else{ // do something } ?> |
Leave a Reply
You must be logged in to post a comment.