i have create a redir.php and placed in the home directory to do the redirect. I want to pass in the post id and then retrieve a custom field value of the post and feed to header('location:'.$url);
this is what I have, but it's not working. It gives me "Parse error: parse error in \redir.php on line 5"
<?php require('./wp-blog-header.php'); echo $id = $_GET['id']; echo $yes_price = get_field('deal_http_link',post->$id); /* header('Location:'.$id);*/ ?>