• This must be the easiest custom fields plugin I have ever used. thank you.

    I am looking for a way to return the current page URL, rather than a hard coded value. I would like to pass this value as a return after login, to a membership script.

    I don’t think the plugin does this right now. I wonder, could I please ask you to consider such a feature for an upcoming release?

    Kind regards
    james

    https://www.ads-software.com/plugins/custom-content-shortcode/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    ..to pass this value as a return after login, to a membership script

    Is this membership script in PHP? If so, you can pass the result of a shortcode in a variable.

    $current_url = do_shortcode('[field url]');
    membership_script( $current_url );

    ..or directly:

    membership_script( do_shortcode('[field url]') );

    If the membership script is a shortcode and you would like to pass the current page URL as a parameter:

    [pass field="url"]
      [membership parameter="{FIELD}"]
    [/pass]
    Thread Starter jameswilliams90

    (@jameswilliams90)

    Thanks Eliot, I think this helps. I will give it a try.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Url current page value’ is closed to new replies.