Title: PM with author
Last modified: August 21, 2016

---

# PM with author

 *  Resolved [Robbie_berns](https://wordpress.org/support/users/robbernsteinzgmailcom/)
 * (@robbernsteinzgmailcom)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pm-with-author/)
 * Is it possible to add to the shortcode the ability to PM with the author of the
   post?
 * Thanks
 * [https://wordpress.org/plugins/front-end-pm/](https://wordpress.org/plugins/front-end-pm/)

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/pm-with-author/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/pm-with-author/page/2/?output_format=md)

 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pm-with-author/#post-4872243)
 * Use following code within loop
    `<a href="'.get_bloginfo("wpurl").'/SLUG-OF-FEP-
   PAGE/?fepaction=newmessage&to=' . the_author_meta("user_login"). '">Send Message
   </a>`
 * Change SLUG-OF-FEP-PAGE with your Front End PM page slug
 *  Thread Starter [Robbie_berns](https://wordpress.org/support/users/robbernsteinzgmailcom/)
 * (@robbernsteinzgmailcom)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pm-with-author/#post-4872285)
 * Works a charm – thank you!
 *  [fuahid](https://wordpress.org/support/users/fuahid/)
 * (@fuahid)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/pm-with-author/#post-4872355)
 * Dear
    Did not work with me in the form required Are taken back to the same article
   link 🙂
 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/pm-with-author/#post-4872359)
 * Can you show me a link?
 *  [fuahid](https://wordpress.org/support/users/fuahid/)
 * (@fuahid)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/pm-with-author/#post-4872360)
 * Thank you now works well
    The code developed in this way
 * [/messages/?fepaction=newmessage&to=<?php the_author_meta(“user_login”);?>>Send Message](https://wordpress.org/support/topic/pm-with-author/<?php)
 * But Can I put it in the comments
    To send a private message to suspended
 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/pm-with-author/#post-4872371)
 * you want to send private message to comment author?
 *  [fuahid](https://wordpress.org/support/users/fuahid/)
 * (@fuahid)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/pm-with-author/#post-4872372)
 * you want to send private message to comment author?
    YES
 * Thank you
 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/pm-with-author/#post-4872373)
 * use
    [code]
 *     ```
       get_comment_author()
       ```
   
 * instead of
 *     ```
       the_author_meta("user_login")
       ```
   
 *  [fuahid](https://wordpress.org/support/users/fuahid/)
 * (@fuahid)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/pm-with-author/#post-4872375)
 * Thank you
    Can I add a title and a link to the Post directly by simply pressing
   a button to send a message
 * Thank you
 *  [tomaask8](https://wordpress.org/support/users/tomaask8/)
 * (@tomaask8)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/pm-with-author/#post-4872376)
 * Hi, I am creating a real estate listing’s page where users can post their properties.
   Can I apply this for my listings pages? Like to have a button or link “Contact
   author” and it automatically opens a new message with the listing author added
   as a recipient?
 * Thank you!
 *  [tomaask8](https://wordpress.org/support/users/tomaask8/)
 * (@tomaask8)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/pm-with-author/#post-4872377)
 * I tried adding this code to my listings page, but it takes me to a search results
   page at the address:
 * [http://mysiteaddress.com/listingname/&#8217](http://mysiteaddress.com/listingname/&#8217);.
   getbloginfo(
 * That’s the code I used was exactly the same as you wrote here, just changed “
   SLUG-OF-FEP-PAGE” to “messages”.
 * My Front End PM page is “messages”.
 * Hope you could help.
 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/pm-with-author/#post-4872378)
 * which code u have used? does not seem that u had used my code because it should
   not be like ur given url.
    have u used within loop? for listing r u using custom
   post type or separate table?
 *  [tomaask8](https://wordpress.org/support/users/tomaask8/)
 * (@tomaask8)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/pm-with-author/#post-4872379)
 * I have used the code you provide above, I use premiumpress so I edit my listings
   page here as shown in this picture: [http://postimg.org/image/3pn0hz409/](http://postimg.org/image/3pn0hz409/)
 * Then it creates this clickable link in listings page: [http://postimg.org/image/9gd6vpc09/](http://postimg.org/image/9gd6vpc09/)
 * And then when I click it, I get here:
 * [http://postimg.org/image/a4m1enaq1/](http://postimg.org/image/a4m1enaq1/)
 * Thank you for your reply, hope these pictures explain my problem.
 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/pm-with-author/#post-4872380)
 * You are using in HTML but my given code is for php thats why this code is not
   rendering. You can use this code in your template file(php file).
 *  [tomaask8](https://wordpress.org/support/users/tomaask8/)
 * (@tomaask8)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/pm-with-author/#post-4872381)
 * Thank you for your reply, I added it in my php file here: [http://postimg.org/image/may5ypgnh/](http://postimg.org/image/may5ypgnh/)
 * but the outcome is exactly the same:
 * -it creates a clickable “Send Message” link
    -when I click it it takes me to 
   the same error page [http://postimg.org/image/a4m1enaq1/](http://postimg.org/image/a4m1enaq1/)
 * I am probably doing something wrong here.

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/pm-with-author/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/pm-with-author/page/2/?output_format=md)

The topic ‘PM with author’ is closed to new replies.

 * ![](https://ps.w.org/front-end-pm/assets/icon-256x256.gif?rev=2309447)
 * [Front End PM](https://wordpress.org/plugins/front-end-pm/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/front-end-pm/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/front-end-pm/)
 * [Active Topics](https://wordpress.org/support/plugin/front-end-pm/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/front-end-pm/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/front-end-pm/reviews/)

 * 23 replies
 * 6 participants
 * Last reply from: [Gabriel](https://wordpress.org/support/users/run-man/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/pm-with-author/page/2/#post-4872426)
 * Status: resolved