• i have a custom post type for some events. i want to be able to use a custom field for the source url and the destination url to give people easy access to our promotional materials. so i have pairs of fields like flyer_printable and flyer_printable_redirect that i want to function as a redirect so let’s say the content for flyer_printable was ‘/spring-flyer/’ and the contents of the flyer_printable_redirect is ‘https://mysite.com/downloads/spring-flyer.pdf’, is it possible with your plugin to enable a redirect this way such that when someone goes to https://mysite.com/spring-flyer/ it will redirect them to the pdf?

    i found this support note, but wasn’t sure if what i want to do will work….

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback, and sorry for the late answer.

    Unfortunately this feature is not included in this plugin. You’ll have to code it yourself.

    You can use the template_redirect hook (see documentation) in order to redirect a post to some custom page or PDF. You’ll find a usage example in the documentation, which does redirect a page into an another one. You can adapt it to use your ACF Field and redirect into your PDF.

    If you need further assistance with this hook you can open a topic on the WP Developer Support here. There’s a lot of experienced developers that can help you with this issue.

    Hope it helps!

    Have a nice day!

    Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘pre-sales question: redirection’ is closed to new replies.