Changeset 462885
- Timestamp:
- 11/14/2011 10:40:55 PM (14 years ago)
- Location:
- posts-to-page/trunk
- Files:
-
- 2 edited
-
posts-to-page.php (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
posts-to-page/trunk/posts-to-page.php
r461503 r462885 4 4 Plugin URI: http://studio.bloafer.com/wordpress-plugins/posts-to-page/ 5 5 Description: Posts to page, shortcode [posts-to-page]. Usage [posts-to-page cat_ID=1] 6 Version: 0. 86 Version: 0.9 7 7 Author: Kerry James 8 8 Author URI: http://studio.bloafer.com/ … … 18 18 $showContent = true; 19 19 $showDate = false; 20 $showAuthor = false; 20 21 $splitPoint = false; 21 22 $rowLimit = false; … … 26 27 if($args["show_content"]=="false"){ $showContent = false; } 27 28 if($args["show_date"]=="true"){ $showDate = true; } 29 if($args["show_author"]=="true"){ $showAuthor = true; } 28 30 29 31 if(isset($args["split_point"])){ $splitPoint = $args["split_point"]; } … … 47 49 $html .= '</h2>'; 48 50 } 49 if($ args["show_date"]){51 if($showDate){ 50 52 $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>'; 51 56 } 52 57 -
posts-to-page/trunk/readme.txt
r461503 r462885 4 4 Plugin URI: http://studio.bloafer.com/wordpress-plugins/posts-to-page/ 5 5 Description: Posts to page, shortcode [posts-to-page]. 6 Version: 0. 86 Version: 0.9 7 7 Author: Kerry James 8 8 Author URI: http://studio.bloafer.com/ … … 56 56 You need to use a two variables, "show_title" and "show_content" ([posts-to-page cat_ID=1 show_title=true show_content=false]) 57 57 58 = How do I show the author? = 59 60 You need to use the variable "show_author" ([posts-to-page cat_ID=1 show_author=true]) 61 58 62 = How do I link the title to the post? = 59 63 … … 65 69 66 70 == Changelog == 71 72 = 0.9 = 73 * Fixed the date variable. 74 * Added show_author variable. 67 75 68 76 = 0.8 =
Note: See TracChangeset
for help on using the changeset viewer.