Skip to content
Search

Search Shortcodes

Estimated reading: 3 minutes 184 views

MovieEngine search shortcodes parameters: Configure MovieEngine search shortcodes for search forms and results, so visitors can find movies, series, and people quickly. [movie_engine_search_bar] displays a search input form, and [movie_engine_live_search] shows real-time results as the user types.

πŸ“Œ Basic Usage

[movie_engine_search_bar]

⚑ Example

[movie_engine_search_bar placeholder="Search movies..." post_type="movie_engine_movie"]

πŸ“¦ Parameters

ParameterTypeDefaultDescription
placeholderstringSearch…Input placeholder text
post_typestringβ€”Limit search to specific post type
button_textstringSearchSubmit button text
show_buttonstringtrueShow submit button (true/false)
redirect_pagestringβ€”Custom results page URL

πŸ”Ή Example (Custom Search Bar)

[movie_engine_search_bar placeholder="Search movies & series" show_button="true"]

βš™οΈ Behavior Notes

  • Submits a search using ?s=keyword
  • Redirects to:
    • Custom redirect_page OR
    • Default Search Results Page (from plugin settings)
  • Works with:
    • movie_engine_library
    • movie_engine_search

⚑ 2. Live Search Shortcode

Displays real-time search results (AJAX) as the user types.

Basic Usage

[movie_engine_live_search]

Example

[movie_engine_live_search limit="5" post_type="movie_engine_movie"]

Parameters

ParameterTypeDefaultDescription
limitnumber5Number of results shown
post_typestringβ€”Filter by post type
show_imagestringtrueShow thumbnail
show_metastringtrueShow year/type
show_ratingstringtrueShow rating
show_view_allstringtrueShow β€œView All” link

Example (Live Search Dropdown)

[movie_engine_live_search limit="8" show_rating="true"]

Behavior Notes

  • Uses AJAX (no page reload)
  • Shows results instantly while typing
  • Automatically hides when input is empty
  • β€œView All” redirects to the search results page

Using Both Together (Recommended)

πŸ‘‰ Best practice is to combine both:

[movie_engine_search_bar]
[movie_engine_live_search]

βœ… Result

  • User types β†’ sees instant results
  • Press enter β†’ goes to full search page

🎯 Supported Values

post_type

  • movie_engine_movie
  • movie_engine_series
  • movie_engine_season
  • movie_engine_episode

πŸ”— Related Shortcodes

  • movie_engine_library β†’ full search page
  • movie_engine_search β†’ library with search enabled

βš™οΈ Integration Flow

User types β†’ Live Search (AJAX results)
↓
Press Enter β†’ Search Results Page
↓
movie_engine_library handles results

πŸš€ Example Use Cases

Header Search

[movie_engine_search_bar placeholder="Search..."]
[movie_engine_live_search]

Movies Only Search

[movie_engine_search_bar post_type="movie_engine_movie"]
[movie_engine_live_search post_type="movie_engine_movie"]

Minimal Search (No Button)

[movie_engine_search_bar show_button="false"]
[movie_engine_live_search limit="5"]

MovieEngine search shortcodes parameters explained

MovieEngine search results page
The MovieEngine search results page.

The [movie_engine_search_bar] shortcode displays a search input form. Its parameters set the placeholder text, limit search to a specific post type, change the submit button text, show or hide the submit button, and set a custom results page URL. A search submits with ?s=keyword and redirects to the custom redirect_page or the default Search Results Page from the plugin settings.

The [movie_engine_live_search] shortcode shows real-time results with AJAX as the user types, without a page reload. Its parameters set how many results are shown, filter by post type, and show or hide the thumbnail, year and type, rating, and the β€œView All” link. Results hide automatically when the input is empty, and β€œView All” redirects to the search results page. Best practice is to combine both shortcodes: the user types, sees instant results, and presses Enter to reach the full search page.

Frequently asked questions

What is the MovieEngine Search Shortcodes page about?

This guide covers the MovieEngine Search Shortcodes shortcode or group, with usage and parameters.

Where can I use this shortcode?

You can use it on pages, posts, widgets, or templates where shortcodes are supported.

Where do I start with MovieEngine shortcodes?

Start with Shortcodes Overview, then follow the linked shortcode guides in this section.

Related guides

Tip: for more about MovieEngine, visit the MovieEngine website.

Share this Doc

Search Shortcodes

Or copy link

CONTENTS
Back To Top