Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitLab with WP-CLI:
wp plugin install https://gitlab.com/rayhansysmin/dnn-youtube-shorts/-/archive/main/dnn-youtube-shorts-main.zipProduction-ready WordPress plugin for showing Daily New Nation YouTube Shorts with a shortcode, dedicated plugin tables, scheduled YouTube Data API sync, archive page, and on-site modal playback.
Repository: https://github.com/RayhanSysMin/dnn-youtube-shorts
Author: Rayhan Sardar
Features
- Dedicated optimized database tables.
- No WordPress posts, categories, tags, or custom post types for Shorts.
- YouTube Data API v3 sync from
@dailynewnation. - Uploads playlist based sync, not expensive YouTube search queries.
- Manual Sync Now button.
- WP-Cron scheduled sync.
- Admin Shorts list with active/inactive and Short/not Short toggles.
- Responsive Shorts slider shortcode.
- Paginated archive shortcode.
- YouTube no-cookie iframe modal playback.
- Configurable primary color. Default:
#dd0000. - Cache clearing after sync and settings changes.
Installation
Download the release ZIP from GitHub Releases and install it from:
WordPress Admin > Plugins > Add New > Upload Plugin
Or upload the extracted folder to:
wp-content/plugins/dnn-youtube-shorts/
Activate:
Daily New Nation YouTube Shorts
Settings
Open:
Daily New Nation Shorts > Sync Settings
Configure:
- YouTube API key
- Channel ID or channel handle
- Archive slug
- Slider limit
- Archive per-page count
- Primary color
- Cron sync interval
- API pages per sync
Default channel handle:
@dailynewnation
Shortcodes
Slider:
[dnn_youtube_shorts]
Slider with attributes:
[dnn_youtube_shorts limit="8" title="Shorts" archive_url="/shorts/" autoplay="true"]
Archive:
[dnn_youtube_shorts_archive]
Database Tables
The plugin creates and uses only these dedicated tables:
{prefix}dnn_shorts
{prefix}dnn_shorts_sync_log
It does not create Shorts as normal posts.
Release
Current release:
v1.0.7
Development
Run PHP lint:
find . -name "*.php" -print0 | xargs -0 -n1 php -l
Run JavaScript syntax checks:
node --check assets/js/frontend.js
node --check assets/js/admin.js
License
GPLv2 or later.
Releases
1 release.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.
GitLab does not publish per-asset download counts, so this plugin ranks on stars and activity only.