Forum

Thread tagged as: Question

events display on any existing page

Can I use events to display a simple event info on any page. I want to use : <div class="vevent"> <h2 class="summary"><perch:events id="eventTitle" /></h2>

<p class="dtstart"><span class="value-title" title="<perch:events id="eventDateTime" format="c" />"><perch:events id="eventDateTime" format="%c" /></span></p>

<div class="description"><perch:events id="eventDescHTML" type="textarea" textile="true" editor="markitup" encode="false" /></div>

<p class="category"><perch:events id="category_names" encode="false" /></p>

<perch:if exists="image">
    <img src="<perch:events id="image" type="image" label="Image" width="640" crop="true" />" alt="<perch:events id="eventTitle" />" />
</perch:if>

</div> To display the output of events. How do I call this from my php page? I tried <?php perch_events_listing(); ?> but it doesn't seem to work. I must be missing something. Any suggestions, thanks

Ian Gordon

Ian Gordon 1 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You can use perch_events_custom() to display the details of one or more events.