Functions
ugly_show()
ugly_show( string $name, int|string|null $target = null ): voidPrints the value of a field, escaped for the place it goes in. A text is escaped as text; a URL as a URL; rich text is cleaned with the same list WordPress uses for posts.
<h1><?php ugly_show( 'headline' ); ?></h1>
<p><?php ugly_show( 'summary' ); ?></p>It prints nothing when there is nothing to print, so no if is needed for a simple text.
Did this article answer your question?
Thank you. It helps us make the documentation better. Need more help?