About this plugin
This plugin is for developers who need easy to edit the complex layouts and insert different post tile blocks inside the layout,
sidebars or page builders. By default, it has 3 pre-defined layouts; you can rewrite them in your theme or register custom layouts.
Unfortunately the pre-defined layouts have no styles inside. (Because they will be overwritten in the theme 100% anyway).
Template files
To overwrite the pre-defined templates, you should create a folder with the name “just-post-preview” in the root
of your theme and copy required templates from the /wp-content/plugins/just-post-preview/layous/ folder.
php
You can find PHP comments on the top of the demo templates. They help your IDE to show you autocomplete boxes for available variables.
Adding custom layout
php file:
add_filter('jpp_post_preview_layouts', 'my_post_preview_layouts'); function my_post_preview_layouts($layouts){ $layouts['my_layout_key'] = 'My custom layout'; return $layouts; }
php.
That’s all!
FILL FREE TO CONTACT ME IF YOU FIND ANY BUGS/ISSUES!
ISSUES TRACKER
The project is also available on github. Please post your issues or feedbacks there.
com/aprokopenko/just-post-preview