salmon.ronan
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Plugins
In reply to: [WordPress Posts Timeline] Futrue(Scheduled) Postshere is a patch to see publish and future posts:
--- wordpress-posts-timeline.php.org 2013-04-16 10:55:35.155381378 +0200 +++ wordpress-posts-timeline.php 2013-04-16 10:52:19.129977219 +0200 @@ -60,7 +60,7 @@ 'category' => get_option('timeline_post_category'), 'orderby' => 'post_date', 'order' => get_option('timeline_order_posts'), - 'post_status' => 'publish', + 'post_status' => array('publish', 'future'), 'post_link' => get_option('timeline_post_link') );hope this helps.
Forum: Plugins
In reply to: [WP VeriteCo Timeline] accent don t displaythanks gotgotf,
here is a patch that covers all issues I was having :--- wp-veriteco-timeline.php.org 2012-11-30 18:01:51.000000000 +0100 +++ wp-veriteco-timeline.php 2012-12-17 11:54:37.000000000 +0100 @@ -29,7 +29,8 @@ $this->headline = get_the_title( $this->post_id ); $text = apply_filters('the_content', $post->post_content); - $text = preg_replace('/\v+|\\\[rn]/','',$text); +// $text = preg_replace('/\v+|\\\[rn]/','',$text); + $text = trim(preg_replace('/\r|\n/','',$text)); $text = $this->undoTexturize($text); $this->text = $text; @@ -66,7 +67,8 @@ '’' => '\'', '‚' => ',', '“' => '\"', - '”' => '\"' + '”' => '\"', + '…' => '...' ); // Fix Word pasting $content = strtr($content, $wp_htmltranswinuni); @@ -357,7 +359,7 @@ $loop->the_post(); $entry = new wpvtEntry( $post ); - $string .= stripslashes($entry->toJSON()); + $string .= $entry->toJSON(); if($loop->current_post < $loop->post_count - 1) { $string .= ','; @@ -407,5 +409,3 @@ } add_shortcode('WPVT', 'wpvt_sc_func'); - -?>Forum: Plugins
In reply to: [WP VeriteCo Timeline] accent don t displaysorry, wrong fix in previous post.
— $text = preg_replace(‘/\v+|\\\[rn]/’,”,$text);
++ $text = trim(preg_replace(‘/\r|\n/’,”,$text));Forum: Plugins
In reply to: [WP VeriteCo Timeline] accent don t displayduplicate
Viewing 4 replies - 1 through 4 (of 4 total)