# ultimate-post/5.0.25/blocks/template/title.php

Post Grid Gutenberg Blocks – PostX, version 5.0.25. 6 lines.

- Page: https://pluginprobe.com/plugins/ultimate-post/5.0.25/code/blocks/template/title.php
- Raw: https://pluginprobe.com/plugins/ultimate-post/5.0.25/raw/blocks/template/title.php
- Modified: 2026-06-10T11:42:38+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/ultimate-post/5.0.25/code/blocks/template/title.php#L10-L20`.

```php
<?php
defined( 'ABSPATH' ) || exit;

$attr['titleTag'] = in_array( $attr['titleTag'], ultimate_post()->ultp_allowed_block_tags() ) ? $attr['titleTag'] : 'h3';
$post_loop       .= '<' . $attr['titleTag'] . ' class="ultp-block-title ' . ( $attr['titleStyle'] == 'none' ? '' : ' ultp-title-' . sanitize_html_class( $attr['titleStyle'] ) ) . '"><a href="' . $titlelink . '" ' . ( $attr['openInTab'] ? 'target="_blank"' : '' ) . '>' . esc_html( $title ) . '</a></' . $attr['titleTag'] . '>';

```
