Title: Help in function key.
Last modified: August 20, 2016

---

# Help in function key.

 *  [call2shain](https://wordpress.org/support/users/call2shain/)
 * (@call2shain)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/help-in-function-key/)
 *     ```
       <?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;
   
       /**
   
       ?>
       ```
   
 * Please help in solving in it. i m without pc now so i cant check it now
    I am
   getting issues on line 41
 * Any help appreciated.
 * Thanks

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

 *  Thread Starter [call2shain](https://wordpress.org/support/users/call2shain/)
 * (@call2shain)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/help-in-function-key/#post-2962381)
 * Sorry it is functions.php and I am getting issue on line 41.
 * Thanks.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/help-in-function-key/#post-2962383)
 * what exactly is the error message?
 * can you paste the full code of functions.php into a [http://pastebin.com/](http://pastebin.com/)
   and post the link to it here?
    ( [http://codex.wordpress.org/Forum_Welcome#Posting_Code](http://codex.wordpress.org/Forum_Welcome#Posting_Code))
 *  Thread Starter [call2shain](https://wordpress.org/support/users/call2shain/)
 * (@call2shain)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/help-in-function-key/#post-2962384)
 * sure please
 * it is here [http://pastebin.com/7LH8HmjX](http://pastebin.com/7LH8HmjX)
 * Your help is appreciating something missed.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/help-in-function-key/#post-2962385)
 * the commenting section at the end is not closed, leaving an conditional stement
   open;
 * try to change these lines:
 *     ```
       }
       endif;
   
       /**
       ```
   
 * to:
 *     ```
       }
       */
   
       endif;
       ```
   
 *  Thread Starter [call2shain](https://wordpress.org/support/users/call2shain/)
 * (@call2shain)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/help-in-function-key/#post-2962388)
 * Thank you for your help sir.
 * I have an another issues that after commenting it reflects 404 error.
 * When I comment in the box it says 404 error on page.
 * I have checked the Permalinks that is correct, HTaccess is default as per wordpress
   so there is no issues.
 * test with twenty theme it doesn’t reflect any issues with 404 error
 * Do let me know is anything is missing in the functions.php
 * Thanks you again
 *  Thread Starter [call2shain](https://wordpress.org/support/users/call2shain/)
 * (@call2shain)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/help-in-function-key/#post-2962389)
 * forget to add , It is custom theme created by someone.
 * thanks

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

The topic ‘Help in function key.’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [call2shain](https://wordpress.org/support/users/call2shain/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/help-in-function-key/#post-2962389)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
