Support

Home Forums Event Espresso Premium Single Event shortcode problem

Single Event shortcode problem

Posted: September 17, 2013 at 8:07 am

Viewing 5 reply threads


Hansteen

September 17, 2013 at 8:07 am

When I use the shortcode for a single event, I get the following message:

“We are sorry but this event has reached the maximum number of attendees!
Please check back in the event someone cancels.
Current Number of Attendees: 0”
The attendee limit is 999999 and it is an active event, so I’m not sure what is causing this message.


Josh

  • Support Staff

September 17, 2013 at 1:01 pm

Hi there,

Is this a stock version of the registration_page.php template file that is in use?


Hansteen

September 17, 2013 at 1:10 pm

No, I added the following lines:

<code>&lt;div class=&quot;event-venue&quot;&gt;
    &lt;p&gt;&lt;strong&gt;&lt;?php echo do_shortcode(&#039;[CATEGORY_NAME event_id=&quot;&#039;.$event_id.&#039;&quot;]&#039;); ?&gt;&lt;/strong&gt;&lt;/p&gt;
    &lt;p&gt;&lt;strong&gt;Kurssipaikka: &lt;?php echo $venue_title; ?&gt;&lt;/strong&gt;&lt;/p&gt;
 &lt;/div&gt; &lt;!-- end .event-venue --&gt;</code>

However, I tried deleting the custom template and I still get the same errors.


Hansteen

September 17, 2013 at 1:12 pm

I’ll try again with that added code:
<pre class=”brush: html; gutter: true; first-line: 1; highlight: []; html-script: false”>
<div class="event-venue">
<p><?php echo do_shortcode('[CATEGORY_NAME event_id="'.$event_id.'"]'); ?></p>
<p>Kurssipaikka: <?php echo $venue_title; ?></p>
</div> <!– end .event-venue –>


Josh

  • Support Staff

September 17, 2013 at 1:56 pm

If you go to the standard event registration form via the “view” link in the Event Overview does the event display as expected?

I’m wondering if the event’s $reg_limit is not getting passed to the template where it does the check on line 236 of registration_display.php.


Hansteen

September 17, 2013 at 2:24 pm

I tried with another event and it was working fine, so I’ll try creating the event again and see if that works.

Viewing 5 reply threads

The support post ‘Single Event shortcode problem’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso