I hereby claim:
- I am stefangrund on github.
- I am eay (https://keybase.io/eay) on keybase.
- I have a public key whose fingerprint is FF58 9293 268A 801D 5528 89FA 07F1 3A3F C8EA A54F
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Create an ongoing CSV file with people/views from your Gaug.es Analytics. Works perfectly with Panic's Status Board.
<?php | |
//Get first image in post | |
function firstImage() { | |
global $post, $posts; | |
$first_img = ''; | |
ob_start(); | |
ob_end_clean(); | |
$content = do_shortcode( $post->post_content ); | |
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $content, $matches); | |
$first_img = $matches [1] [0]; |