Embedding BitBucket Code in Posting
Here try the below code, it should give you a good start. // requrires 3 arguments // user, project, path // usage e.g: [bitbucket user=”jespern” project=”django-piston” path=”piston/utils.py”] function bitbucket_code( $atts ) { extract( $atts ); global $post; $path_to_name = str_replace(“https://wordpress.stackexchange.com/”, “_”, $path); $meta_key = “bitbucket_{$user}_{$project}_{$path_to_name}”; $code = get_post_meta( $post->ID, $meta_key, true ); if ( !$code … Read more