Event Organiser
[resolved] Displaying the content/description with eo_events shortcode (8 posts)

  1. tinynow
    Posted 3 years ago #

    Thanks for developing this plugin.

    I am using the eo_events shortcode to display particular events, and I cannot figure out how to display the event description (the_content).

    Can you help?

    Thank you.


  2. Stephen Harris
    Posted 3 years ago #

    Hi tinynow,

    I assume are you using a custom template with the shortcode? http://www.harriswebsolutions.co.uk/event-organiser/documentation/shortcodes/event-list-shortcode/

    The documentation needs updating but you can use the %event_excerpt% tag to display the event excerpt. There isn't a tag for the full description, but I shall consider adding this in a future version.

  3. tinynow
    Posted 3 years ago #

    Thank you! That is what I needed.

    Matt Kreiling

  4. Yooakim
    Posted 3 years ago #

    I would also very much like to be able to get the event description when using the eo_events shortcode. So add my vote for implementing this!

  5. deecee2000
    Posted 3 years ago #

    I have same issue here.
    I tried to put [eo_events att1="val1" att2="val2"] in my events page, but still it is not showing its description here.
    Do I need to change any other settings?
    I also tried [eo_events att1="val1" att2="val2" att3="val3" att4="val4"....], but no luck.

    Also in event page it is not showing left side bar, though I have set up all the pages in 2 columns. How do I figure out this?

    Thanks in advance.

  6. Stephen Harris
    Posted 3 years ago #

    @Yooakim - I'm looking to add this to 1.6.

    @deecee2000 - you need to replace the 'att*' by the attribute name and 'val*' by the corresponding values. With regards to including the excerpt, you need to wrap the shortcode around a placeholder - see examples here.

  7. deecee2000
    Posted 3 years ago #

    @Stephen -
    There is no "event_content" attribute available in shortcuts.
    I have modified the following file and get the work done.

    In function read_template() added
    $patterns[0] = '/%(event_content)%/';

    In function parse_template() added
    case 'event_content':
    $replacement = get_the_content();
    [eo_events] %event_content% [/eo_events]

  8. Stephen Harris
    Posted 3 years ago #

    I know - see the above posts - I'll be adding into 1.6.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Event Organiser
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic