![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I tried to add some code to the functions php file in the WP editor and now my website returns this message:
Fatal error: Cannot redeclare custom_comment_form_args() (previously declared in /homepages/26/d321801647/htdocs/wp-content/themes/child2011/functions.php:21) in /homepages/26/d321801647/htdocs/wp-content/themes/child2011/functions.php on line 29 here is my functions php code: <?php function diw_post_thumbnail_feeds($content) { global $post; if(has_post_thumbnail($post->ID)) { $content = '<div>' . get_the_post_thumbnail($post->ID) . '</div>' . $content; } return $content; } add_filter('the_excerpt_rss', 'diw_post_thumbnail_feeds'); add_filter('the_content_feed', 'diw_post_thumbnail_feeds'); /** Start the engine **/ require_once(TEMPLATEPATH.'/lib/init.php'); /** Add support for custom background **/ if (function_exists('add_custom_background')) { add_custom_background(); } Any help would be greatly appreciated! Website address - www.wokintime.com |
| Tags |
| fatal error, functions, php |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Build Wordpress Site Offline | Leo | General Discussion | 2 | 05-01-2009 12:43 PM |
| Dashboard functions messed up | pcmike | General Discussion | 6 | 03-13-2009 09:46 AM |
| offline preview of site revisions | modernjoe | General Discussion | 2 | 12-28-2008 08:50 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us