Shortcode default parameters

As is mentioned in the documentation, the default values for the shortcodes are:

id=655 and type=movie

So this means that when you want to display a movie you don’t need to set the type parameter.

The default values for rest of the available shortcode parameters are taken from whatever is selected in your ‘my-movie-database’ option page settings. In other words you should set these parameters only if you wish to override the ‘global’ plugin settings. We”ll look at these again later.

Now why would anyone put in a default id?

Basically, the default id is set is for demonstration purposes. I figured if you do not enter an id, it’s then better to get something back instead of some ugly warning message.

The choice of 655 corresponds to an a old favourite tvshow of mine Star Trek TNG. When I saw the 655 id for a movie happens to correspond to “Paris Texas” (which I have yet to see but that’s beside the point), then the ‘quality assurance’ test was passed, and 655 became default.

So then, if you post the shortcode tag with the ‘tvshow’ type parameter, but do not include your choice of id, then you will get Star Trek TNG.

So [my_movie_db type=tvshow] returns:

Summary

Star Trek: The Next Generation (1987)

Genres: Action & Adventure, Drama, Mystery, Sci-Fi & Fantasy
Created by: Gene Roddenberry
Starring: Patrick Stewart, Jonathan Frakes, Brent Spiner, Michael Dorn
Episodes / Seasons: 178 / 7
First aired: September 28, 1987
Last air date: May 23, 1994
Runtime: 45 min
Follow the intergalactic adventures of Capt. Jean-Luc Picard and his loyal crew aboard the all-new USS Enterprise NCC-1701D, as they explore new worlds.
Networks: Broadcast Syndication
Production Companies: Broadcast Syndication

Cast Star Trek: The Next Generation

  • Patrick Stewart
  • Role: Jean-Luc Picard
  • Jonathan Frakes
  • Role: William T. Riker
  • Brent Spiner
  • Role: Data
  • Michael Dorn
  • Role: Worf
  • Marina Sirtis
  • Role: Deanna Troi
  • LeVar Burton
  • Role: Geordi La Forge
  • Gates McFadden
  • Role: Beverly Crusher
  • Wil Wheaton
  • Role: Wesley Crusher
  • John de Lancie
  • Role: Q
  • Michelle Forbes
  • Role: Lieutenant Ro Laren

Crew Star Trek: The Next Generation

  • Jeri Taylor
  • Executive Producer
  • Rick Berman
  • Executive Producer
  • Gene Roddenberry
  • Producer
  • D.C. Fontana
  • Producer
  • Ronald D. Moore
  • Producer
  • Wendy Neuss
  • Producer
  • Joe Menosky
  • Producer
  • Robert Lewin
  • Producer
  • Brannon Braga
  • Producer
  • Peter Lauritson
  • Producer
  • Robert H. Justman
  • Producer
  • Michael Piller
  • Executive Producer
  • David Livingston
  • Producer
  • Merri D. Howard
  • Producer

Seasons Star Trek: The Next Generation

  • Season 1
  • Air date: September 28, 1987
  • Episodes: 26
  • Season 2
  • Air date: November 21, 1988
  • Episodes: 22
  • Season 3
  • Air date: September 25, 1989
  • Episodes: 26
  • Season 4
  • Air date: September 24, 1990
  • Episodes: 26
  • Season 5
  • Air date: September 23, 1991
  • Episodes: 26
  • Season 6
  • Air date: September 21, 1992
  • Episodes: 26
  • Season 7
  • Air date: September 20, 1993
  • Episodes: 26

Now if you simply post the shortcode tag without any parameters at all you will get the movie  “Paris Texas” which shares the same id,  but is a movie (type).

So [my_movie_db] will get you :

Summary

Paris, Texas (1984)

Release Date: May 19, 1984
Starring: Harry Dean Stanton, Nastassja Kinski, Dean Stockwell, Hunter Carson
Genres: Drama
Runtime: 145 min
Original Title: Paris, Texas
Original Film Language: English
Production Companies: Channel Four Films, Pro-ject Filmproduktion, Argos Films, Westdeutscher Rundfunk (WDR), Road Movies Filmproduktion, Wim Wenders Stiftung
A man wanders out of the desert not knowing who he is. His brother finds him, and helps to pull his memory back of the life he led before he walked out on his family and disappeared four years earlier.

Cast Paris, Texas

  • Harry Dean Stanton
  • Role: Travis Henderson
  • Nastassja Kinski
  • Role: Jane Henderson
  • Dean Stockwell
  • Role: Walt Henderson
  • Hunter Carson
  • Role: Hunter Henderson
  • Aurore Clément
  • Role: Anne Henderson
  • Bernhard Wicki
  • Role: Doctor Ulmer
  • John Lurie
  • Role: Slater
  • Jeni Vici
  • Role: Stretch
  • Sally Norvell
  • Role: Nurse Bibs
  • Socorro Valdez
  • Role: Carmelita
  • Claresie Mobley
  • Role: Car Rental Clerk
  • Viva
  • Role: Woman on TV
  • Tom Farrell
  • Role: Screaming Man

Crew Paris, Texas

  • Wim Wenders
  • Director
  • Don Guest
  • Producer
  • Chris Sievernich
  • Executive Producer
  • Ry Cooder
  • Original Music Composer
  • Robby Müller
  • Director of Photography
  • Peter Przygodda
  • Editor
  • Gary Chason
  • Casting
  • Kate Altman
  • Art Direction
  • Birgitta Bjerke
  • Costume Design
  • Dominique Auvray
  • Sound Designer
  • Jean-Paul Mugel
  • Sound mixer
  • Douglas Axtell
  • Boom Operator
  • Anatole Dauman
  • Producer
  • Sam Shepard
  • Writer
  • Pascale Dauman
  • Associate Producer
  • Karen Koch
  • Production Manager
  • Karoly Balazs
  • Makeup Artist
  • Udo Heiland
  • Post-Production Manager
  • Claire Denis
  • Assistant Director
  • Craig Busch
  • Property Master
  • Anne Kuljian
  • Set Decoration
  • Hartmut Eichgrün
  • Sound Re-Recording Mixer
  • Sheila Possner Emery
  • Casting
  • Anne Schnee
  • Assistant Editor
  • Joachim von Mengershausen
  • Commissioning Editor
  • Helen Caldwell
  • Script Supervisor
  • Barbara von Weitershausen
  • Thanks
  • Greg Gardiner
  • Gaffer
  • Agnès Godard
  • First Assistant Camera
  • Martin Schäfer
  • Camera Operator
  • Robert K. Feldmann
  • Grip
  • Pim Tjujerman
  • First Assistant Camera
  • L.M. Kit Carson
  • Writer

Trailer Paris, Texas

Realistic Scenarios

Of course in all the realistic scenarios you will have to set the id yourself. We’ll look at some more examples next.