• We have added a person-id as custom user field to each WP user. Showing that field works well for visible content by using the shortcode [user_custom_field field=”persid” /]
    But this shortcode does not resolve if we want to use this field for creating a link like this:
    <a href="http://www.example.com/person/[user_custom_field field="persid" /]">www.example.com/person/[user_custom_field field="persid" /]</a>
    The visible link shows the person-id correctly but the href URL is http://www.example.com/person/%5Buser_custom_field%20field=(there the URL stops)

    https://wordpress.org/plugins/get-user-custom-field-values/

  • The topic ‘Shortcode does not resolve inside links’ is closed to new replies.