Changeset 489989
- Timestamp:
- 01/14/2012 10:46:03 PM (14 years ago)
- Location:
- posts-to-page/trunk
- Files:
-
- 2 edited
-
posts-to-page.php (modified) (5 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
posts-to-page/trunk/posts-to-page.php
r472743 r489989 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: 1. 16 Version: 1.2 7 7 Author: Kerry James 8 8 Author URI: http://studio.bloafer.com/ … … 20 20 $showAuthor = false; 21 21 $splitPoint = false; 22 $splitMore = false; 22 23 $rowLimit = false; 23 24 $postType = "post"; … … 29 30 if(trim(strtolower($args["show_date"]))=="true"){ $showDate = true; } 30 31 if(trim(strtolower($args["show_author"]))=="true"){ $showAuthor = true; } 32 if(trim(strtolower($args["split_more"]))=="true"){ $splitMore = true; } 31 33 32 34 … … 35 37 if(isset($args["limit"])){ $rowLimit = $args["limit"]; } 36 38 if(isset($args["cat_id"])){ $catID=$args["cat_id"]; } 39 40 if($splitMore){ 41 $splitPoint = "<!--more-->"; 42 } 37 43 38 44 if(!is_numeric($catID)){ $catID = 1; } … … 62 68 if($showContent){ 63 69 $html .= '<div class="post-to-page-content">'; 70 $originalContent = apply_filters('the_content', $post->post_content); 64 71 if($splitPoint){ 65 if(strstr($ post->post_content, $splitPoint)){66 $parts = explode($splitPoint, $post->post_content);72 if(strstr($originalContent, $splitPoint)){ 73 $parts = explode($splitPoint, $originalContent); 67 74 $html .= $parts[0]; 68 75 }else{ 69 $html .= $ post->post_content;76 $html .= $originalContent; 70 77 } 71 78 }else{ 72 $html .= apply_filters('the_content', $post->post_content);79 $html .= $originalContent; 73 80 } 74 81 $html .= '</div>'; -
posts-to-page/trunk/readme.txt
r472743 r489989 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: 1. 16 Version: 1.2 7 7 Author: Kerry James 8 8 Author URI: http://studio.bloafer.com/ … … 40 40 You need to use the variable "split_point", only available in version 0.3 and above ([posts-to-page cat_ID=1 split_point="<!--split-->"]) 41 41 42 = I want to split on the more point, how would I do this? = 43 44 You need to use the variable "split_more", only available in version 1.2 and above ([posts-to-page cat_ID=1 split_more="true"]) 45 42 46 = I have installed the plugin but it is only showing me the shortcode? = 43 47 … … 73 77 74 78 == Changelog == 79 80 = 1.2 = 81 * Added split_more variable. 75 82 76 83 = 1.1 =
Note: See TracChangeset
for help on using the changeset viewer.