WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
do_shortcode() filter on widget text? (5 posts)

  1. scharc
    Member
    Posted 2 years ago #

    is there a easy way to enable the shortcode API for the event-widget?

    http://wordpress.org/extend/plugins/events-manager/

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    you can do the same with a widget with events_list shortcode (see our site for documentation)

  3. scharc
    Member
    Posted 2 years ago #

    thanks

  4. scharc
    Member
    Posted 2 years ago #

    its me again...

    i tried to get the text-widget to work and run into some more problems:

    i added to my themefunction
    add_filter('widget_text', 'do_shortcode');
    for the shortcode-support and made a custom shortcode function
    [foobar]

    when i use the [events_list] shortcode its doing well.
    when i do

    [foobar]
    [events_list limit="3" ]do something
    [/events_list]

    its doing its job as well ... and my custom shortcode gets replaced as well
    BUT
    when i do

    [events_list limit="3" ]do something [foobar]
    [/events_list]

    the [foobar} shortcode is not replaced!

    any suggestions?

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    you'd have to hook into the events list shortcode somehow and run do_shortcodes through the content before it's output

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic