A plugin wordpress for make a dynamic summary for the post. You can generate a summary and an indicator of reading time of post when the post saved
For this plugin, i worked with a boilerplate of Devin Vinson : http://wppb.me/. This POO architecture was to important for my developpement
Other sources for my developpement it was two posts in a website geekpress. This posts are here :
- http://www.geekpress.fr/hook-save-post-generer-sommaire/
- http://www.geekpress.fr/utiliser-hook-save_post-generer-sommaire-definir-temps-de-lecture-dun-article/
My job it was to adapt the code for the boilerplate of Devin Vinson
After an installation and activation of this plugin, you can see an other menu page in your back office : Summary. This administration pannel is very simple and generate with jquery ui tabs. In this options tabs, you can see the PHP codes for use correctly this plugin (dont't forget the PHP rafters):
- generate summary : echo get_post_meta($post->ID, '_summary', true);
- reading time : echo get_post_meta($post->ID, 'reading_time', true) . "minutes";
This code must be pasted into a wordpress template (single.php for example)
For the desing of summary, you can change the css in this directory : public/css/wp-dynamic-summary-public.css. It's a design minimalist. You can play with this color and css3 effect or other things...good games !!
The data in the post meta database will be erased
Many ideas for this plugin. If you want to make this plugin with me, you can develop any functions in the dev branch Be continued !!