Support

Home Forums Event Espresso Premium Full description is truncated on event list page, but I want it all

Full description is truncated on event list page, but I want it all

Posted: April 8, 2014 at 12:56 pm

Viewing 7 reply threads


Susan Langenes

April 8, 2014 at 12:56 pm

Hello there. Seems I have the opposite problem from most people here: I want to show the full event description on the event list page as well as the single event page. In EE > General Settings > Templates I have “Display Description” set to “full description, but it is not working as I would expect here: http://thehouseofcardsmusic.com/pokerfordropouts/course-registration/

I’ve tried placing that content into the excerpt field, and that makes it show up twice. If I delete it from the WYWIWYG editor, it still shows up twice.

I can’t think of why this would be, unless it’s a PHP thing. I can ask my client to get her host to upgrade PHP, if you think that’d be necessary.

***
WordPress Version:
3.8.1
PHP Version:
5.2.11
MySQL Version:
5.0.27
Event Espresso Version:
4.1.8.reg
WordPress Address (URL):
http://thehouseofcardsmusic.com/pokerfordropouts
Site address (URL):
http://thehouseofcardsmusic.com/pokerfordropouts


Lorenzo Orlando Caum

  • Support Staff

April 8, 2014 at 1:11 pm

Hi Susan,

We recommend PHP5.3 and up for Event Espresso 4.

Does the theme have any options for excerpts or archive display options?


Lorenzo


Susan Langenes

April 8, 2014 at 1:27 pm

The theme has no options (though that would make sense as a place to look). It appears that the “Display Description” setting in EE has no effect no matter what it is set to – I just set it to “none” and the excerpt still shows.


Lorenzo Orlando Caum

  • Support Staff

April 8, 2014 at 1:49 pm

Hi!

This is your events list page:

http://thehouseofcardsmusic.com/pokerfordropouts/events/

What is the shortcode that you are using on this page:

http://thehouseofcardsmusic.com/pokerfordropouts/course-registration/


Lorenzo


Susan Langenes

April 8, 2014 at 2:13 pm

Ah, I see what is going on now. I forgot that I’d created a new page rather than using the regular events “page.” I believe I did that because the /events slug would be confusing on this site, where “events” are actually classes. Or rather series of classes.

The shortcode on the /course-registration page is: [ESPRESSO-EVENTS]

Is there something I could add to that shortcode to make it display the full description, OR is there a way I can make EE use a different page slug for the default event list page?


Josh

  • Support Staff

April 8, 2014 at 2:55 pm

Hi Susan,

It turns out there’s a way you can make EE use a different page slug for the default event list page. There’s a PHP code snippet in the help section of the Event Espresso admin. Here’s a copy of it that you can add to a custom snippets plugin that will change the events page slug to classes:

add_filter( 'FHEE__EE_Register_CPTs__register_CPT__rewrite', 'my_custom_event_slug', 10, 2 );
function my_custom_event_slug( $slug, $post_type ) {
	if ( $post_type == 'espresso_events' ) {
		$custom_slug = array( 'slug' => 'classes' );
		return $custom_slug;
	}
}

‘classes’ can be changed to ‘courses’ or whatever else you’d like.

After you make this change, you will need to go to WP>Settings>Permalinks to refresh the sites rewrite rules.


Susan Langenes

April 8, 2014 at 3:13 pm

Fantastic! That did the trick. I’m sorry I couldn’t find that myself. I did go to the help section at some point but I have become so overwhelmed with the multiplicity of settings, shortcodes, pages, this, that, and the other, that I am starting to have a hard time seeing simple, obvious things.

Thanks so much for your assistance!


Josh

  • Support Staff

April 8, 2014 at 3:19 pm

You’re welcome Susan. I’m glad that worked.

Viewing 7 reply threads

The support post ‘Full description is truncated on event list page, but I want it all’ 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