Answers.Body: <p>In my experience with using profiles on Wordpress sites, where the profile is presented via a shortcode, is that when the form is submitted the user does not get presented with the default text statement alluded to in the help message about their contact information having been submitted, but is instead just presented with the page again. Worse than this, the profile isn't shown to the user, but they see the shortcode in all its ugly unhelpfulness.</p>
  <p>The workaround that I've implemented is to ensure in the profile settings that a redirect URL is set, pointing to a nice thank-you page.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-18T16:06:25.207Z
Answers.LastActivityDate: 2021-03-18T16:06:25.207Z
Answers.UserDisplayName: Graham
Body: <p>I have a profile form that logged-in users can fill in. When the form is submitted what should happen, as far as I'm aware, is the profile should get redisplayed along with a message to confirm to the user that their contact information has been submitted.</p>
  <p>What is actually happening is that the user is shown the page with just the shortcode displayed - [civicrm component=”profile” mode=”edit” gid=”28″] - and no confirmation message.</p>
  <p>The URL is <a href="https://example.com/application-form/?civiwp=CiviCRM&amp;q=civicrm%2Fprofile%2Fview&amp;reset=1&amp;id=102&amp;gid=28" rel="nofollow noreferrer">https://example.com/application-form/?civiwp=CiviCRM&amp;q=civicrm%2Fprofile%2Fview&amp;reset=1&amp;id=102&amp;gid=28</a></p>
  <p>Nothing in the browser console.</p>
  <p>WP: 5.5.3, Civi: 5.31.1.</p>
  
Tags: <wordpress><profile>
Title: Why is WP displaying a shortcode to end users upon profile submission?
ThreadText: # Why is WP displaying a shortcode to end users upon profile submission?
  
  (Asked by: username_0 on 2020-12-04)
  
  I have a profile form that logged-in users can fill in. When the form is submitted what should happen, as far as I'm aware, is the profile should get redisplayed along with a message to confirm to the user that their contact information has been submitted.
  
  What is actually happening is that the user is shown the page with just the shortcode displayed - [civicrm component=”profile” mode=”edit” gid=”28″] - and no confirmation message.
  
  The URL is <https://example.com/application-form/?civiwp=CiviCRM&q=civicrm%2Fprofile%2Fview&reset=1&id=102&gid=28>
  
  Nothing in the browser console.
  
  WP: 5.5.3, Civi: 5.31.1.
  
  **Tags:** wordpress, profile
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2021-03-18. Score: 1
  
  In my experience with using profiles on Wordpress sites, where the profile is presented via a shortcode, is that when the form is submitted the user does not get presented with the default text statement alluded to in the help message about their contact information having been submitted, but is instead just presented with the page again. Worse than this, the profile isn't shown to the user, but they see the shortcode in all its ugly unhelpfulness.
  
  The workaround that I've implemented is to ensure in the profile settings that a redirect URL is set, pointing to a nice thank-you page.
  
  
  ---
  
  