Custom plugin issue when trying to use the shortcode twice on a page [closed]
As @TomJNowell said, You must never nest functions like that. so First,you have to move that functions out of that shortcode function and paste separately in your plugin’s file or active themes functions.php file. Second, follow what the codex says Shortcodes, If the shortcode produces a lot of HTML then ob_start can be used to … Read more