• Resolved callerpatty

    (@callerpatty)


    Hi
    I am using this shortcode to list upcoming events on a page and have the excerpt set to true, and the length set so my whole excerpt shows. The quirk I am finding is that the Continue Reading doesn’t link to anywhere,,, and I think that it should probably display if only a portion of the excerpt shows? If I take out my excerpt length, the “Continue Reading” goes away completely.

    I would have expected the Continue Reading to link to the event?

    https://2017dev.charlottecatholicwomensgroup.org/social-events/reflections/

    I haven’t altered the plugin code at all, just done some basic styling. Here is my shortcode:
    [ecs-list-events cat=’reflections, retreat’ limit=’10’ excerpt=’true’ excerpt=’300′ contentorder=’thumbnail, date, title, excerpt’ thumb=’true’ thumbwidth=’125′ thumbheight=’125′]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Brian Hogg

    (@brianhogg)

    Hello!

    It looks like your theme or a plugin is modifying the default excerpt to add that ‘continue reading’ in there, and the link is stripped out by the shortcode.

    You can try using the following code in a small plugin or in your child theme’s functions.php to get the ‘raw’ excerpt with links included:

    function tecs_raw_excerpt( $excerpt ) {
    	return get_the_excerpt();
    }
    add_filter( 'ecs_event_excerpt', 'tecs_raw_excerpt' );

    Does that work?

    Hi,

    I am pulling my hair out, I was wondering how do I get the code to display the full description and not just the excerpt. I tried both excerpt=’true’ and I also tried a large number like excerpt=’1000′ but they both seem to be only displaying the first sentence no matter what I try. Any help would be greatly appreciated.

    Thanks!

    Plugin Author Brian Hogg

    (@brianhogg)

    @gman250

    The shortcode actually uses WordPress’ excerpt function which would limit what is being returned. Normally this is the first 55 words, unless your theme or another plugin is further limiting the output.

    In the pro version there is the option to return the full description, and even a raw description with no links or other HTML stripped out:

    https://eventcalendarnewsletter.com/events-calendar-shortcode-pro-options/#description

    Hope that helps, if not let me know!

    • This reply was modified 8 years, 2 months ago by Brian Hogg.
    Plugin Author Brian Hogg

    (@brianhogg)

    @callerpatty

    The pro version now contains an option to leave the excerpt as-is using raw_excerpt if you’d rather not put in the above code:

    https://eventcalendarnewsletter.com/events-calendar-shortcode-pro-options/#raw_excerpt

    Thread Starter callerpatty

    (@callerpatty)

    Finally got around to checking this out and that little function snippet worked great!
    Thanks!

    I do have the pro version. After a long battle I finally got it to work with this:

    [ecs-list-events excerpt=’2000′ description=’true’ raw_description=’false’ thumb=’false’ venue=’false’ eventdetails=’true’ hiderecurring=’true’ limit=’30’]

    Thanks Brian!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Odd excerpt issue’ is closed to new replies.