Plugin Directory

Changeset 470992


Ignore:
Timestamp:
12/04/2011 10:05:45 PM (14 years ago)
Author:
Bloafer
Message:

Added typ variable

Location:
posts-to-page/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • posts-to-page/trunk/posts-to-page.php

    r462885 r470992  
    44Plugin URI: http://studio.bloafer.com/wordpress-plugins/posts-to-page/
    55Description: Posts to page, shortcode [posts-to-page]. Usage [posts-to-page cat_ID=1]
    6 Version: 0.9
     6Version: 1.0
    77Author: Kerry James
    88Author URI: http://studio.bloafer.com/
     
    2121    $splitPoint     = false;
    2222    $rowLimit       = false;
     23    $postType       = "post";
    2324    $catID          = 1;
    2425   
     
    2829    if($args["show_date"]=="true"){ $showDate = true; }
    2930    if($args["show_author"]=="true"){ $showAuthor = true; }
     31   
    3032
     33    if(isset($args["type"])){ $postType = $args["type"]; }
    3134    if(isset($args["split_point"])){ $splitPoint = $args["split_point"]; }
    3235    if(isset($args["limit"])){ $rowLimit = $args["limit"]; }
     
    3538    if(!is_numeric($catID)){ $catID = 1; }
    3639    $post_args['cat'] = $catID;
     40    $post_args['post_type'] = $postType;
    3741    if($rowLimit){
    3842        $post_args['numberposts'] = $rowLimit;
  • posts-to-page/trunk/readme.txt

    r462885 r470992  
    44Plugin URI: http://studio.bloafer.com/wordpress-plugins/posts-to-page/
    55Description: Posts to page, shortcode [posts-to-page].
    6 Version: 0.9
     6Version: 1.0
    77Author: Kerry James
    88Author URI: http://studio.bloafer.com/
     
    6464You need to use the variable "link_title" ([posts-to-page cat_ID=1 link_title=true])
    6565
     66= How do I show other post types? =
     67
     68You need to use the variable "type" ([posts-to-page cat_ID=1 type=gallery])
     69
    6670= I have read all of these, but need more help =
    6771
     
    6973
    7074== Changelog ==
     75
     76= 1.0 =
     77* Added type variable.
    7178
    7279= 0.9 =
Note: See TracChangeset for help on using the changeset viewer.