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

get facebook status

There is no real “easy” way to do it anymore, due to Facebook’s requirements for an application and an access token and OAuth and so on. The latest version of my Simple Facebook Connect plugin has a working User Status Widget in the widgets module. It can display the latest status for a user in … Read more

how to use Easy Docs theme to write a book?

not sure if you watched the video on their site, because that seems pretty self-explanatory (especially from 1:18 onwards) It also says clearly on the site that it is a one page and very basic theme: a page for documentation with a simple way to navigate between sections, and a basic page template for simple … Read more

How to restrict posts only from a certain category

try this: <?php //first check if its the category in question if ($cat == ‘1’) { //then if the user is logged in show the content if (is_user_logged_in()){ the_content(); }else{ //if not show the excerpt the_excerpt(); } }else{ // and if its not the category show the content the_content(); } ?> Update Judging by your … Read more