Changeset 1212490
- Timestamp:
- 08/04/2015 11:31:39 AM (11 years ago)
- Location:
- wp-float-related-posts/trunk
- Files:
-
- 2 edited
-
RelatedPosts.php (modified) (1 diff)
-
templates/default.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-float-related-posts/trunk/RelatedPosts.php
r1212488 r1212490 3 3 Plugin Name: WP RelatedPosts 4 4 Description: Display related posts by taxonomy, and increasing your pageviews by user 5 Version: 1. 0.95 Version: 1.1.0 6 6 Author: Darko Atanasovski 7 7 Author URI: http://atanasovsky.wordperss.com -
wp-float-related-posts/trunk/templates/default.php
r1212456 r1212490 40 40 <div class="rp-snippet-text"> 41 41 <?php 42 $links_regex = "@(https?://([-\w\.]+[-\w])+(:\d+)?(/([\w/_\.#-]*(\?\S+)?[^\.\s])?).*$)@";43 echo mb_substr( strip_tags( preg_replace( $links_regex, '', $relatedpost->post_content )), 0, 145, 'utf-8' ) . '...';42 //$links_regex = "@(https?://([-\w\.]+[-\w])+(:\d+)?(/([\w/_\.#-]*(\?\S+)?[^\.\s])?).*$)@"; 43 echo mb_substr( strip_tags( $relatedpost->post_content ), 0, 145, 'utf-8' ) . '...'; 44 44 ?> 45 45 </div>
Note: See TracChangeset
for help on using the changeset viewer.