How can I hide the ACF shortcode when empty

the code needs some modification. see below. /***************************************************************************************************************************************************** * * Usage: [acf_href href_before=”mailto:” href=”acf:field_name” text=”acf:field_name”] * * acf:fieldname will retrieve the value of the specified “fieldname” and use that. * get:url_variable will grab a variable from the URL and use that. * * [acf_href href=”acf:my_link” text=”Link to web site”] * [acf_href href_before=”mailto:” href=”acf:email_address” text=”acf:user_name” post_id=”get:post_id”] … Read more

My first WordPress shortcode just returning []

As discussed in the comments, ‘Card Table’ is an invalid shortcode tag name. Shortcode tag names must not contain any of the following: The characters <, >, &, /, [, ], = Whitespace characters (spaces, linefeeds, tabs, etc.) Any other non-printing/Unicode “control code” characters The old Codex page also recommends avoiding hyphens/dashes and uppercase letters, … Read more