Make an id from a link transfer to value on a page? e.g web.com.au/?ID=123 (1 post)

  1. Dandydahlia
    Posted 2 years ago #


    I'm a bit of a newbie and I'd really love any help.

    I've got a profile site for different people that contains a custom field for each profile page (using wpcf-email)

    When a visitor clicks on a "contact profile" link it takes them to a form e.g web.com.au/contact-profile/?ID=123

    Can someone please point me in the right direction on how to do a function to make the ID actually pull the value of the profiles wpcf-email link?

    I read that "The function you write will be hooked to this filter and can look up the ID from the wpcf fields, and return the email address. " but I can't work out how to set this up?

    I tried

    add_filter("gform_field_value_wpcf-email", "populate_wpcf-email");
    function populate_email($value){
     return get_post_meta( $value, "wpcf-email", true);

    but that didn't work.

    I'd love any help :)

Topic Closed

This topic has been closed to new replies.

About this Topic