Updated to 4.0, excerpt problem

Home Forums Calendar Products Events Calendar PRO Updated to 4.0, excerpt problem

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1034656
    Ching Hong
    Participant

    When I updated to 4.0, at the photo view, it is now showing full Description, not excerpt of description. How can solved this problem? Please advice.

    My web site become this…..

    http://locuslearning.com/events/photo/

    Thank you.

    Chris Man

    #1034779
    Josh
    Participant

    Hey,

    Thanks for reaching out to us and bringing this issue to our attention!

    We’ve got this bug logged in our internal tracking system and will notify you here as we make progress on this issue. I apologize for any inconvenience that this issue has caused.

    In the meantime, you can fix this issue by making some quick modifications to the core plugin. These changes will get overridden with the next update which will include an official fix to this issue.

    Within the main Events Calendar plugin, navigate to the src > functions > template-tags > general.php file and open it within your preferred text editor.

    Navigate to line #1320 within that file. It should look like:

    
    $excerpt = wp_trim_excerpt( $excerpt );
    

    You can change that line to be:

    
    $excerpt = wp_trim_words( $excerpt, '55' );
    

    Where “55” is the number of words that you would like the excerpt to be there.

    Let me know if you have any further questions or concerns here.

    Thanks!

    #1035170
    Ching Hong
    Participant

    No, it’s still can’t fix the problem. Probably is it because we are using Chinese? Or any reason? Thank you.

    Chris Man

    #1035259
    Konrad
    Participant

    In german it does not work also.

    #1035286
    Jonathan Sanderson
    Participant

    The suggested fix is working here (in English).

    #1035519
    Jan
    Participant

    It doesn´t work for the german version.

    #1035558
    Krisztián
    Participant

    Hello,

    It didnt fix the problem in photo view on my site too

    Josh, Do you have another code for the photo view please?

    Thank you

    #1035850
    Barbara
    Participant

    I have this issue as well in the Dutch version. Haven’t tried the code change yet.

    Be advised that when you actually use the ‘excerpt’ function on the ‘Edit Event’ page, that excerpt will be used on the list/month view.

    It will take some effort to add those excerpts to all events obviously, but now that I have ‘discovered’ this, I actually think it might be better to be forced this way to start using the manual excerpts.

    It will be tricky though when changing things in the future about the event, you’ll need to be very sure about changing it in the excerpt also!

    #1036138
    Marian
    Participant

    same problem in the list “it is now showing full Description”

    update Please

    Thank you

    #1037253
    Josh
    Participant

    Hey,

    Thanks for following up here.

    I’m not sure what’s going on with the different translations. Reviewing the documentation for the function used here, it sounds like it should work with localization however the majority of feedback here is that it isn’t.

    We do have the bug logged a more complete solution should be released in an upcoming update to the plugin, however another “quick” fix until then is to do as Hans has suggested here and use the excerpt field for the events. The function used to populate this content will first check the excerpt field and if it’s empty will use wp_trim_words (based on suggested update above) to shorten the content.

    Thanks!

    #1037324
    Jan
    Participant

    Hey Josh,

    i´ve already tried your suggested solution, but it doesn´t work. It just appears an error message. I am using the german translation.

    #1037356
    Konrad
    Participant

    @Jan: there must be a typo somewhere!
    @all: it is working in German too. T I did not read and follow your solution carefully enough.

    I changed the original line
    $excerpt = wp_trim_excerpt( $excerpt );
    to
    $excerpt = wp_trim_excerpt( $excerpt, '55' );
    but should have changed to
    $excerpt = wp_trim_words( $excerpt, '55' );
    (It is not just adding the numbers – note the difference in the function name)

    #1037358
    Jan
    Participant

    WTF!? It´s working now – without any error message. Great. THX!

    #1037903
    Ching Hong
    Participant

    It works finally (Chinese)! Thanks so much! Thank you all!

    Chris Man

    #1038897
    Josh
    Participant

    Hey Everyone!

    Awesome! I’m glad that the solution is working for you now!

    I’ll go ahead and close this thread for now. If you have any further questions, please don’t hesitate to open a new thread.

    Thanks!

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Updated to 4.0, excerpt problem’ is closed to new replies.