Answers.Body: <p>If you use the WP plugin Ajax event calendar you can put your events into categories, and use a shortcode to list all events of a given category on a page or post..</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-18T03:32:05.913Z
Answers.LastActivityDate: 2015-07-18T03:32:05.913Z
Answers.UserDisplayName: Lesley Evensen
Answers.Body: <p>This was an issue prior to 4.6--you couldn't have more than one instance of CiviCRM content on a screen.  Christian Wach did a lot of work to change this for 4.6--that's why he was asking what version you're on.</p>
  
  <p>In short, if you're not on 4.6, upgrade.  If you are, you may have found a bug.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-20T08:34:53.683Z
Answers.Text: Awesome, that's just what I wanted to hear, thanks! :)
Answers.UserDisplayName: Scott
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-21T12:49:06.743Z
Answers.Text: I couldn't becase it was marked as on hold. Will do so now =]
Answers.UserDisplayName: Scott
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-19T19:38:44.557Z
Answers.LastActivityDate: 2015-07-19T19:38:44.557Z
Answers.UserDisplayName: Andie Hunt
Body: <p>So I would like to use the CiviCRM events in wordpress, in a page listing multiple events, using the shortcodes. If I create a page in wordpress with the following: </p>
  
  <pre><code>[civicrm component="event" id="584" action="info" mode="live"]
  </code></pre>
  
  <p>It is fine, it will display the single event. However, if i was to add another event into the page, it doesn't display. Ideally I would like to use this shortcode inside of Advanced Custom Fields. The reason for doing this is we need to display only certain events for a page which members are logged in to view.</p>
  
  <pre><code>&lt;?php 
  
  if( have_rows('events') ): ?&gt;
  
      &lt;ul&gt;                 
          &lt;?php while( have_rows('events') ): the_row(); ?&gt;
              &lt;li&gt;&lt;?php var_dump(get_sub_field('event')); ?&gt;&lt;/li&gt;         
          &lt;?php endwhile; ?&gt;
      &lt;/ul&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>The vardump above literally returns null. Any ideas how I can do this. I am aware of the civievent wiget but that lists all events that are upcoming.</p>
  
  <p>Just to clarify this is for civicrm 4.5.4. Cheers.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-17T17:29:05.603Z
Comments.Text: Which version of Civi are you using?
Comments.UserDisplayName: Christian Wach
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-07-19T16:56:08.527Z
Comments.Text: Please edit your question to specify civicrm version - that's a crucial detail.
Comments.UserDisplayName: Coleman
Tags: <civievent><wordpress>
Title: Listing events in wordpress
ThreadText: # Listing events in wordpress
  
  (Asked by: username_0 on 2015-07-17)
  
  So I would like to use the CiviCRM events in wordpress, in a page listing multiple events, using the shortcodes. If I create a page in wordpress with the following:
  
  ```
  [civicrm component="event" id="584" action="info" mode="live"]
  
  ```
  
  It is fine, it will display the single event. However, if i was to add another event into the page, it doesn't display. Ideally I would like to use this shortcode inside of Advanced Custom Fields. The reason for doing this is we need to display only certain events for a page which members are logged in to view.
  
  ```
  <?php 
  
  if( have_rows('events') ): ?>
  
      <ul>                 
          <?php while( have_rows('events') ): the_row(); ?>
              <li><?php var_dump(get_sub_field('event')); ?></li>         
          <?php endwhile; ?>
      </ul>
  <?php endif; ?>
  
  ```
  
  The vardump above literally returns null. Any ideas how I can do this. I am aware of the civievent wiget but that lists all events that are upcoming.
  
  Just to clarify this is for civicrm 4.5.4. Cheers.
  
  **Tags:** civievent, wordpress
  
  > **Comments:**
  > **username_1**: Which version of Civi are you using?  
  > **username_2**: Please edit your question to specify civicrm version - that's a crucial detail.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_4 on 2015-07-19. Score: 5 | Accepted answer
  
  This was an issue prior to 4.6--you couldn't have more than one instance of CiviCRM content on a screen. username_1 did a lot of work to change this for 4.6--that's why he was asking what version you're on.
  
  In short, if you're not on 4.6, upgrade. If you are, you may have found a bug.
  
  > **Comments:**
  > **username_0**: Awesome, that's just what I wanted to hear, thanks! :)  
  > **username_0**: I couldn't becase it was marked as on hold. Will do so now =]  
  
  ---
  
  ### Answer by username_3 on 2015-07-18. Score: 1
  
  If you use the WP plugin Ajax event calendar you can put your events into categories, and use a shortcode to list all events of a given category on a page or post..
  
  
  ---
  
  