• Is there a way to display the already set option as the default first option in the dropdown box? Right now, no matter what i change it to, if i go back to the edit-profile page, the order in which the options are displayed are the order i put them in in the backend (with the plugin).

    Thanks in advance

    https://wordpress.org/plugins/wp-members/

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

    (@cbutlerjr)

    The order of dropdown selections won’t change. However, if the user has selected an option, that option should be what is selected when they view their profile.

    Thread Starter Menno1987

    (@menno1987)

    When i go to my user-profile page, it only shows 2
    <li> links, to change my profile info and reset my password, not what my current user info is.

    Plugin Author Chad Butler

    (@cbutlerjr)

    Sorry – I thought your question was about the order in which the dropdown items display.

    The profile you are referring to can be customized in a couple different ways.

    There is a filter hook wpmem_member_links that allows you to filter the HTML that displays. (These are the
    <li> items you mentioned.) You can use the filter to add to the HTML that displays here or change it (although in this case I would say be careful changing it because you need the links to the update profile and update password forms).

    If what you want is to display user profile information on this screen, you can use a combination of shortcodes for this. I would probably do something like this:

    [wp-members page=user-profile]
    [wpmem_logged_in]
    Your Current User Info:
    Some Field: [wpmem_field field=some_field_name]
    Some Other Field: [wpmem_field field=some_field_name]
    You can edit this information by <a href="http://yoursite.com/this-page/?a=edit">updating your registration info</a>.
    [/wpmem_logged_in]
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to display current dropdown option as first option’ is closed to new replies.