Talk & News

April 7, 2013

Using Shortcode Variables in MF Gig Calendar

As of version 0.9.8 you can display more specific event information from your MF Gig Calendar WordPress plugin on any Pages or Posts by including simple variables in your short code.

[mfgigcal id=event_id] – display only one specific event
[mfgigcal date=YYYY-MM-DD] – display events that are happening on a particular day
[mfgigcal range=YYYY-MM-DD:YYYY-MM-DD] – display a range of dates (START:END)

Note: The archive navigation will not be displayed.

Examples

Below I’m including a few specific examples using the shortcode variables. I’ve listed the specific shortcode that I inserted in this post, and below each shortcode sample you’ll see the resulting content. Hope this helps!

Display a Specific Event

Shortcode: [mfgigcal id=1486]

  • Thu
    02
    May
    2013

    TRI-FI in NYC

    9:30pm-12am

    Small's Jazz Club
    W10th St
    NYC

    TRI-FIJoin us as we present a bunch of brand new music.

    We hope you’ll come see us in person, but in case you’re geographically challenged and just can’t make it to the show you can watch us live online through Smalls website!

    Streaming live on SmallsJazzClub.com

    9:30pm-12am – two sets!

Display a Specific Date

Shortcode: [mfgigcal date=2013-03-11]

  • Mon
    11
    Mar
    2013

    TRIO with Gregory Ryan & Vinnie Sperrazza

    6-10pm

    Hillstone
    E54th & 3rd Ave
    NYC

    James WilliamsThe music of James Williams!

    James Williams would have celebrated his 62nd birthday last week. In addition to his beautiful music, he was a dear friend and mentor to me. We’ll be celebrating his memory with a bunch of his tunes.

    I’ve been playing on the Steinway B tucked in the corner of the lively bar in this steak-n-ribs joint with some fantastic musicians 2-3 times a week since 2002! No cover charge and the food is delicious. Come for the music. Stay for the spinach and artichoke dip!

Display a Date Range

Shortcode: [mfgigcal range=2013-03-08:2013-03-14]

  • Fri
    08
    Mar
    2013

    with Curtis Stigers

    Bix Jazz Club
    Stuttgart, Germany

    Learn more about Curtis Stigers on his website.

    Matthew Fries – piano
    Cliff Schmitt – bass
    Matt Skelton – drums
    James Scholfield – guitar

  • Mon
    11
    Mar
    2013

    TRIO with Gregory Ryan & Vinnie Sperrazza

    6-10pm

    Hillstone
    E54th & 3rd Ave
    NYC

    James WilliamsThe music of James Williams!

    James Williams would have celebrated his 62nd birthday last week. In addition to his beautiful music, he was a dear friend and mentor to me. We’ll be celebrating his memory with a bunch of his tunes.

    I’ve been playing on the Steinway B tucked in the corner of the lively bar in this steak-n-ribs joint with some fantastic musicians 2-3 times a week since 2002! No cover charge and the food is delicious. Come for the music. Stay for the spinach and artichoke dip!

  • Wed
    13
    Mar
    2013

    with Vinson Valega Group

    7-9pm

    55 Bar
    55 Christopher St.
    NYC

    Come celebrate Vins’ birthday! Bring cake. Bring presents.

    Chris Bacas – tenor/soprano sax
    Matthew Fries – Fender Rhodes
    Gary Wang – bass
    Vinson Valega – drums

    We’ll be playing a bunch of Vins’ original music. Fun vibe, fun music, fun times.

  • Thu
    14
    Mar
    2013

    TRIO with Gregory Ryan & Joe Strasser

    6-10pm

    Hillstone
    E54th & 3rd Ave
    NYC

    I’ve been playing on the Steinway B tucked in the corner of the lively bar in this steak-n-ribs joint with some fantastic musicians 2-3 times a week since 2002! No cover charge and the food is delicious. Come for the music. Stay for the spinach and artichoke dip!

MF Gig Calendar
8 Comments
  1. I’m trying to put together something new for thecomedycatch.com at the URL above whereby the first page shows 1 act then I’ll create another page for more shows…

    Is there a way to do this without having to go into each page and change the range each week?

    Also is there a way to remove the title link all together so that it isn’t clickable because when clicked, it will then show the archive on the individual listing

    • Hey Mark – thanks for checking out the plugin! The shortcode requests you’re asking for are coming in the next version. I think. I’ll be adding a way to show a limited list of upcoming events – either a simple number (show 1 upcoming event) or a range based on the current date (show events this week for example). I’m trying to squash a particular bug before I release it so it’s been a little delayed.

      Disabling the title links – you’d need to remove the Calendar URL in the settings (but that’s probably not what you want since that will also remove the link from the widget and RSS feed). You could do it with jQuery/javascript too easily enough if you know your way around that. I’ll add disabling that link to my to-do list. Thanks for the suggestion.

  2. Well, all I can say is this is by far the best plugin for what I need. I’ve tried 10 or more others and they just didn’t produce a ‘blurb’ or render almost like a post. Forgot to mention that a ‘read more’ option would be great for long description of acts coming soon.

  3. Hi, Matthew!

    Just want to say I love your plug in! Quick question (I hope): Is there any way to get multiple gigs in one day to show up in time order? I often have an afternoon gig and then a night time gig in the same day. I list them as two separate gigs, but for some reason, the later one always shows up on the top of the list. Thank you!

    • Hi Deb – The events/gigs are sorted by date only (trying to keep it simple and not require a time). Then if there are two events on a day, they just appear in the order in which they are sent from the database, which in most cases is based on the order they were created. So – for me – when I have multiple gigs on one day that aren’t showing up in the correct order I just use the “duplicate” button to recreate the gig that SHOULD be appearing second on the list. Then delete the old one that was showing up in the wrong order. You may need to do the opposite if your server is spitting the events out in reverse order for some reason. Sorry it’s not more elegant than that, but it seems to work in my case… Hope that helps!

  4. He Matthew,

    Lovely pluging. The limit option does not seem to work. Want to have latest event shown in home page. I’m using: [mfgigcal limit=1]. What do i do wrong?

Comments are closed.

Text Widget
Aliquam erat volutpat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Integer sit amet lacinia turpis. Nunc euismod lacus sit amet purus euismod placerat? Integer gravida imperdiet tincidunt. Vivamus convallis dolor ultricies tellus consequat, in tempor tortor facilisis! Etiam et enim magna.
Cart
Secured By miniOrange