Skip to content

Allows setting a custom excerpt length for all post types from the WordPress admin.

License

Notifications You must be signed in to change notification settings

arthvadrr/wordpress-post-type-excerpts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wordpress-custom-post-type-excerpts

Allows setting custom excerpt lengths (individually) for all post types from the WordPress admin.

How to use

  1. Clone this repository or download a release.
  2. Zip the project directory ("wordpress-custom-post-type-excerpts") and install from the admin plugins page.
  3. Alternatively, upload the directory to "YOUR_SITE_NAME/app/public/wp-content/plugins".
  4. All excerpt lengths are set to 55 by default (same as WordPress core's default).
  5. A new page is added to the admin menu under "Tools" titled "Set Post Excerpts".
  6. Change the desired excerpt length and select "Save".

Version

0.1.0

Stable and ready for testing

TODO

Testing

  • Make sure options are properly erased from the DB on uninstall
  • Run on clean installation
  • Run on existing installation
  • Run after adding a CPT
  • Run after removing a CPT
  • Check excerpt length on custom queries

Other

  • Name change (no longer need "custom" or "wordpress")
  • Measure for performance hit

About

Allows setting a custom excerpt length for all post types from the WordPress admin.

Resources

License

Stars

Watchers

Forks

Packages

No packages published