Skip to content

Instantly share code, notes, and snippets.

@sumanahmed
Created January 8, 2016 06:24
Show Gist options
  • Save sumanahmed/5c884b8c527ec05121d9 to your computer and use it in GitHub Desktop.
Save sumanahmed/5c884b8c527ec05121d9 to your computer and use it in GitHub Desktop.
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