WordPress.org

Ready to get started?Download WordPress

Forums

User meta shortcodes
Shortcode with href link (3 posts)

  1. boluo33
    Member
    Posted 1 year ago #

    How can I use a shortcode with an href link so that it links to a specific page for each user?

    I've set up a custom meta entitled user_page and my shortcode is thus [authorinfo field="user_page"]. I want users to be able to click this link on their account page and be taken to an individual product page on my site using the url I've added to their profile. However, I'm struggling to link it up and make it clickable.

    Any advice would be much appreciated.

    Paul

    http://wordpress.org/extend/plugins/user-meta-shortcodes/

  2. boluo33
    Member
    Posted 1 year ago #

    Solved:

    http://www.mykindofchic.com/product-tag/{userinfo nospan='true' field='user_login'}

    Take care to use ' ' and not " "

    and [] not {}

  3. Richard Vencu
    Member
    Plugin Author

    Posted 1 year ago #

    Indeed. Thank you for posting it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic