Plugin Directory

Changeset 462885


Ignore:
Timestamp:
11/14/2011 10:40:55 PM (14 years ago)
Author:
Bloafer
Message:

Various fixes

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

Legend:

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

    r461503 r462885  
    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.8
     6Version: 0.9
    77Author: Kerry James
    88Author URI: http://studio.bloafer.com/
     
    1818    $showContent    = true;
    1919    $showDate       = false;
     20    $showAuthor     = false;
    2021    $splitPoint     = false;
    2122    $rowLimit       = false;
     
    2627    if($args["show_content"]=="false"){ $showContent = false; }
    2728    if($args["show_date"]=="true"){ $showDate = true; }
     29    if($args["show_author"]=="true"){ $showAuthor = true; }
    2830
    2931    if(isset($args["split_point"])){ $splitPoint = $args["split_point"]; }
     
    4749            $html .= '</h2>';
    4850        }
    49         if($args["show_date"]){
     51        if($showDate){
    5052            $html .= '<span class="post-to-page-date">' . comment_date(get_option('date_format'), $post->ID) . '</span>';
     53        }
     54        if($showAuthor){
     55            $html .= '<span class="post-to-page-author">' . get_the_author_meta( "user_nicename", $post->post_author ) . '</span>';
    5156        }
    5257       
  • posts-to-page/trunk/readme.txt

    r461503 r462885  
    44Plugin URI: http://studio.bloafer.com/wordpress-plugins/posts-to-page/
    55Description: Posts to page, shortcode [posts-to-page].
    6 Version: 0.8
     6Version: 0.9
    77Author: Kerry James
    88Author URI: http://studio.bloafer.com/
     
    5656You need to use a two variables, "show_title" and "show_content" ([posts-to-page cat_ID=1 show_title=true show_content=false])
    5757
     58= How do I show the author? =
     59
     60You need to use the variable "show_author" ([posts-to-page cat_ID=1 show_author=true])
     61
    5862= How do I link the title to the post? =
    5963
     
    6569
    6670== Changelog ==
     71
     72= 0.9 =
     73* Fixed the date variable.
     74* Added show_author variable.
    6775
    6876= 0.8 =
Note: See TracChangeset for help on using the changeset viewer.