overshee
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Fixing WordPress
In reply to: Breaking apart WP_List_PagesI’ve found the code I need to change to do this:
class Walker_Page extends Walker { var $tree_type = 'page'; var $db_fields = array ('parent' => 'post_parent', 'id' => 'ID'); //TODO: decouple this function start_lvl(&$output, $depth) { $indent = str_repeat("\t", $depth); $output .= "\n$indent<ul>\n"; } function end_lvl(&$output, $depth) { $indent = str_repeat("\t", $depth); $output .= "$indent</ul>\n"; } function start_el(&$output, $page, $depth, $current_page, $args) { if ( $depth ) $indent = str_repeat("\t", $depth); else $indent = ''; extract($args, EXTR_SKIP); $css_class = 'page_item page-item-'.$page->ID; if ( !empty($current_page) ) { $_current_page = get_page( $current_page ); if ( in_array($page->ID, (array) $_current_page->ancestors) ) $css_class .= ' current_page_ancestor'; if ( $page->ID == $current_page ) $css_class .= ' current_page_item'; elseif ( $_current_page && $page->ID == $_current_page->post_parent ) $css_class .= ' current_page_parent'; } $output .= $indent . '<li class="' . $css_class . '"><a href="' . get_ _link($page->ID) . '" title="' . attribute_escape(apply_filters('the_title', $page->post_title)) . '">' . apply_filters('the_title', $page->post_title) . '</a>'; if ( !empty($show_date) ) { if ( 'modified' == $show_date ) $time = $page->post_modified; else $time = $page->post_date; $output .= " " . mysql2date($date_format, $time); } } function end_el(&$output, $page, $depth) { $output .= "</li>\n"; } }however, I’d much rather do some changes in the functions.php of my theme than change this part. So, what do I have to do to make a custom function.php that can change this part of the code?
Forum: Fixing WordPress
In reply to: How does Mail workI have a wamp server (www.wampserver.com) set up, running off my home computer
Forum: Fixing WordPress
In reply to: How does Mail workHow do I configure said PHP though? Where is it?
Forum: Fixing WordPress
In reply to: How does Mail workWell wordpress sends out emails containing a subscriber’s password. That feature doesn’t seem to work, I assume I have to configure it. How do I do this?
Forum: Fixing WordPress
In reply to: How does Mail workWill this also send stuff passwords to users signing up and stuff like that?
Viewing 5 replies - 1 through 5 (of 5 total)