TMDB Movie API
TMDB Movia API Showcase.
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/robindevitt/tmdb-movie-api/archive/refs/heads/main.zipAbout this plugin
This is a demo feature I have developed that integrates with the The Movie Database (TMDb) API.
Prerequisites
Project Setup
- Download a copy of the plugin
- Navigate to your WordPress admin area and add a new plugin
- Upload the file you just downloaded
- Activate the Plugin
- Navigate to "TMDB Movie API" in the left hand menu
- Add your API Key into the input and click save changes.
TMDB Movie API Key
If you need na API Key, please follow the documentation here
Built in Shortcodes
[movies_output]- This will display all daily trending terms.- Once this shortcode is added to the desired page, navigating to the page will show all the daily trending items.
- Pagination at the bottom allows you to navigate through the respective pages as well as define a page to navigate to.
- Clicking on a "card" open a pop-up which shows more info as well as the option to add it as a favorite.
[movies_favorites]- Once a user a favorited a movie, this shortcode can be used to display their favorites.- Once this shortcode is added to the desired page, should a user have any items marked as a favorite, they will appear here.
[contact_me]- Displays a contact form and contact details
SASS Terminal Setup
- Open the Plugin folder in Terminal
- CD Into
assets/cssfolder - Type into your terminal :
sass --watch sass/tmdb-plugin-style.sass:tmdb-plugin-style.css - Watch the magic as it compiles your style sheet on save.
- To compress the css use the following :
sass --watch sass/tmdb-plugin-style.sass:tmdb-plugin-style.css --style compressed - Watch the magic as it compiles your style sheet on save.
- CTRL + C to stop