Title: Php do_shortcode with Event List Shortcode
Last modified: January 21, 2019

---

# Php do_shortcode with Event List Shortcode

 *  Resolved [josealvin](https://wordpress.org/support/users/josealvin/)
 * (@josealvin)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-do_shortcode-with-event-list-shortcode/)
 * Hi,
    I want to make the display the event list in some specific section on a 
   page. Using this [https://developer.wordpress.org/reference/functions/do_shortcode/](https://developer.wordpress.org/reference/functions/do_shortcode/)
   and with the plugin shortcode doesn’t work. I already tried to use some other
   plugins shortcode and its working.
 * Please help why the shortcode doesn’t work.
 * Thanks

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [MembershipWorks](https://wordpress.org/support/users/sourcefound/)
 * (@sourcefound)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-do_shortcode-with-event-list-shortcode/#post-11115066)
 * Hi josealvin!
 * Please use the use the shortcode:
 * [mw eventwidget]
 * with the optional parameters:
 * grp=”…” – comma separated list of event categories to pull from (default all)
   
   cnt=”3″ – number of upcoming events to display (default 3) lgo=”1″ – display 
   event thumbnail szp=”1″ – do not display event start date/time ezp=”1″ – do not
   display event end date/time adn=”1″ – display event location
 * For example:
 * [mw eventwidget grp=”0,1,2″ cnt=”5″ lgo=”1″ adn=”1″]
 * will display 5 upcoming events from event categories 0,1 and 2, with event thumbnail,
   start/end date/times and location.
 *  Thread Starter [josealvin](https://wordpress.org/support/users/josealvin/)
 * (@josealvin)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-do_shortcode-with-event-list-shortcode/#post-11115131)
 * Okay, I’ll try it. Thank You
 *  Thread Starter [josealvin](https://wordpress.org/support/users/josealvin/)
 * (@josealvin)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-do_shortcode-with-event-list-shortcode/#post-11115296)
 * Hi,
 *  The shortcode doesn’t work [https://ibb.co/TktMhgb](https://ibb.co/TktMhgb).
 * Thanks
 *  Plugin Author [MembershipWorks](https://wordpress.org/support/users/sourcefound/)
 * (@sourcefound)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-do_shortcode-with-event-list-shortcode/#post-11115887)
 * Hi josealvin,
 * The shortcode only works in areas where the content is passed through the_content
   filter. If this part of the page is not processed through the_content it will
   not work.
 *  Thread Starter [josealvin](https://wordpress.org/support/users/josealvin/)
 * (@josealvin)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-do_shortcode-with-event-list-shortcode/#post-11116071)
 * Hi,
    Ohhh, okay, Is there any way to run it outside the content? Anyway, while
   waiting I do some searching.
 * Thanks
 *  Thread Starter [josealvin](https://wordpress.org/support/users/josealvin/)
 * (@josealvin)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-do_shortcode-with-event-list-shortcode/#post-11119819)
 * Hi,
    This what I did and it works. I added the this code wit the shortcode. <?
   php echo apply_filters( ‘the_content’, ‘[mw open=”!event-list”]’); ?>
 * Thanks
    -  This reply was modified 7 years, 3 months ago by [josealvin](https://wordpress.org/support/users/josealvin/).
 *  Plugin Author [MembershipWorks](https://wordpress.org/support/users/sourcefound/)
 * (@sourcefound)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-do_shortcode-with-event-list-shortcode/#post-11119826)
 * Hi josealvin,
 * We recommend you use the [mw eventwidget] widget shortcode instead. The [mw open
   =”…”] can only be used once per page, so if you have a member signup form, etc.
   those features will not work.
 *  Thread Starter [josealvin](https://wordpress.org/support/users/josealvin/)
 * (@josealvin)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-do_shortcode-with-event-list-shortcode/#post-11119854)
 * Hi,
    I see, so I can manipulate the display by css or javascript.
 * Thanks

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Php do_shortcode with Event List Shortcode’ is closed to new replies.

 * ![](https://ps.w.org/memberfindme/assets/icon-128x128.png?rev=998154)
 * [MembershipWorks - Membership, Events & Directory](https://wordpress.org/plugins/memberfindme/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/memberfindme/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/memberfindme/)
 * [Active Topics](https://wordpress.org/support/plugin/memberfindme/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/memberfindme/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/memberfindme/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [josealvin](https://wordpress.org/support/users/josealvin/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/php-do_shortcode-with-event-list-shortcode/#post-11119854)
 * Status: resolved