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

How to add homepage Widget?

I’ve had good luck with the Widget Logic plugin. It lets you use template-style logic for each widget. It’s not quite the same as adding a whole new admin page just for conditional widgets (you would need to create and register a new sidebar, etc), but it’s great for the quick-and-dirty ‘get it in there … Read more

PHP $_session is not work in wordpress

Yes, you must use a small change for use session in WordPress. if ( ! session_id() ) session_start(); Better you use a custom function function my_start_session() { @session_cache_limiter(‘private, must-revalidate’); //private_no_expire @session_cache_expire(0); @session_start(); } *Please edit, I write from a mobile