Skip to content

Commit

Permalink
Fix custom field values coming from parent post in certain contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
figureone committed Jan 30, 2018
1 parent 6883a18 commit a19a280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion insert-pages.php
Expand Up @@ -377,7 +377,7 @@ function insertPages_handleShortcode_insert( $atts, $content = null ) {
if ( is_protected_meta( $keyt, 'post' ) ) {
continue;
}
$value = get_post_custom_values( $key );
$value = get_post_custom_values( $key, $inserted_page->ID );
if ( is_array( $value ) ) {
$values = array_map( 'trim', $value );
$value = implode( $values, ', ' );
Expand Down

0 comments on commit a19a280

Please sign in to comment.