'', 'number_per_page_listly' => '', ), $atts ) ); // Each user of List.ly is registered internally with three digit code(for example '6Ri') // As every URL of list starts in the same manner, it is pretty common how to get this code $listly_user_code = $url[20].$url[21].$url[22]; // Setting the code that this shortcode will output // Variable $number_per_page_listly is used to give the user option to set number of items per page // The button in TinyMCE editor will output [listly_shortcode url="" number_per_page_listly="12"] which is set in shortcode.js $end_data = "
"; return $end_data; } add_shortcode( 'listly_shortcode', 'listly_shortcode_function' );