Skip to content

wyde22/WP-dynamic-summary-for-post

Repository files navigation

First

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

Tools

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 :

My job it was to adapt the code for the boilerplate of Devin Vinson

Using the Plugin

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)

CSS of summary

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 !!

Uninstall

The data in the post meta database will be erased

Future

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 !!

About

A plugin wordpress for make a dynamic summary for the post

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published