Search Shortcodes
Displays a search input form that allows users to search movies, series, or other content.
π Basic Usage
[movie_engine_search_bar]
β‘ Example
[movie_engine_search_bar placeholder="Search movies..." post_type="movie_engine_movie"]
π¦ Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
placeholder | string | Search… | Input placeholder text |
post_type | string | β | Limit search to specific post type |
button_text | string | Search | Submit button text |
show_button | string | true | Show submit button (true/false) |
redirect_page | string | β | 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_pageOR - Default Search Results Page (from plugin settings)
- Custom
- Works with:
movie_engine_librarymovie_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
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 5 | Number of results shown |
post_type | string | β | Filter by post type |
show_image | string | true | Show thumbnail |
show_meta | string | true | Show year/type |
show_rating | string | true | Show rating |
show_view_all | string | true | Show β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 pagemovie_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"]
