manifest / unclassified / cno-plugin-news
Choctaw News Plugin
Choctaw News Plugin creates the News Post Type, Boilerplate Post Type and links up the ACF Fields.
by Choctaw Nation of Oklahoma · github.com/choctaw-nation/cno-plugin-news · website
★ 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/choctaw-nation/cno-plugin-news/archive/refs/heads/main.zipReadme
CNO News Plugin
A simple, lightly opinionated WordPress Plugin for Choctaw News Post Types.
This plugin uses 2 CPTs, News and Boilerplates, to handle news posts, alongside ACF (Pro) and Bootstrap.
Read more at this plugin's wiki
Quick Start
- Grab the
choctaw-news-plugin.zipfile from the latest release - Install to your WordPress app
Changelog
v1.1.12
- Fixed a bug where default templates weren't being loaded
- Fixed a bug where if no templates could be found, the WP_Error wasn't being handled correctly
v1.1.11
- Fixed a bug that wasn't allowing
lite-vimeoscript to be properly registered - Fixed a bug where default boilerplates and no selected boilerplates was causing the news title to appear again as a boilerplate
- Updated the default
single-newslayout
v1.1.9
- Fix WordPress Hook errors
v1.1.8
- Fixed a typo in the Plugin Header that broke the required plugins line
v1.1.7
- Cleaned up Deployment's included files
- Added license to bundle
- Updated GH action name
- Added ACF to required plugin list
- Init/De-init plugin with WP hooks
- Moved ACF classes from
/objectsto/classes
v1.1.6
(Actually deployment ready!)
- Added Quick Start
- Added the top-level php file so the plugin actually works.
v1.1.5
- Deployment ready!
v1.1.4
- Updated the News API
- Now handles adding default boilerplates
- Now handles injecting additional classes!
v1.1.2
- Fixes template loading issue
v1.1.1
Fixes #5
Registers 2 new image sizes, both at 16:9 ratio, but at 2x for Retina display support:
add_image_size( 'choctaw-news-preview', 1392, 784 );
add_image_size( 'choctaw-news-single', 2592, 1458 );
v1.1.0
- Added Snippet for "Recent News" that displays posts flagged as "featured post", then rest of recent posts (similar to choctawnation.com, choctawnation.com/news, and choctawnation.com/biskinik as of Nov 3, 2023).
- Namespace ACF_Image
v1.0.1
Finished the API for the \News object.
- Created all
get_the_*andthe_*functions for all properties - Updated "published date" functions to allow for article publish date being different than the original/external article publish date
- Updated the 'single-choctaw-news' template to load each property that could be set, as well as adding conditionals to only render markup if content exists (e.g.
has_boilerplateswill now conditionally render the boilerplate section, where previously an empty<section class='boilerplates'></section>would have been rendered). - Added comments
Misc.
- Bug fix: Updated footer calls from
wp_footertoget_footer. - Migrated this file's header material to the wiki.
- Updated
BoilerplateCPT args.
'public' => false,
'show_ui' => true,
'show_in_menu' => true,
'has_archive' => false,
- Also removed
BoilerplateCPT support for featured image - Moved ACF & CPT files to their proper folders
- Cleaned up the
plugin-logicclasses
v1.0
- First build!