Plugin Author
anmari
(@anmari)
ok I think understand the request.
Plugin doesn’t currently facilitate adding a name or id using surname. One of the challenges in offering say a surname based anchor is that for html verification the anchor name= or id= must be unique on the page. There is no guarantee of that – imagine two ‘smiths’ – probably the second one may never be linked/jumped to. I could look at adding an name or id anchor for each record, but as I said it would have to be on a unique field such as ID or username. Hmm but how would that work with pagination? I see in your example you are probably showing all records.
In the interim, consider one of the following:
1) use alphabetical navigation eg:
https://directories.wpusersplugin.com/alpha-nav-list/ or https://directories.wpusersplugin.com/alpha-nav-list/list-with-alpha-nav2/ or
2) have a concise list of maybe just names with a link (by unique ID?) – similar to way list 1 can be setup to link to list 2 where list 2 has more detail.
eg: https://directories.wpusersplugin.com/simple-user-list/ See
https://wpusersplugin.com/3422/link-from-user-directory-to-user-detail-or-profile/, or
https://wpusersplugin.com/2860/adding-a-link-to-user-list-field/
Of course the above then only show that one record after selection, not a ‘deep’ link within a full list.
Plugin Author
anmari
(@anmari)
Also supposed to use ID not name
https://stackoverflow.com/questions/16974480/if-a-name-is-obsolete-what-is-preferred
Alpha nav can be customised to use more than 1 character and for any chosen field and with any set of characters, but since your list is not that long, maybe 1 character enough. Links would be something like
https://directories.wpusersplugin.com/alpha-nav-list/?filter=last_name&index=M
Thread Starter
Anonymous User 8639124
(@anonymized-8639124)
Just to clarify, I’m indeed talking about using the username for the <a id=…. So if by any chance you can point me to the file or line where I could add some code to output <a id="username"></a> and/or how I’d grab the username in a variable, I think I can make the change myself.
Plugin Author
anmari
(@anmari)
See either linktype posts as linked to in the response above OR
https://wpusersplugin.com/2645/format-any-field-any-way-you-wish/
please use a separate site specific plugin – it is better practice as you can then still apply updates to the main plugin.