I am following the quicktip: QuickTip: Custom Field – Adding a Text Field. The snippet adds the custom field on the add new entry/manage page. That part is working just fine. If I enter the code from the second part of the QuickTip, The section of code that goes into the card.php file, that is where I am having issues. If I post between the PHP tags I get this error Parse error: syntax error, unexpected ‘if’ The code on the line that it is referencing is this:
echo if ( ! empty( $text ) ) ‘
‘ . esc_html( $text ) . ‘
‘;