Title: [Plugin: AmR Users] use php code in &quot;before&quot; and &quot;after&quot;
Last modified: August 19, 2016

---

# [Plugin: AmR Users] use php code in "before" and "after"

 *  [Geoff](https://wordpress.org/support/users/jlsniu/)
 * (@jlsniu)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-amr-users-use-php-code-in-before-and-after/)
 * I’m trying to add a link to the user’s author page, which is dynamic. When I 
   try putting in the phpcode to call the author link, I get something like /wp-
   admin/%3C?php instead of the actual author link.
 * Anyway to accomplish this?
 * [http://wordpress.org/extend/plugins/amr-users/](http://wordpress.org/extend/plugins/amr-users/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [anmari](https://wordpress.org/support/users/anmari/)
 * (@anmari)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-amr-users-use-php-code-in-before-and-after/#post-1730819)
 * I haven’t allowed for php code in the fields – only selected html.
 * At the moment the links are fixed at:
    - a username has a link to the edit profile page,
    - the email has a mailto link
    - the user url (from the user profile) is exactly that
 * In the brewing update mentioned in other post, there is a plan to allow one to
   specify the sort of link that one needs for a field from within a predefined 
   list eg: for user related fields there is
    – the edit link, – the mailto link–
   the author archive link – possibly a comments by that author page? – the url 
   in the user profile if it exists
 * When you say the users author page – do you mean the author archive of posts 
   or the edit author profile page or something else?
 *  [carblanco](https://wordpress.org/support/users/carblanco/)
 * (@carblanco)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-amr-users-use-php-code-in-before-and-after/#post-1731054)
 * Hi all,
 * I’m showing a list using some s2member custom field, company_name.
    I’d like 
   to link this company_name to the complete company form (with address, phone, 
   email, etc.) but I don’t see the way, is it possible?
 * Maybe using the before and after with something like:
    Field name: Company Name
   Display order: 1 Before: `<a href="***code***">` After: `</a>`
 * Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: AmR Users] use php code in "before" and "after"’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/amr-users_f6f6f4.svg)
 * [amr users](https://wordpress.org/plugins/amr-users/)
 * [Support Threads](https://wordpress.org/support/plugin/amr-users/)
 * [Active Topics](https://wordpress.org/support/plugin/amr-users/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amr-users/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amr-users/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [carblanco](https://wordpress.org/support/users/carblanco/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-amr-users-use-php-code-in-before-and-after/#post-1731054)
 * Status: not resolved