Merhaba arkadaşlar, yabancı bir tema kullanıyorum. Temada shortcode olarak aşağıdaki kodlar var. Kısa kodların açıklandığı bir dökümanı olmadığı için mecburen bu kodlar arasından kısa kodları çıkaracağım fakat ben anlamadım hangileri kısa kod Ayrıca bu kısa kodları çıkardıktan sonra nasıl kullanacağımı da bilmiyorum Yardımcı olursanız gerçekten çok sevinirim, iyi forumlar...

/******************************************
/* Shortcodes
******************************************/

/*-----------------------------------------------------------------------------------*//*
/* Fix Shortcodes
/*-----------------------------------------------------------------------------------*/
function wpex_fix_shortcodes($content){   
    $array = array (
        '<p>[' => '[', 
        ']</p>' => ']', 
        ']<br />' => ']'
    );

    $content = strtr($content, $array);
    return $content;
}
add_filter('the_content', 'wpex_fix_shortcodes');

/*-----------------------------------------------------------------------------------*/
/*	Buttons
/*-----------------------------------------------------------------------------------*/
function button_shortcode( $atts, $content = null )
{
	extract( shortcode_atts( array(
      'color' => 'default',
	  'url' => '',
	  'text' => ''
      ), $atts ) );
	  if($url) {
		return '<a href="' . $url . '" class="button ' . $color . '"><span>' . $text . $content . '</span></a>';
	  } else {
		return '<div class="button ' . $color . '"><span>' . $text . $content . '</span></div>';
	}
}
add_shortcode('button', 'button_shortcode');
 
 
 function button_clean_shortcode( $atts, $content = null )
{
	extract( shortcode_atts( array(
	  'url' => '',
	  'text' => ''
      ), $atts ) );
	  if($url) {
		return '<a href="' . $url . '" class="clean-button"><span>' . $text . $content . '</span></a>';
	  } else {
		return '<div class="clean-button"><span>' . $text . $content . '</span></div>';
	}
}
add_shortcode('clean_button', 'button_clean_shortcode');


/*-----------------------------------------------------------------------------------*/
/*	Icons
/*-----------------------------------------------------------------------------------*/
function icon_shortcode( $atts, $content = null )
{
	extract( shortcode_atts( array(
      'type' => 'default',
	  'float' => '',
	  'url' => '',
	  'target' => 'blank'
      ), $atts ) );
	  
	  if($url) {
		return '<a href="' . $url . '" title="'.$type.'"><img class="icon icon-float-'. $float .'"  src="'.get_template_directory_uri().'/images/shortcodes/icons/'. $type .'.png" alt="" /></a>';
	  } else {
		return '<img class="icon icon-float-'. $float .'" src="'.get_template_directory_uri().'/images/shortcodes/icons/'. $type .'.png" alt="" />';
	}
}
add_shortcode('icon', 'icon_shortcode');