Support

Home Forums Event Espresso Premium Event List Description Length

Event List Description Length

Posted: June 24, 2013 at 5:28 pm


Leviathan

June 24, 2013 at 5:28 pm

Hello,

I am showing all my events in a list (event_list_table.php) and each event is linked to it’s own page/buy tickets page (registration_page_display.php).  Both files are modified to integrate with my WordPress theme.

The EVENT DESCRIPTION field on the Event Overview/Add Event page is naturally generating the full description on the event listing page, showing the event title, description, link to event page/buy tickets page.

What I want to do is have the first paragraph of the description displayed on the event listing page and the rest displayed on the event page itself.  I fill out the description with say 100 words about the event which is too much info to display on the event list.

I thought I might be able to use the More Break feature in WordPress to trim down the full description to make this work but sadly it didn’t work and the full description is still displayed on the event listing.

Is there some way I can do this?

Thanks,

Tom


Josh

  • Support Staff

June 24, 2013 at 5:44 pm

Hi there,

The more tag feature will get applied to the event description in the event list if the following setting is set to Yes in Event Espresso>Template settings:

Display short descriptions in the event listings?
Be sure to use the “More…” tag in your event description


Leviathan

June 24, 2013 at 5:54 pm

Thanks for the response Josh – I totally missed that option!

I just turned it on and tried out the more tag again and it seems it doesn’t make any difference?

For example:

<blockquote><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>

<p><!–more–></p>

<p> Nulla tristique, augue at hendrerit dapibus, elit lectus fermentum quam, commodo fermentum dui nisi id turpis. Nulla ac sodales ante. Aenean nulla orci, auctor eget neque id, viverra mollis lectus. Donec eget massa lectus. Nulla interdum leo velit, at egestas mauris pulvinar nec.  </p></blockquote>

This still shows the full text in the listing?


Josh

  • Support Staff

June 24, 2013 at 7:22 pm

You might be on an older version of Event Espresso or the event_list_display.php file was customized so that it doesn’t include the lines that add the formatted description:

<div class="event-desc">
  <?php echo espresso_format_content($event_desc); ?>
</div>


Leviathan

June 24, 2013 at 8:00 pm

The following is present in event_list_display.php and I am using the latest version of EE:

<?php

//Show short descriptions

if (!empty($event_desc) && isset($org_options[‘display_short_description_in_event_list’]) && $org_options[‘display_short_description_in_event_list’] == ‘Y’) {

?>

<div class=”event-desc”>

<?php echo espresso_format_content($event_desc); ?>

</div>

<?php

}

?>


Dean

June 25, 2013 at 3:09 am

Hi,

In your event description (via the TEXT tab), is the tag being wrapped in

tags as it is shown above? If so that will break it.

The support post ‘Event List Description Length’ 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