Title: conditionkill's Replies | WordPress.org

---

# conditionkill

  [  ](https://wordpress.org/support/users/conditionkill/)

 *   [Profile](https://wordpress.org/support/users/conditionkill/)
 *   [Topics Started](https://wordpress.org/support/users/conditionkill/topics/)
 *   [Replies Created](https://wordpress.org/support/users/conditionkill/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/conditionkill/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/conditionkill/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/conditionkill/engagements/)
 *   [Favorites](https://wordpress.org/support/users/conditionkill/favorites/)

 Search replies:

## Forum Replies Created

Viewing 13 replies - 1 through 13 (of 13 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Show post number](https://wordpress.org/support/topic/show-post-number/)
 *  Thread Starter [conditionkill](https://wordpress.org/support/users/conditionkill/)
 * (@conditionkill)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/show-post-number/#post-994659)
 * Hmm.. Okay.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Show post number](https://wordpress.org/support/topic/show-post-number/)
 *  Thread Starter [conditionkill](https://wordpress.org/support/users/conditionkill/)
 * (@conditionkill)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/show-post-number/#post-994654)
 * Uhm.. No.. The 3rd post ever written..
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Show post number](https://wordpress.org/support/topic/show-post-number/)
 *  Thread Starter [conditionkill](https://wordpress.org/support/users/conditionkill/)
 * (@conditionkill)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/show-post-number/#post-994479)
 * Yeah.. Uhm.. Already tried that.. Didn’t really work..
    The ID’s for the posts
   increases by 2 for each post (sometimes (randomly) even more).. : \ Here’s a 
   screen of how it looks with the id tag: [http://img6.imageshack.us/img6/97/200902201254312sz2.png](http://img6.imageshack.us/img6/97/200902201254312sz2.png)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Is it possible to add a paragraph to the “more_link_text”?](https://wordpress.org/support/topic/is-it-possible-to-add-a-paragraph-to-the-more_link_text/)
 *  Thread Starter [conditionkill](https://wordpress.org/support/users/conditionkill/)
 * (@conditionkill)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/is-it-possible-to-add-a-paragraph-to-the-more_link_text/#post-993830)
 * Omg.. Lol, so simple..
    Thanks 😀
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Is it possible to add a paragraph to the “more_link_text”?](https://wordpress.org/support/topic/is-it-possible-to-add-a-paragraph-to-the-more_link_text/)
 *  Thread Starter [conditionkill](https://wordpress.org/support/users/conditionkill/)
 * (@conditionkill)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/is-it-possible-to-add-a-paragraph-to-the-more_link_text/#post-993811)
 * Uhm.. Lol.. Kinda fixed it.. But used huge ammount of code.. Prolly lotsa unecessary
   code here.. Lotsa!
 * Used:
    `<?php echo get_the_content_awesome('Read more..'); ?>` In template
 * And added:
 *     ```
       <?php
       function get_the_content_2($more_link_text = null, $stripteaser = 0, $more_file = '') {
       	global $id, $post, $more, $page, $pages, $multipage, $preview, $pagenow;
   
       	if ( null === $more_link_text )
       		$more_link_text = __( '(more...)' );
   
       	$output = '';
   
       	// If post password required and it doesn't match the cookie.
       	if ( post_password_required($post) ) {
       		$output = get_the_password_form();
       		return $output;
       	}
   
       	if ( $more_file != '' )
       		$file = $more_file;
       	else
       		$file = $pagenow; //$_SERVER['PHP_SELF'];
   
       	if ( $page > count($pages) ) // if the requested page doesn't exist
       		$page = count($pages); // give them the highest numbered page that DOES exist
   
       	$content = $pages[$page-1];
       	if ( preg_match('/<!--more(.*?)?-->/', $content, $matches) ) {
       		$content = explode($matches[0], $content, 2);
       		if ( !empty($matches[1]) && !empty($more_link_text) )
       			$more_link_text = strip_tags(wp_kses_no_null(trim($matches[1])));
       	} else {
       		$content = array($content);
       	}
       	if ( (false !== strpos($post->post_content, '<!--noteaser-->') && ((!$multipage) || ($page==1))) )
       		$stripteaser = 1;
       	$teaser = $content[0];
       	if ( ($more) && ($stripteaser) )
       		$teaser = '';
       	$output .= $teaser;
       	if ( count($content) > 1 ) {
       		if ( $more ) {
       			$output .= '<span id="more-'.$id.'"></span>'.$content[1];
       		} else {
       			$output = balanceTags($output);
       			if ( ! empty($more_link_text) )
       				$output .= ' <a href="'. get_permalink() . "#more-$id\" class=\"more-link\">$more_link_text</a>
       ";
       		}
   
       	}
       	if ( $preview ) // preview fix for javascript bug with foreign languages
       		$output =	preg_replace_callback('/\%u([0-9A-F]{4})/', create_function('$match', 'return "&#" . base_convert($match[1], 16, 10) . ";";'), $output);
   
       	return $output;
       }
   
       	function get_the_content_awesome($more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
       	$content = get_the_content_2($more_link_text, $stripteaser, $more_file);
       	$content = apply_filters('the_content', $content);
       	$content = str_replace(']]>', ']]>', $content);
       	return $content;
       }
       ?>
       ```
   
 * To functions.php
 * The only thing I really did was to copy the “get_the_content” and the “the_content”
   function, renamed them and made one small adjustment.
 * I changed the original:
    `$output .= ' <a href="'. get_permalink() . "#more-$
   id\" class=\"more-link\">$more_link_text</a>";`
 * To the slightly modified:
    `$output .= ' <p><a href="'. get_permalink() . "#more-
   $id\" class=\"more-link\">$more_link_text</a></p>";` (just added the <p>’s)
 * There’s prolly a 100 times shorter way to do this.. I would appreciate if someone
   could show me how.. :p
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Character limit on comment author](https://wordpress.org/support/topic/character-limit-on-comment-author/)
 *  Thread Starter [conditionkill](https://wordpress.org/support/users/conditionkill/)
 * (@conditionkill)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/character-limit-on-comment-author/#post-993690)
 * **It works, awesome! Thx alot ;D**
 * Btw if anyone wanna copy this code there was a small typo, the semicolon in the
   end was misplaced and the code should be
    `add_filter('get_comment_author', create_function('
   $author','return substr($author,0,25);'))` If you want it to work 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Character limit on comment author](https://wordpress.org/support/topic/character-limit-on-comment-author/)
 *  Thread Starter [conditionkill](https://wordpress.org/support/users/conditionkill/)
 * (@conditionkill)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/character-limit-on-comment-author/#post-993669)
 * Here’s how it looks when someone posts with a really long name..
    Messes up the
   whole site.. 🙁 [http://img217.imageshack.us/img217/8884/20090219200735ao4.png](http://img217.imageshack.us/img217/8884/20090219200735ao4.png)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Is it possible to add a paragraph to the “more_link_text”?](https://wordpress.org/support/topic/is-it-possible-to-add-a-paragraph-to-the-more_link_text/)
 *  Thread Starter [conditionkill](https://wordpress.org/support/users/conditionkill/)
 * (@conditionkill)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/is-it-possible-to-add-a-paragraph-to-the-more_link_text/#post-993665)
 * I think this might be the same issue [http://blog.niceperson.org/2005/09/05/the_content-more_link_text/](http://blog.niceperson.org/2005/09/05/the_content-more_link_text/)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Is it possible to add a paragraph to the “more_link_text”?](https://wordpress.org/support/topic/is-it-possible-to-add-a-paragraph-to-the-more_link_text/)
 *  Thread Starter [conditionkill](https://wordpress.org/support/users/conditionkill/)
 * (@conditionkill)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/is-it-possible-to-add-a-paragraph-to-the-more_link_text/#post-993662)
 * I know that I can manually add the paragraph before the “more tag” in every post,
   but I’m wondering if there’s another way to do it..
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Permalink file](https://wordpress.org/support/topic/permalink-file/)
 *  Thread Starter [conditionkill](https://wordpress.org/support/users/conditionkill/)
 * (@conditionkill)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/permalink-file/#post-988213)
 * Thx for the tip.. It was the only solution I guess..
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Permalink file](https://wordpress.org/support/topic/permalink-file/)
 *  Thread Starter [conditionkill](https://wordpress.org/support/users/conditionkill/)
 * (@conditionkill)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/permalink-file/#post-988158)
 * Uhm.. I’m guessing this isn’t possible (or is really hard to accomplish) then..:\
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Permalink file](https://wordpress.org/support/topic/permalink-file/)
 *  Thread Starter [conditionkill](https://wordpress.org/support/users/conditionkill/)
 * (@conditionkill)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/permalink-file/#post-988067)
 * Okay..
    Here’s my site (early stage) with wordpress news included.. [Screenshot1](http://img90.imageshack.us/img90/9572/20090214133548mp1.png)
 * And when I click on the article link..
    [Screenshot2](http://img90.imageshack.us/img90/2025/20090214133715ao5.png)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Permalink file](https://wordpress.org/support/topic/permalink-file/)
 *  Thread Starter [conditionkill](https://wordpress.org/support/users/conditionkill/)
 * (@conditionkill)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/permalink-file/#post-987916)
 * Looking back on what I just wrote it seems kinda weird..
    Let me try to formulate
   it in another way: **I want to chose where to be redirected when I click an article
   link.**

Viewing 13 replies - 1 through 13 (of 13 total)