• NewLifestyleMentor

    (@newlifestylementor)


    Guys & Gals,

    I am using the TwentyEleven theme, and would like to pass a variable (called “refid”) to a static page (called “Welcome”). I’ve got the basic HTML coded for that page in my pages section.

    How do I get the “Welcome” page to parse the value being passed into WordPress via the URL (eg. https://www.myurl.com/?refid=somevalue)?

    After the value is parsed into the “Welcome” page, I would like it to do an “a href” like this:

    https://(value passed into ‘refid’).GoToSomeOtherURL.com

    Your help here would be greatly appreciated!

    Sincerely,

    Greg Granger

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi

    (@esmi)

    Is this Welcome page also in WordPress? I assume you are using a child theme, yes?

    Thread Starter NewLifestyleMentor

    (@newlifestylementor)

    Yes, the “Welcome” page is in WordPress … in my “pages” section.

    esmi

    (@esmi)

    Where is refid coming from?

    Thread Starter NewLifestyleMentor

    (@newlifestylementor)

    refid is the variable that I want to pass into the WordPress static page, and display is as part of a URL (i.e. refid.GoToSomeOtherURL.com).

    esmi

    (@esmi)

    Yes, I understand that. But where will it be added/come from?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Passing parameters via URL -> static page’ is closed to new replies.