MAS Videos comes with several shortcodes that can be used to insert content inside posts and pages.
Page Shortcodes
- [mas_my_account] – shows the user my account page
- [mas_upload_video] – shows the user upload video page
- [mas_history] – shows the video history page
In most cases, these shortcodes will be added to pages automatically via our onboarding wizard and do not need to be used manually.
My Account
Used on the my account page, the mas_my_account shortcode displays register and login form contents when user not logged in and displays user videos and playlists content when user logged in.
Args: none
[mas_my_account]
Upload Video
Used on the upload video page, the mas_upload_video shortcode displays video upload form for logged in users. Users can add their videos to site.
Args: none
[mas_upload_video]
History
Shows all ‘videos’ of a current logged in user visited. This feature only works for logged in users.
Args:
array( 'post_type' => 'movie' )
[mas_history post_type=movie]
‘post_type’ can be any one of ‘movie’, ‘tv_show’, ‘video’.
Movies
The [mas_movies]
shortcode allows you to display movies by post ID, categories, attributes, random sorting and movie tags.
Available Movies Attributes
The following attributes are available to use in conjunction with the [mas_movies]
shortcode. They have been split into sections for primary function for ease of navigation, with examples below.
Display Movie Attributes
limit
– The number of movies to display. Defaults to and-1
(display all) when listing movies, and-1
(display all) for genres.columns
– The number of columns to display. Defaults to4
.paginate
– Toggles pagination on. Use in conjunction withlimit
. Defaults tofalse
set totrue
to paginate .orderby
– Sorts the products displayed by the entered option. One or more options can be passed by adding both slugs with a space between them. Available options are:date
– The date the movie was published.id
– The post ID of the movie.menu_order
– The Menu Order, if set (lower numbers display first).rand
– Randomly order the movies on page load (may not work with sites that use caching, as it could save a specific order).rating
– The average movie rating.title
– The movie title. This is the defaultorderby
mode.
genre
– Comma separated list of genre slugs.order
– States whether the product ordering is ascending (ASC
) or descending (DESC
), using the method set inorderby
. Defaults toASC
.class
– Adds an HTML wrapper class so you can modify the specific output with custom CSS.top_rated
– Retrieve top rated movies.
Content Movie Attributes
attribute
– Retrieves movies using the specified attribute slug.terms
– Comma separated list of attribute terms to be used withattribute
.terms_operator
– Operator to compare attribute terms. Available options are:AND
– Will display movies from all of the chosen attributes.IN
– Will display movies with the chosen attribute. This is the defaultterms_operator
value.NOT IN
– Will display movies that are not in the chosen attributes.
visibility
– Will display movies based on the selected visibility. Available options are:visible
– Movies visibile on archive pages and search results. This is the defaultvisibility
option.catalog
– Movies visible on the archive pages only, but not search results.search
– Movies visible in search results only, but not on the archive pages.hidden
– Movies that are hidden from both archive pages and search, accessible only by direct URL.featured
– Movies that are marked as Featured Movies.
genre
– Retries movies using the specified genre slug.genre_operator
– Operator to compare genre terms. Available options are:AND
– Will display movies that belong in all of the chosen genres.IN
– Will display movies within the chosen genre. This is the defaultgenre_operator
value.NOT IN
– Will display movies that are not in the chosen genre.
ids
– Will display movies based off of a comma separated list of Post IDs.
*If the movie is not showing, make sure it is not set to Hidden in the Catalog Visibility.
Movie Playlists
The [mas_movie_playlists]
shortcode allows you to display movie playlists by post ID, categories, attributes, random sorting and movie playlist tags.
Available Movie Playlists Attributes
The following attributes are available to use in conjunction with the [mas_movie_playlists]
shortcode. They have been split into sections for primary function for ease of navigation, with examples below.
Display Movie Playlist Attributes
limit
– The number of movie playlists to display. Defaults to and-1
(display all) when listing movie playlists.columns
– The number of columns to display. Defaults to4
.paginate
– Toggles pagination on. Use in conjunction withlimit
. Defaults tofalse
set totrue
to paginate .orderby
– Sorts the products displayed by the entered option. One or more options can be passed by adding both slugs with a space between them. Available options are:date
– The date the movie playlist was published.id
– The post ID of the movie playlist.menu_order
– The Menu Order, if set (lower numbers display first).rand
– Randomly order the movie playlists on page load (may not work with sites that use caching, as it could save a specific order).rating
– The average movie playlist rating.title
– The movie playlist title. This is the defaultorderby
mode.
order
– States whether the product ordering is ascending (ASC
) or descending (DESC
), using the method set inorderby
. Defaults toASC
.class
– Adds an HTML wrapper class so you can modify the specific output with custom CSS.ids
– Will display movie playlists based off of a comma separated list of Post IDs.
Videos
The [mas_videos]
shortcode allows you to display videos by post ID, categories, attributes, random sorting and video tags.
Available Videos Attributes
The following attributes are available to use in conjunction with the [mas_videos]
shortcode. They have been split into sections for primary function for ease of navigation, with examples below.
Display Video Attributes
limit
– The number of videos to display. Defaults to and-1
(display all) when listing videos, and-1
(display all) for categories.columns
– The number of columns to display. Defaults to4
.paginate
– Toggles pagination on. Use in conjunction withlimit
. Defaults tofalse
set totrue
to paginate .orderby
– Sorts the products displayed by the entered option. One or more options can be passed by adding both slugs with a space between them. Available options are:date
– The date the video was published.id
– The post ID of the video.menu_order
– The Menu Order, if set (lower numbers display first).rand
– Randomly order the videos on page load (may not work with sites that use caching, as it could save a specific order).rating
– The average video rating.title
– The video title. This is the defaultorderby
mode.
category
– Comma separated list of category slugs.order
– States whether the product ordering is ascending (ASC
) or descending (DESC
), using the method set inorderby
. Defaults toASC
.class
– Adds an HTML wrapper class so you can modify the specific output with custom CSS.
Content Video Attributes
attribute
– Retrieves videos using the specified attribute slug.terms
– Comma separated list of attribute terms to be used withattribute
.terms_operator
– Operator to compare attribute terms. Available options are:AND
– Will display videos from all of the chosen attributes.IN
– Will display videos with the chosen attribute. This is the defaultterms_operator
value.NOT IN
– Will display videos that are not in the chosen attributes.
visibility
– Will display videos based on the selected visibility. Available options are:visible
– Videos visibile on archive pages and search results. This is the defaultvisibility
option.catalog
– Videos visible on the archive pages only, but not search results.search
– Videos visible in search results only, but not on the archive pages.hidden
– Videos that are hidden from both archive pages and search, accessible only by direct URL.featured
– Videos that are marked as Featured Videos.
category
– Retries videos using the specified category slug.cat_operator
– Operator to compare category terms. Available options are:AND
– Will display videos that belong in all of the chosen categories.IN
– Will display videos within the chosen category. This is the defaultcat_operator
value.NOT IN
– Will display videos that are not in the chosen category.
ids
– Will display videos based off of a comma separated list of Post IDs.
*If the video is not showing, make sure it is not set to Hidden in the Catalog Visibility.
Video Playlists
The [mas_video_playlists]
shortcode allows you to display video playlists by post ID, categories, attributes, random sorting and video playlist tags.
Available Video Playlists Attributes
The following attributes are available to use in conjunction with the [mas_video_playlists]
shortcode. They have been split into sections for primary function for ease of navigation, with examples below.
Display Video Playlist Attributes
limit
– The number of video playlists to display. Defaults to and-1
(display all) when listing video playlists.columns
– The number of columns to display. Defaults to4
.paginate
– Toggles pagination on. Use in conjunction withlimit
. Defaults tofalse
set totrue
to paginate .orderby
– Sorts the products displayed by the entered option. One or more options can be passed by adding both slugs with a space between them. Available options are:date
– The date the video playlist was published.id
– The post ID of the video playlist.menu_order
– The Menu Order, if set (lower numbers display first).rand
– Randomly order the video playlists on page load (may not work with sites that use caching, as it could save a specific order).rating
– The average video playlist rating.title
– The video playlist title. This is the defaultorderby
mode.
order
– States whether the product ordering is ascending (ASC
) or descending (DESC
), using the method set inorderby
. Defaults toASC
.class
– Adds an HTML wrapper class so you can modify the specific output with custom CSS.ids
– Will display video playlists based off of a comma separated list of Post IDs.
TV Shows
The [mas_tv_shows]
shortcode allows you to display tv shows by post ID, categories, attributes, random sorting and tv show tags.
Available TV Shows Attributes
The following attributes are available to use in conjunction with the [mas_tv_shows]
shortcode. They have been split into sections for primary function for ease of navigation, with examples below.
Display TV Show Attributes
limit
– The number of tv shows to display. Defaults to and-1
(display all) when listing tv shows, and-1
(display all) for genres.columns
– The number of columns to display. Defaults to4
.paginate
– Toggles pagination on. Use in conjunction withlimit
. Defaults tofalse
set totrue
to paginate .orderby
– Sorts the products displayed by the entered option. One or more options can be passed by adding both slugs with a space between them. Available options are:date
– The date the tv show was published.id
– The post ID of the tv show.menu_order
– The Menu Order, if set (lower numbers display first).rand
– Randomly order the tv shows on page load (may not work with sites that use caching, as it could save a specific order).rating
– The average tv show rating.title
– The tv show title. This is the defaultorderby
mode.
genre
– Comma separated list of genre slugs.order
– States whether the product ordering is ascending (ASC
) or descending (DESC
), using the method set inorderby
. Defaults toASC
.class
– Adds an HTML wrapper class so you can modify the specific output with custom CSS.top_rated
– Retrieve top rated tv shows.
Content TV Show Attributes
attribute
– Retrieves tv shows using the specified attribute slug.terms
– Comma separated list of attribute terms to be used withattribute
.terms_operator
– Operator to compare attribute terms. Available options are:AND
– Will display tv shows from all of the chosen attributes.IN
– Will display tv shows with the chosen attribute. This is the defaultterms_operator
value.NOT IN
– Will display tv shows that are not in the chosen attributes.
visibility
– Will display tv shows based on the selected visibility. Available options are:visible
– TV Shows visibile on archive pages and search results. This is the defaultvisibility
option.catalog
– TV Shows visible on the archive pages only, but not search results.search
– TV Shows visible in search results only, but not on the archive pages.hidden
– TV Shows that are hidden from both archive pages and search, accessible only by direct URL.featured
– TV Shows that are marked as Featured TV Shows.
genre
– Retries tv shows using the specified genre slug.genre_operator
– Operator to compare genre terms. Available options are:AND
– Will display tv shows that belong in all of the chosen genres.IN
– Will display tv shows within the chosen genre. This is the defaultgenre_operator
value.NOT IN
– Will display tv shows that are not in the chosen genre.
ids
– Will display tv shows based off of a comma separated list of Post IDs.
*If the tv show is not showing, make sure it is not set to Hidden in the Catalog Visibility.
TV Show Playlists
The [mas_tv_show_playlists]
shortcode allows you to display tv show playlists by post ID, categories, attributes, random sorting and tv show playlist tags.
Available TV Show Playlists Attributes
The following attributes are available to use in conjunction with the [mas_tv_show_playlists]
shortcode. They have been split into sections for primary function for ease of navigation, with examples below.
Display TV Show Playlist Attributes
limit
– The number of tv show playlists to display. Defaults to and-1
(display all) when listing tv show playlists.columns
– The number of columns to display. Defaults to4
.paginate
– Toggles pagination on. Use in conjunction withlimit
. Defaults tofalse
set totrue
to paginate .orderby
– Sorts the products displayed by the entered option. One or more options can be passed by adding both slugs with a space between them. Available options are:date
– The date the tv show playlist was published.id
– The post ID of the tv show playlist.menu_order
– The Menu Order, if set (lower numbers display first).rand
– Randomly order the tv show playlists on page load (may not work with sites that use caching, as it could save a specific order).rating
– The average tv show playlist rating.title
– The tv show playlist title. This is the defaultorderby
mode.
order
– States whether the product ordering is ascending (ASC
) or descending (DESC
), using the method set inorderby
. Defaults toASC
.class
– Adds an HTML wrapper class so you can modify the specific output with custom CSS.ids
– Will display tv show playlists based off of a comma separated list of Post IDs.
Episodes
The [mas_episodes]
shortcode allows you to display episodes by post ID, random sorting.
Available Episodes Attributes
The following attributes are available to use in conjunction with the [mas_episodes]
shortcode. They have been split into sections for primary function for ease of navigation, with examples below.
Display Episode Attributes
limit
– The number of episodes to display. Defaults to and-1
(display all) when listing episodes, and-1
(display all) for genres.columns
– The number of columns to display. Defaults to4
.paginate
– Toggles pagination on. Use in conjunction withlimit
. Defaults tofalse
set totrue
to paginate .orderby
– Sorts the products displayed by the entered option. One or more options can be passed by adding both slugs with a space between them. Available options are:date
– The date the episode was published.id
– The post ID of the episode.menu_order
– The Menu Order, if set (lower numbers display first).rand
– Randomly order the episodes on page load (may not work with sites that use caching, as it could save a specific order).rating
– The average episode rating.title
– The episode title. This is the defaultorderby
mode.
order
– States whether the product ordering is ascending (ASC
) or descending (DESC
), using the method set inorderby
. Defaults toASC
.class
– Adds an HTML wrapper class so you can modify the specific output with custom CSS.
Content Episode Attributes
visibility
– Will display episodes based on the selected visibility. Available options are:visible
– Episodes visibile on archive pages and search results. This is the defaultvisibility
option.catalog
– Episodes visible on the archive pages only, but not search results.search
– Episodes visible in search results only, but not on the archive pages.hidden
– Episodes that are hidden from both archive pages and search, accessible only by direct URL.featured
– Episodes that are marked as Featured Episodes.
ids
– Will display episodes based off of a comma separated list of Post IDs.
*If the episode is not showing, make sure it is not set to Hidden in the Catalog Visibility.