Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author MembershipWorks

    (@sourcefound)

    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

    (@josealvin)

    Okay, I’ll try it. Thank You

    Thread Starter josealvin

    (@josealvin)

    Hi,

    The shortcode doesn’t work https://ibb.co/TktMhgb.

    Thanks

    Plugin Author MembershipWorks

    (@sourcefound)

    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

    (@josealvin)

    Hi,
    Ohhh, okay, Is there any way to run it outside the content? Anyway, while waiting I do some searching.

    Thanks

    Thread Starter josealvin

    (@josealvin)

    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.
    Plugin Author MembershipWorks

    (@sourcefound)

    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

    (@josealvin)

    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.