• Hi folks,

    I like Your plugin. Thank You.
    My problem: Is it possible to show not only Date and title of the posts but also an excerpt (if exists)?
    Thank You

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Manuel Schmalstieg

    (@targz-1)

    Hi,

    Thanks for using this plugin, I’m glad you like it!

    If you want to add the post excerpt to the Widget, or modify the widget in some way:

    You could create a functionality plugin with your own variant of the widget.

    The widget code is here: https://github.com/ms-studio/minimalistic-event-manager/blob/master/widgets/event-list.php

    You would need only two little tweaks:

    – After line 245, add a value to the array: "excerpt" => get_the_excerpt()
    – After line 336, add the code that will output the excerpt. Something like this:

    <?php echo $mem_event_list[$key]["excerpt"]; ?>

    I hope this helps!

    Thread Starter oekoplatt

    (@oekoplatt)

    Hi Manuel,
    Thank you.
    The additions in the code didn’t help. Excerpt is not displayed. Maybe I have to activate it anywhere? In the widget I didn’t find a possibility.

    I have another problem: The mem widget in the sidebar should not display the excerpts but in a special page named “event” I want to display them. If in the widget had an activation field for excerpt, this could be a solution.
    Is there any possibility?

    Thank You

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Excerpt in event list’ is closed to new replies.