i use link shortcode on my template functions.php like this,
function post_link_shortcode( $atts ) {
// Attributes
extract( shortcode_atts(
array(
'id' => '',
'kelime' => '',
), $atts )
);
// Code
if ( isset( $id ) ) {
return '<a target="_blank" rel="nofollow" href="' . $id . '"> <strong>' .$kelime . '</strong></a>';
}
}
add_shortcode( 'link', 'post_link_shortcode' );
Usage : [link id="someurl.com" kelime="link title"]
could we change this like; [link|someurl.com|link title]
is that possible ? than how ? thanks.