# getwid/2.2.0/includes/templates/template-parts/post-custom-field.php

Getwid – Gutenberg Blocks, version 2.2.0. 12 lines.

- Page: https://pluginprobe.com/plugins/getwid/2.2.0/code/includes/templates/template-parts/post-custom-field.php
- Raw: https://pluginprobe.com/plugins/getwid/2.2.0/raw/includes/templates/template-parts/post-custom-field.php
- Modified: 2024-11-14T15:10:44+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/getwid/2.2.0/code/includes/templates/template-parts/post-custom-field.php#L10-L20`.

```php
<?php

//extract styles & classes
extract($extra_attr);
?>

<div class="<?php echo esc_attr( $wrapper_class ); ?>" <?php if ( !empty($wrapper_style) ) { ?> style="<?php echo esc_attr($wrapper_style); ?>" <?php } ?>>
    <?php if ( !empty($attributes['customField'] ) ) {
		echo wp_kses_post( get_post_meta( get_the_ID(), esc_attr( $attributes['customField'] ), true ) );
    } ?>
</div>

```
