Answers.Body: <p>Going by the <a href="https://github.com/civicrm/civicrm-wordpress/blob/master/includes/civicrm.shortcodes.php#L560" rel="nofollow noreferrer">shortcode function</a>, there are five possible ways to use the shortcode.</p>
  
  <p>Technically there's only one shortcode used (<code>[civicrm]</code>) but it uses the <code>component</code> attribute to switch between different content.</p>
  
  <p>The five possible components are:</p>
  
  <ul>
  <li><p><strong>Contribution</strong>: <code>[civicrm component="contribution" id="x"]</code></p>
  
  <p>shows a contribution page specified by the <code>id</code> attribute.</p></li>
  <li><p><strong>Event</strong>: <code>[civicrm component="event" action="register" id="x"]</code> and <code>[civicrm component="event" action="info" id="x"]</code></p>
  
  <p>shows either a registration or information page for the event specified by the <code>id</code> attribute.</p></li>
  <li><p><strong>User dashboard</strong>: <code>[civicrm component="user-dashboard"]</code></p>
  
  <p>shows the current user's dashboard page</p></li>
  <li><p><strong>Profile</strong>: <code>[civicrm component="profile" mode="y" gid="x"]</code></p>
  
  <p>shows a page for displaying a user's profile. This can be one of 4 modes - edit, view, create or search. The default is create. The <code>gid</code> attribute selects which profile group is displayed.</p></li>
  <li><p><strong>Petition</strong>: <code>[civicrm component="petition" id="x"]</code></p>
  
  <p>displays a petition form specified by the <code>id</code> attribute.</p></li>
  </ul>
  
  <p>In addition, any of these can specify a <code>hijack</code> option and they will replace all other content on that page rather than being display inline. This looks like <code>hijack="1"</code>. A <code>force</code> attribute is mentioned in the code but I'm not clear what it does.</p>
  
  <p>force=1 means it will display the table, force=0 means it will display the search box for the table and you will see the results of the search for the table after you search</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-01-01T17:36:58.743Z
Answers.Text: More details are available in the SysAdmin Guide: https://docs.civicrm.org/sysadmin/en/latest/integration/wordpress/#using-shortcodes-to-publish-civicrm-content-in-wordpress
Answers.UserDisplayName: William Mortada
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2016-07-31T00:05:16.873Z
Answers.LastActivityDate: 2019-10-11T16:04:12.657Z
Answers.LastEditDate: 2019-10-11T16:04:12.657Z
Answers.UserDisplayName: drkane
Body: <p>Is there some list of shortcodes and shortcode modifiers for CiviCRM with Wordpress?</p>
  
  <p>I have put a Civi Profile on a WP page, but I am hoping to hide its title and just use the form fields, but I can't find any documentation on whether this is possible or not.</p>
  
Tags: <wordpress>
Title: Is there a list of CiviCRM shortcodes for Wordpress?
ThreadText: # Is there a list of CiviCRM shortcodes for Wordpress?
  
  (Asked by: username_0 on 2015-09-21)
  
  Is there some list of shortcodes and shortcode modifiers for CiviCRM with Wordpress?
  
  I have put a Civi Profile on a WP page, but I am hoping to hide its title and just use the form fields, but I can't find any documentation on whether this is possible or not.
  
  **Tags:** wordpress
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-07-31. Score: 10
  
  Going by the [shortcode function](https://github.com/civicrm/civicrm-wordpress/blob/master/includes/civicrm.shortcodes.php#L560), there are five possible ways to use the shortcode.
  
  Technically there's only one shortcode used (`[civicrm]`) but it uses the `component` attribute to switch between different content.
  
  The five possible components are:
  
  * **Contribution**: `[civicrm component="contribution" id="x"]`
  
    shows a contribution page specified by the `id` attribute.
  * **Event**: `[civicrm component="event" action="register" id="x"]` and `[civicrm component="event" action="info" id="x"]`
  
    shows either a registration or information page for the event specified by the `id` attribute.
  * **User dashboard**: `[civicrm component="user-dashboard"]`
  
    shows the current user's dashboard page
  * **Profile**: `[civicrm component="profile" mode="y" gid="x"]`
  
    shows a page for displaying a user's profile. This can be one of 4 modes - edit, view, create or search. The default is create. The `gid` attribute selects which profile group is displayed.
  * **Petition**: `[civicrm component="petition" id="x"]`
  
    displays a petition form specified by the `id` attribute.
  
  In addition, any of these can specify a `hijack` option and they will replace all other content on that page rather than being display inline. This looks like `hijack="1"`. A `force` attribute is mentioned in the code but I'm not clear what it does.
  
  force=1 means it will display the table, force=0 means it will display the search box for the table and you will see the results of the search for the table after you search
  
  > **Comments:**
  > **username_2**: More details are available in the SysAdmin Guide: https://docs.civicrm.org/sysadmin/en/latest/integration/wordpress/#using-shortcodes-to-publish-civicrm-content-in-wordpress  
  
  ---
  
  