Home › Forums › General Issues › Use Custom field to show an article › Reply To: Use Custom field to show an article
Hi @hummelmose
Firstly, when you view the page in quesiton, you will run the page.php template in your theme.
Edit this template file and add some code like so:
$url = get_field('old_article_id');
var_dump( $url );
Do you see your url? If so, you can easily redirect via PHP. WP even has a function called wp_redirect I believe
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.