• Resolved Bam Bam

    (@bam-bam)


    Hi,

    I have been trying to implement a members section on a clients site I built, so far everything seems to do as it was intended.

    Outside of the Membership plugin there will be a Password Protected page with personal data and I have added a field to the Members Details for them to paste the url for their data page so they don’t need to remember it, as there won’t be a link anywhere else.

    I am wondering if it is possible to add a link to the url automatically when it is pasted into that field, so that once added and saved, it can be clicked to go off to their data page.

    While I’m asking questions, can each member view his details without going to the edit details screen ??

    Kindest regards
    Bam Bam

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    If you display a field using the [wpmem_field] shortcode, you can apply the attribute “clickable” to make the result clickable (assuming it’s either a URL or an email address):

    [wpmem_field some_custom_field clickable=”true”]

    For more info on this shortcode see: https://rocketgeek.com/plugins/wp-members/docs/shortcodes/field-shortcodes/

    While I’m asking questions, can each member view his details without going to the edit details screen ??

    You can use the [wpmem_form user_edit] shortcode to display just the data update form (instead of using the user profile). However, you do need to apply the [wpmem_logged_in], and ideally also some logged out content with [wpmem_logged_out] shortcodes as well. Otherwise, you’ll just display the empty form to logged out users. See: https://rocketgeek.com/plugins/wp-members/docs/shortcodes/form/#user_edit

    Thread Starter Bam Bam

    (@bam-bam)

    Thanks for the reply, I shall have a play around with that.

    Kindest Regards
    Bam Bam

    Thread Starter Bam Bam

    (@bam-bam)

    I shouldn’t have jumped the gun and marked this as resolved, the shortcode solution is not really what I was looking for and doesn’t seem to do what I want to achieve anyway.

    Is there a php solution I could add to functions.php to make the field a clickable url ??

    The Field Label is: Your Personal Body Data Page
    The Meta Key is: body_data_page
    Field Type: url

    Regards
    Bam Bam

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add a url link to a custom field’ is closed to new replies.