Display an admin page in the backend of LaraPress, with a grid of videos from a Wistia Project.
composer require portonefive/how-to-videos
In your console you'll run the following command to publish the config, view and css files;
php artisan vendor:publish
In order to access the Wistia account, you'll to define the
HTV_WISTIA_API_KEY
in your config or env file.
This can be found under wistia.com > Account > Advanced > API Access.
- Click New Token
- Input the project name for Token nickname
- Check Read all data
- Click Create Token
Next, you'll to define the HTV_WISITIA_PROJECT_ID
, which is the project we
want to pull videos from. This can be found by navigating to the project
you want and copying the id from the url.
For this url, https://portonefive.wistia.com/projects/5jihj33txi
we
want 5jihj33txi
.
You can also set the WordPress menu position weight in your config or env
files with the HTV_ADMIN_MENU_POSITION
key.