Elementor Dynamic Social Medias

Add dynamic content for social media icons

The plugin EAC is installed and active.
Display dynamiquely social icons on a blog post, with author’s or user’s social media links.
If you do not have the necessary fields in the user profile, you have to create it.
Use plugin for add extra user fields or simply add the bellow code in your ‘functions.php‘ theme or more secure in a child theme.
After that you have to fill some or all fields for each user profile.

function eac_add_hide_profile_fields($contactmethods) {

	$contactmethods['twitter'] = 'URL Twitter';
	$contactmethods['facebook'] = 'URL Facebook';
	$contactmethods['instagram'] = 'URL Instagram';
	$contactmethods['linkedin'] = 'URL LinkedIn';
	$contactmethods['youtube'] = 'URL YouTube';
	$contactmethods['pinterest'] = 'URL Pinterest';
	$contactmethods['tumblr'] = 'URL Tumblr';
	$contactmethods['flickr'] = 'URL Flickr';
	return $contactmethods;
/** Contact User Social Networks méthode */
add_filter('user_contactmethods', 'eac_add_hide_profile_fields', 10, 1);

Select the Text Editor widget and the dynamic icon in the upper right corner of the field
Select entry “Author/Author’s social networks
Select the Social Medias in the list
And oberve the result

Text Editor field
Dynamic tags Author
Author Social Networks list
Author Social Networks

Leave a Comment