Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter sknowlton

    (@sknowlton)

    without ftp access? ?? yeah, i know. i really goofed this one.
    i think a template reset url (with login of course) could be a nice feature though, if it doesn’t exist…

    for WP version 2.9.2
    i have read that this is fixed, but i dont see it.
    i reworked come core code, but don’t know where to submit it.
    change line 2620+ of wp-includes/post.php to:

    if ( !empty($exclude_tree) ) {
    		$exclude_trees = preg_split('/[\s,]+/',$exclude_tree);
    		if ( count($exclude_trees) ) {
    			$num_pages = count($pages);
    			foreach ( $exclude_trees as $tree ) {
    				$exclude = (int) $tree;
    				$children = get_page_children($exclude, $pages);
    				$excludes = array();
    				foreach ( $children as $child )
    					$excludes[] = $child->ID;
    				$excludes[] = $exclude;
    				for ( $i = 0; $i < $num_pages; $i++ ) {
    					if ( in_array($pages[$i]->ID, $excludes) )
    						unset($pages[$i]);
    				}
    			}
    		}
    	}
    Forum: Plugins
    In reply to: two columns content layout

    array/string lengths can be funny… without getting too technical, I’ll just say change your code to the following:

    <?php
    $numchars = strlen($post->post_content);
    $content = wordwrap($post->post_content, $numchars/2+2, "{{break}}");
    $content = split("{{break}}", $content);
    ?>
Viewing 3 replies - 1 through 3 (of 3 total)