• <?php
    if ( function_exists('register_sidebar') ) {
    	register_sidebar(array(
        	'name' => 'Left Sidebar',
            'before_widget' => '<li id="%1$s" class="widget %2$s">',
            'after_widget' => '</li>',
            'before_title' => '<div id="widget">
    				<div class="slmenu"></div>
    				<div class="smenu"></div>
    				<div class="srmenu"></div>
    			</div><h2 class="widgettitle">',
            'after_title' => '</h2>',
        ));
    
    }
    function content($limit) {
      $content = explode(' ', get_the_content(), $limit);
      if (count($content)>=$limit) {
        array_pop($content);
        $content = implode(" ",$content).'...';
      } else {
        $content = implode(" ",$content);
      }
      $content = preg_replace('/\[.+\]/','', $content);
      $content = apply_filters('the_content', $content);
      $content = str_replace(']]>', ']]>', $content);
      return $content;
    }
    
    if(!function_exists('get_sidebars')) {
    	function get_sidebars($args='')
    	{
    		 get_sidebar($args);
    	}
    }
    
    if ( function_exists("add_theme_support") ) { add_theme_support("post-thumbnails"); } 
    
    if ( ! function_exists( 'twentyeleven_comment' ) ) :
    /**
     * Template for comments and pingbacks.
     *
    ...
    etc.
    ...
    		esc_html( get_the_author() )
    	);
    }
    
    */
    endif;
    
    ?>

    I have custom theme wordpress site. after comments it say, 404 error

    I have testet with another theme and it is working finr I guess some issues in fucntions.php it was working fine 2 day earlier i have checked all plugins disbaled and enabled mathod, htaccess issues.

    Any help is appreciated.

    Thanks

  • The topic ‘after comments it says 404 error.’ is closed to new replies.