=== Render Posts === Contributors: coder618 Donate link: https://coder618.github.io Tags: Show Post, Render Post Requires at least: 4.6 Tested up to: 5.3 Stable tag: 1.0 Requires PHP: 7.0 License: GPLv2 License URI: https://www.gnu.org/licenses/gpl-2.0.html == Description == This plugin will help the developer / user to show/render posts very easily regardless of the post type. This plugin register a short-code, which developer/user can use to render any kind of posts, in a custom defined format. This plugin also contains a (AJAX) load more feature, which help users to load remaining posts without leaving the page, (Also known as Ajax Pagination). This plugin also support with Gutenberg (Because it's just a shortcode) . == Installation == - Upload the plugin folder to the `/wp-content/plugins` directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the 'Plugins' screen in WordPress Dashboard. This plugin do not have any settings page, so after install you just have to active the plugin, thats it. Then you can use [render-post] shortcode. == Frequently Asked Questions == = Is this plugin have any settings page = No, This plugin currently do not have any settings page. you just have to active the plugin to use. = Can I Render/Show Custom Post type by this plugin short-code = Yes, You can, you have to provide type argument with your post type. eg [render-posts type="custom-post-type-slug"] = How to render/show posts with my custom markup = To show post with you markup you have to define a function, which name will be a specific formate. eg. event_template(), member_template() etc. When you post type is event, member. Please see the Technical Documentation for more info. == Changelog == = 1.0.0 = * First release. == Upgrade Notice == = 1.0.0 = First relase. == How to use == eg. shortcode: [render-posts type="post"] = Available Arguments = - *type = "You Post type " - number = "Posts Per Page" -- if not specify it will inherit from wordpress global posts_per_page option serttings. - title = "Section title" - detail = "Section Detail" - noloadmore = "true" -- Set it if you dont want to show loadmore button *required field. == Technical documentation == How to add Custom Markup for a specific post type ? To make a custom markup there are two steps: 1. Crate a php function with a specific name. 2. Add your created function in function.php or by other plugin so that your created function can be accessible by WordPress. = Function Naming = - post_template() -> when post type is post - event_template() -> when post type is event - member_template() -> when post type is member Your defined function will receive a single post id as its first argument. You can use this id to manipulate/make the specific posts markup. Note: Plugin will render sufficient amount of DIV with dynamic CLASS's (related with the post type name) at rendering, which will help you to create any kind of layout very easily by using css. For Example function: Please Visit: [Github-Gist](https://gist.github.com/coder618/9228d07b7653d27e4978c051202e4e91)