I have a php function with a shortcode to add share buttons, but I’m having an error!
This is happening because in the function the first parameter is named $content and you use it as HTML content: function add_social_share_buttons($content) { …. // Append the share buttons HTML to the content $content .= $share_buttons; return $content; } But the first parameter of a shortcode callback is not a string of content, it’s an … Read more