Spending hours fixing my function.php page and all seemed well, except Im getting errors on my rss feed at: blog.xternalit.co.uk. I leave that issue to rest and installed wordpress iphone app. The connection to my blog works perfect with wordpress' default theme. Ha! But it keeps making me resetting my password. So hell with that. Switched back to my theme and I cant connect from app to blog. The internet say there's n issue with my function.php.
here's a look again at the script:
'',
'after_widget' = '',
'before_title' = '',
'after_title' = '',
));
function content($num) {
$theContent = get_the_content();
$output = preg_replace('/]+./','', $theContent);
$limit = $num+1;
$content = explode(' ', $output, $limit);
array_pop($content);
$content = implode(" ",$content)."...";
echo $content;
}
function post_is_in_descendant_category( $cats, $_post = null )
{
foreach ( (array) $cats as $cat ) {
// get_term_children() accepts integer ID only
$descendants = get_term_children( (int) $cat, 'category');
if ( $descendants && in_category( $descendants, $_post ) )
return true;
}
return false;
}
//custom comments
function mytheme_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?
id="li-comment-"
"
%s says:'), get_comment_author_link()) ?
comment_approved == '0') : ?
$depth, 'max_depth' = $args['max_depth']))) ?
</div>
0 && isset($_POST['rockwell_settings']) )
{
$options = array ( 'style','logo_img','logo_alt','logo_txt', 'logo_tagline', 'tagline_width', 'contact_email','ads', 'advertise_page', 'twitter_link', 'facebook_link', 'flickr', 'about_tit', 'about_txt', 'analytics');
foreach ( $options as $opt )
{
delete_option ( 'rockwell_'.$opt, $_POST[$opt] );
add_option ( 'rockwell_'.$opt, $_POST[$opt] );
}
}
add_theme_page(__('Rockwell Options'), __('Rockwell Options'), 'edit_themes', basename(__FILE__), 'rockwell_settings');
}
function rockwell_settings ()
{?
Rockwell Options Panel
General Settings
Theme Color Scheme
selected="selected"pink.css
selected="selected"blue.css
selected="selected"orange.css
Logo image (full path to image)
" class="regular-text" /
Logo image ALT text
" class="regular-text" /
Text logo
" class="regular-text" /
Leave this empty if you entered an image as logo
Logo Tag Line
" class="regular-text" /
Tag Line Box Width (px)Default width: 300px
" class="regular-text" /
Email Address for Contact Form
" class="regular-text" /
Twitter link
" class="regular-text" /
Facebook link
" class="regular-text" /
Flickr Photostream
selected="selected"Yes
selected="selected"No
Make sure you have FlickrRSS plugin activated if you choose to enable Flickr Photostream
Sidebar About Box
Title
" class="regular-text" /
Text
Ads Box Settings
Ads Section Enabled:
selected="selected"Yes
selected="selected"No
Make sure you have AdMinister plugin activated and have the position "Sidebar" created within the plugin.
Advertise Page
Google Analytics code:
\'"[\'"].*/i', $post-post_content, $matches);
$first_img = $matches [1] [0];
if(empty($first_img)){ //Defines a default image
$first_img = "/images/default.jpg";
}
return $first_img;
}
?
Please note, if I add: to the bottome of the page, the blog crashes. Without: I get tons of errors. Any help?