Modify foreach loop for social sharing links?
Your issue has nothing to do with the foreach. The problem is this part: implode( ‘&’, $social_link[‘query’] ) implode() only connects the values. There’s nothing in this code that adds the keys or an =. If you want to add an array of key/values as a query string to a URL, WordPress provides a function … Read more