I am currently configuring wordpress with a custom theme and I have the following need for customization:
When I create a blog post it is made with a canonical url like this: domain.com/6-way-to-celebrate-love.
When visitors click the blog post from the frontpage he is redirected to the blog page (singlepost.php) if I am correct?
So far, so good…but:
Instead of being redirected to singlepost.php I want him redirected to a new URL: “domain.com/ref” where a couple parameters are also sent along as GET. In the “ref” folder I have an index.php that will take these parameters:
extURL (custom field in blog post)
title (from the blog post)
The page title of index.php is set to the title parameter and after 5 seconds the user is redirected to extURL.
The reason for the 5 seconds delay is because I want to display a text before redirecting to the external site.
Thanks so much for any help on this!
- The topic ‘Redirect user when clicking a blog post’ is closed to new replies.