Menu

download

[insert_php]
if(isset($_POST[‘postid’])){
$count = get_post_meta ( $_POST[‘postid’], ‘counter’,true );
$count = $count + 1;
update_post_meta($_POST[‘postid’], ‘counter’, $count);
$url = get_post_meta ($_POST[‘postid’], ‘download_url’,true);
header(‘Location: ‘.$url);
}
[/insert_php]