Form Shortcode Home › Forums › Front End PM PRO › Form Shortcode Search for: This topic is: Resolved This topic has 1 reply, 2 voices, and was last updated 10 months, 3 weeks ago by shamim. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts January 3, 2020 at 3:22 am #32774 Larry CottleParticipant Hello, The form shortcode works as expected. With that said the form shortcode will not work on one single page. Message error; “You cannot send message to”. I traced the message in your code to file: class-fep-shortcodes.php line 110. Which is wrapped with ! fep_current_user_can( ‘send_new_message_to’, $to_id ). I commented out that condition which triggered another Message error; ” You do not have permission to send message to this receiver! So, I traced that message to file: form-shortcode-message.php. line 9. Which is wrapped with ! fep_current_user_can( ‘send_new_message_to’, $to_id ). I commented out that condition and the form came up. Here is my shortcode; [fep_shortcode_new_message_form to=”‘ . $store_user->get_id() . ‘” subject=”test”] I submitted a message and received the following errors; Error: Invalid receiver “2”. Error: You must enter a valid recipient! Again, The form shortcode works fine everywhere accept this one page. I’m thinking that form shortcode is looking at a different slug????? This one page has custom url rewrite: mysite.com/merchant/author-name Where merchant = ‘slug’ and author-name = whichever store name gets clicked on if you can direct me as to what the problem could be and how I can get this form shortcode to work on this page would be appreciated. Thank You. Good Day. January 3, 2020 at 2:02 pm #32804 shamimKeymaster Please see https://www.shamimsplugins.com/docs/front-end-pm/shortcode/fep_shortcode_new_message_form/ I think your $store_user->get_id() return user id, But “to” field allow user_nicename. So you can pass user_nicename. You can get user_nicename from id using like fep_get_userdata( $store_user->get_id(), 'user_nicename', 'id' ) Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You need to purchase ‘Front End PM PRO’ to create topic in this support forum. If you already purchased ‘Front End PM PRO’ please LOGIN.