Content & Library

Movie Library Shortcode

Estimated reading: 5 minutes 44 views

Display movies, TV series, seasons, or episodes in a fully customizable grid or slider layout with advanced filtering, search, AJAX loading, and monetization support.

🧾 Basic Usage

[movie_engine_library]

[movie_engine_library post_type="movie_engine_movie" columns="5" show_search="true" limit="20"]

Overview

This shortcode allows you to:

  • Display movies, TV series, seasons, or episodes
  • Filter by genre, year, language, and access type
  • Enable AJAX search and filters
  • Customize layout (grid or slider)
  • Control monetization (free, premium, rent, sale)
  • Build homepage sections like Trending, New Releases, etc.

Core Query

Controls how content is fetched and ordered from the database. These parameters define what content to display, including post types, limits, predefined queries (like trending or top rated), and sorting behavior.

ParameterTypeDefaultDescription
post_typestringautoContent type(s). Supported: movie_engine_movie, movie_engine_series, movie_engine_season, movie_engine_episode. Empty = movies + series or URL param
limitnumbersettingsNumber of items per page. Uses archive_items_per_page or search_items_per_page. Fallback: 12
idsstringβ€”Comma-separated post IDs. Overrides query and preserves order
typestringβ€”Predefined query: trending, new_releases, upcoming, top_rated
orderbystringdateSorting: date, title, rating, views
orderstringDESCSort direction: ASC or DESC

[movie_engine_library post_type="movie_engine_movie" limit="12" orderby="date" order="DESC"]

Taxonomy Filters

Allows you to filter content using predefined taxonomy values such as genre, year, language, and access type. These are useful for creating targeted sections like Action Movies or 2024 Releases.

ParameterTypeDefaultDescription
genrestringβ€”Genre slug (preset filter)
yearstringβ€”Year slug (preset filter)
languagestringβ€”Language slug
accessstringfalse(PRO) Access filter: free, premium, rent, sale

[movie_engine_library genre="action" year="2024" language="english"]

Layout & Display

Defines how content is visually structured on the page. This includes grid or slider layouts, responsive column settings, spacing, and card styles to control the overall UI.

ParameterTypeDefaultDescription
layoutstringgridLayout type: grid or slider
columnsnumbersettingsDesktop columns (2–15). Fallback: 4
columns_laptopnumbersettingsLaptop columns. Fallback: 4
columns_tabletnumbersettingsTablet columns. Fallback: 3
columns_mobilenumbersettingsMobile columns. Fallback: 2
gapstringβ€”Gap between items (px). Example: “20”
ratiostringportraitAspect ratio: portrait, landscape, square, banner, custom
custom_ratiostringβ€”Used when ratio=”custom” (e.g. 2/3, 16/9). Defaults to 2/3
stylestringclassicCard style: classic, modern, grid, list, slider

[movie_engine_library columns="5" columns_tablet="3" columns_mobile="2" gap="20" style="modern"]

Search & Filters

Controls interactive filtering features such as search bar, filter panels, and AJAX behavior. These options enable users to browse and refine content dynamically without reloading the page.

ParameterTypeDefaultDescription
show_searchstringfalseEnable search bar
show_filtersstringfalseEnable filter panel
filter_layoutstringsidebarFilter position: sidebar or top
enable_ajaxstringtrueEnable AJAX filtering

[movie_engine_library show_search="true" show_filters="true" filter_layout="sidebar"]

Section Header

Manages the top section of the content block, including titles and β€œView All” links, allowing you to create structured homepage sections like Trending Movies or Latest Series.

ParameterTypeDefaultDescription
titlestringβ€”Section title
show_view_allstringtrueShow View All button
view_all_urlstringβ€”Custom URL (auto if empty)
view_all_textstringView AllButton text

[movie_engine_library title="Trending Movies" show_view_all="true"]

Pagination

Controls how content is divided across multiple pages. This helps improve performance and usability when displaying large content libraries.

ParameterTypeDefaultDescription
paginationstringtrueEnable pagination (disabled in slider layout)

[movie_engine_library pagination="true"]

Slider Options

Applies only when using the slider layout. These settings control autoplay, speed, looping behavior, and navigation UI, enabling carousel-style content presentation.

ParameterTypeDefaultDescription
autoplaystringfalseEnable autoplay
autoplay_speedstring3000Autoplay speed (ms)
loopstringfalseInfinite loop
pause_on_hoverstringtruePause on hover
show_dotsstringfalseShow navigation dots

[movie_engine_library layout="slider" autoplay="true" loop="true"]

Card Display Options

Determines which metadata is shown on each content card, such as rating, year, quality badges, pricing, and access labels, helping users quickly understand content details.

ParameterTypeDefaultDescription
show_ratingstringtrueShow rating
show_yearstringtrueShow year
show_qualitystringtrueShow quality badge
show_typestringtrueShow type (Movie/Series)
show_pricestringfalse(PRO) Show price
show_access_labelstringfalse(PRO) Show access label
show_freestringfalseShow free label
show_badgesstringtrueEnable badges
show_premium_badgestringtruePremium badge
show_ppv_badgestringtruePPV badge

[movie_engine_library show_rating="true" show_year="true" show_quality="true" show_type=”trueshow_price=”trueshow_access_label=”trueshow_free=”trueshow_badges=”trueshow_premium_badge=”trueshow_ppv_badge=”true]

Styling

Provides additional customization through CSS by allowing you to add custom classes for advanced styling or theme integration.

ParameterTypeDefaultDescription
custom_classstringβ€”Custom CSS class

[movie_engine_library custom_class="new-class"]

Supported Values

Lists all valid options for key parameters, helping developers understand accepted values and formats without trial and error.

ParameterTypeDefaultDescription
post_typestringβ€”movie_engine_movie, movie_engine_series, movie_engine_season, movie_engine_episode
typestringβ€”trending, new_releases, upcoming, top_rated
orderbystringdatedate, title, rating, views
orderstringDESCASC, DESC
layoutstringgridgrid, slider
filter_layoutstringsidebarsidebar, top
ratiostringportraitportrait, landscape, square, banner, custom
stylestringclassicclassic, modern, grid, list, slider
accessstringfalsefree, premium, rent, sale

URL Parameters (Dynamic Filtering)

Explains how content can be dynamically filtered using URL query parameters. This enables deep linking, SEO-friendly filters, and advanced navigation behavior.

ParameterTypeDefaultDescription
me_post_typestringβ€”Post type filter
me_genrestringβ€”Genre slug
movie_engine_genrestringβ€”Legacy genre
me_yearstringβ€”Year slug
movie_engine_yearstringβ€”Legacy year
me_languagestringβ€”Language slug
me_qualitystringβ€”Quality filter
me_accessstringβ€”Access filter
me_durationstringβ€”Runtime filter
me_tagstringβ€”Tag filter
me_rating_minnumberβ€”Min rating
me_ratingnumberβ€”Alt rating
orderbystringβ€”Sorting
sstringβ€”Search query
pagednumberβ€”Page number

Related Shortcodes

ParameterTypeDefaultDescription
movie_engine_gridshortcodeβ€”Same as library (no search)
movie_engine_searchshortcodeβ€”Same as library (search enabled)

Hooks

ParameterTypeDefaultDescription
movie_engine_library_argshookβ€”Modify query args
movie_engine_before_library_gridhookβ€”Before output
movie_engine_after_library_gridhookβ€”After output

Design Settings

ParameterTypeDefaultDescription
archive_items_per_pagesettingβ€”Default limit
search_items_per_pagesettingβ€”Search limit
archive_columns_desktopsettingβ€”Desktop columns
archive_columns_laptopsettingβ€”Laptop columns
archive_columns_tabletsettingβ€”Tablet columns
archive_columns_mobilesettingβ€”Mobile columns
movie_archive_pagesettingβ€”Archive page
browse_pagesettingβ€”Browse page

Example Shortcodes

[movie_engine_library type="trending"]
[movie_engine_library layout="slider" autoplay="true"]
[movie_engine_library genre="action"]
[movie_engine_library ids="1,2,3"]
[movie_engine_library type="upcoming" title="Coming Soon"]

All Parameters (Quick Reference)

Here, we show all the parameters

ParameterTypeDefault
post_typestringβ€”
limitnumbersettings
idsstringβ€”
typestringβ€”
orderbystringdate
orderstringDESC
genrestringβ€”
yearstringβ€”
languagestringβ€”
show_searchbooleanfalse
show_filtersbooleanfalse
filter_layoutstringsidebar
enable_ajaxbooleantrue
layoutstringgrid
columnsnumber4
columns_laptopnumber4
columns_tabletnumber3
columns_mobilenumber2
gapnumberβ€”
autoplaybooleanfalse
autoplay_speednumber3000
loopbooleanfalse
pause_on_hoverbooleantrue
show_dotsbooleanfalse
titlestringβ€”
show_view_allbooleantrue
view_all_urlstringauto
view_all_textstringView All
paginationbooleantrue
show_ratingbooleantrue
show_yearbooleantrue
show_qualitybooleantrue
show_typebooleantrue
show_badgesbooleantrue
show_premium_badgebooleantrue
show_ppv_badgebooleantrue
accessstringβ€”
show_pricebooleanfalse
show_access_labelbooleanfalse
show_freebooleanfalse
ratiostringportrait
custom_ratiostringβ€”
stylestringclassic
custom_classstringβ€”

Share this Doc

Movie Library Shortcode

Or copy link

CONTENTS