Created
January 8, 2016 06:24
-
-
Save sumanahmed/5c884b8c527ec05121d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dynamic_add_linking($atts, $content=null){ | |
extract(shortcode_atts(array( | |
'link' => '', | |
'img' => '', | |
'title' => '', | |
), $atts, 'ads') ); | |
return '<a href=""><img src="'.$img.'" alt="" /></a>'; | |
} | |
add_shortcode('ads', 'dynamic_add_linking'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment