WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. tinynow
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/event-organiser/

  2. Stephen Harris
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year ago #

    Thank you! That is what I needed.

    Sincerely,
    Matt Kreiling

  4. Yooakim
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year ago #

    @Stephen -
    There is no "event_content" attribute available in shortcuts.
    I have modified the following file and get the work done.
    wp-content/plugins/event-organiser/classes/class-eventorganiser-shortcodes.php

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

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

  8. Stephen Harris
    Member
    Plugin Author

    Posted 1 year 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

About this Topic