SHARE
TWEET

Wordpress custom image linking within <li> element

Lanti Jan 4th, 2013 68 Never
  1. add_filter('get_image_tag', 'lanti_get_image_tag', 10/*prio*/, 6/*number of arguments*/);
  2. function lanti_get_image_tag($html, $id, $alt, $title, $align, $size)
  3. {
  4.         $elotte = '<li>';
  5.         $utana = '</li>';
  6.         $html = $elotte . $html . $utana;
  7.         return $html;
  8. }
RAW Paste Data
Top