Plugin Directory

Changeset 2222981


Ignore:
Timestamp:
01/06/2020 03:45:02 PM (6 years ago)
Author:
coder618
Message:

Ajax function html issue fix with readme update.

Location:
render-posts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • render-posts/tags/2.0/inc/ajax-loader.php

    r2221954 r2222981  
    8484                        echo "<div class='item render-posts-item'>";
    8585                            get_template_part("loop-templates/content", $post_type);
    86                         echo "<div>";
     86                        echo "</div>";
    8787                    else:
    8888                        echo "<div class='item'>{$not_found_str}</div>";                       
  • render-posts/tags/2.0/readme.txt

    r2221954 r2222981  
    1212== Description ==
    1313This 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) .
     14This plugin register a short-code, which developer/user can use to render any kind of posts, in a custom defined format/template.
     15This 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).
     16This plugin also support with Gutenberg and other builder (Because it's just a shortcode) .
    1717
    1818== Installation ==
     
    6060
    6161== 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 post
    70 - event_template()  -> when post type is event
    71 - member_template()  -> when post type is member
    72 
    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 ==
    8262How to add Custom Markup for a specific post type?
    8363Simply 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
     641. Create a folder at the root of your activated theme folder which name will be: loop-templates.
     652. Create the template file in the newly created folder, name : content-{$post_type_slug}.php . then you are good to go.
     66You can use all standard wordpress function, raw php, html there.
    8667
    8768= Template Naming =
     
    9071- content-member.php  -> when post type is member
    9172
     73Note: Plugin will add sufficient amount of DIV with dynamic CLASS's (related with the post type name) at rendering,
     74which will help you to create any kind of layout very easily by using css.
    9275
    93 
     76Developer:
     77Please Visit: [Developer Profile](https://coder618.github.io)
  • render-posts/trunk/inc/ajax-loader.php

    r2221952 r2222981  
    8484                        echo "<div class='item render-posts-item'>";
    8585                            get_template_part("loop-templates/content", $post_type);
    86                         echo "<div>";
     86                        echo "</div>";
    8787                    else:
    8888                        echo "<div class='item'>{$not_found_str}</div>";                       
  • render-posts/trunk/readme.txt

    r2221954 r2222981  
    1212== Description ==
    1313This 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) .
     14This plugin register a short-code, which developer/user can use to render any kind of posts, in a custom defined format/template.
     15This 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).
     16This plugin also support with Gutenberg and other builder (Because it's just a shortcode) .
    1717
    1818== Installation ==
     
    6060
    6161== 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 post
    70 - event_template()  -> when post type is event
    71 - member_template()  -> when post type is member
    72 
    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 ==
    8262How to add Custom Markup for a specific post type?
    8363Simply 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
     641. Create a folder at the root of your activated theme folder which name will be: loop-templates.
     652. Create the template file in the newly created folder, name : content-{$post_type_slug}.php . then you are good to go.
     66You can use all standard wordpress function, raw php, html there.
    8667
    8768= Template Naming =
     
    9071- content-member.php  -> when post type is member
    9172
     73Note: Plugin will add sufficient amount of DIV with dynamic CLASS's (related with the post type name) at rendering,
     74which will help you to create any kind of layout very easily by using css.
    9275
    93 
     76Developer:
     77Please Visit: [Developer Profile](https://coder618.github.io)
Note: See TracChangeset for help on using the changeset viewer.