How to enable on custom shortcodes

You are using esc_attr in your table_data function. This will encode the html in your variable in such a way that it is no longer recognized as html. So the browser will display “<br>” rather than insert a line break.

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

How to remove https:// from shortcode generated url

That would be: return parse_url( get_site_url(), PHP_URL_HOST ) ); Explanation: get_site_url is the WP function that returns the full url (it is the function that site_url relies on). parse_url is a PHP function that splits the url into several components and returns one or more of them. In this case it returns the hostname, which … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)