Changeset 2222981
- Timestamp:
- 01/06/2020 03:45:02 PM (6 years ago)
- Location:
- render-posts
- Files:
-
- 4 edited
-
tags/2.0/inc/ajax-loader.php (modified) (1 diff)
-
tags/2.0/readme.txt (modified) (3 diffs)
-
trunk/inc/ajax-loader.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
render-posts/tags/2.0/inc/ajax-loader.php
r2221954 r2222981 84 84 echo "<div class='item render-posts-item'>"; 85 85 get_template_part("loop-templates/content", $post_type); 86 echo "< div>";86 echo "</div>"; 87 87 else: 88 88 echo "<div class='item'>{$not_found_str}</div>"; -
render-posts/tags/2.0/readme.txt
r2221954 r2222981 12 12 == Description == 13 13 This plugin will help the developer / user to show/render posts very easily regardless of the post type. 14 This plugin register a short-code, which developer/user can use to render any kind of posts, in a custom defined format .15 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).16 This plugin also support with Gutenberg (Because it's just a shortcode) .14 This plugin register a short-code, which developer/user can use to render any kind of posts, in a custom defined format/template. 15 This plugin also contains a (AJAX) load more feature, which help users to load remaining posts without leaving the current page, (Also known as Ajax Pagination). 16 This plugin also support with Gutenberg and other builder (Because it's just a shortcode) . 17 17 18 18 == Installation == … … 60 60 61 61 == Technical documentation == 62 How to add Custom Markup for a specific post type ?63 64 To make a custom markup there are two steps:65 1. Crate a php function with a specific name.66 2. Add your created function in function.php or by other plugin so that your created function can be accessible by WordPress.67 68 = Function Naming =69 - post_template() -> when post type is post70 - event_template() -> when post type is event71 - member_template() -> when post type is member72 73 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.74 75 Note: Plugin will render sufficient amount of DIV with dynamic CLASS's (related with the post type name) at rendering,76 which will help you to create any kind of layout very easily by using css.77 78 For Example function:79 Please Visit: [Github-Gist](https://gist.github.com/coder618/9228d07b7653d27e4978c051202e4e91)80 81 == Technical documentation for v2.0 ==82 62 How to add Custom Markup for a specific post type? 83 63 Simply follow this steps: 84 1. Create a folder at the root of your activated theme folder which name will be: loop-templates . 85 2. Create the template file in the newly created folder, name : content-{$post_type_slug}.php . then you are good to go. you can use all standard wordpress function, raw php, html there 64 1. Create a folder at the root of your activated theme folder which name will be: loop-templates. 65 2. Create the template file in the newly created folder, name : content-{$post_type_slug}.php . then you are good to go. 66 You can use all standard wordpress function, raw php, html there. 86 67 87 68 = Template Naming = … … 90 71 - content-member.php -> when post type is member 91 72 73 Note: Plugin will add sufficient amount of DIV with dynamic CLASS's (related with the post type name) at rendering, 74 which will help you to create any kind of layout very easily by using css. 92 75 93 76 Developer: 77 Please Visit: [Developer Profile](https://coder618.github.io) -
render-posts/trunk/inc/ajax-loader.php
r2221952 r2222981 84 84 echo "<div class='item render-posts-item'>"; 85 85 get_template_part("loop-templates/content", $post_type); 86 echo "< div>";86 echo "</div>"; 87 87 else: 88 88 echo "<div class='item'>{$not_found_str}</div>"; -
render-posts/trunk/readme.txt
r2221954 r2222981 12 12 == Description == 13 13 This plugin will help the developer / user to show/render posts very easily regardless of the post type. 14 This plugin register a short-code, which developer/user can use to render any kind of posts, in a custom defined format .15 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).16 This plugin also support with Gutenberg (Because it's just a shortcode) .14 This plugin register a short-code, which developer/user can use to render any kind of posts, in a custom defined format/template. 15 This plugin also contains a (AJAX) load more feature, which help users to load remaining posts without leaving the current page, (Also known as Ajax Pagination). 16 This plugin also support with Gutenberg and other builder (Because it's just a shortcode) . 17 17 18 18 == Installation == … … 60 60 61 61 == Technical documentation == 62 How to add Custom Markup for a specific post type ?63 64 To make a custom markup there are two steps:65 1. Crate a php function with a specific name.66 2. Add your created function in function.php or by other plugin so that your created function can be accessible by WordPress.67 68 = Function Naming =69 - post_template() -> when post type is post70 - event_template() -> when post type is event71 - member_template() -> when post type is member72 73 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.74 75 Note: Plugin will render sufficient amount of DIV with dynamic CLASS's (related with the post type name) at rendering,76 which will help you to create any kind of layout very easily by using css.77 78 For Example function:79 Please Visit: [Github-Gist](https://gist.github.com/coder618/9228d07b7653d27e4978c051202e4e91)80 81 == Technical documentation for v2.0 ==82 62 How to add Custom Markup for a specific post type? 83 63 Simply follow this steps: 84 1. Create a folder at the root of your activated theme folder which name will be: loop-templates . 85 2. Create the template file in the newly created folder, name : content-{$post_type_slug}.php . then you are good to go. you can use all standard wordpress function, raw php, html there 64 1. Create a folder at the root of your activated theme folder which name will be: loop-templates. 65 2. Create the template file in the newly created folder, name : content-{$post_type_slug}.php . then you are good to go. 66 You can use all standard wordpress function, raw php, html there. 86 67 87 68 = Template Naming = … … 90 71 - content-member.php -> when post type is member 91 72 73 Note: Plugin will add sufficient amount of DIV with dynamic CLASS's (related with the post type name) at rendering, 74 which will help you to create any kind of layout very easily by using css. 92 75 93 76 Developer: 77 Please Visit: [Developer Profile](https://coder618.github.io)
Note: See TracChangeset
for help on using the changeset viewer.