Sitemde bileşen desteği yok.İnternette anlatılanları uyguladığımda bileşen desteği ekleniyor ancak tema bozuluyor.Bana yardımcı olabilecek birisi varmı.

Ek Olarak: Buda functions kodları

/**
* @package WordPress
* @subpackage Default_Theme
*/

add_filter( 'show_admin_bar', '__return_false' );
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 180, 110, true );
add_image_size( 'single-post-thumbnail', 240, 190 );

function the_content_limit($max_char, $more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
$content = get_the_content($more_link_text, $stripteaser, $more_file);
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
$content = strip_tags($content);

if (strlen($_GET['p']) > 0) {
echo "

";
echo $content;
echo " "."[Devamı]";
echo "

";
}
else if ((strlen($content)>$max_char) && ($espacio = strpos($content, " ", $max_char ))) {
$content = substr($content, 0, $espacio);
$content = $content;
echo "

";
echo $content;
echo "...";
echo " "."[Devamı]";
echo "

";
}
else {
echo "

";
echo $content;
echo "

";
}
}
function baslik($kac) {
$baslik = get_the_title();
if(strlen($baslik)> $kac) {
$baslik = mb_substr($baslik, 0, $kac) . '..';
}
echo $baslik;
}

/* ------------
MENÜLER //
*/
register_nav_menus(

array(

'ustmenu' => __( 'Üst Menü', 'fs_menu' ),
'anamenu' => __( 'Ana Menü', 'fs_menu' ),
'hizlimenu' => __( 'Hızlı Menü (Anasayfa)', 'fs_menu' ),) );

/* -----------
PANEL //
*/

function fs_get_option($key) {

global $fs_options;
$fs_options = get_option('fs_options');

$fs_defaults = array(
'fs_color' => 'red',
'fs_sidebar' => 'ts-sb-right',
'fs_align' => 'ts-main-left',
'fs_logo' => get_bloginfo('template_url').'/images/logo.png',
'fs_rss' => get_bloginfo('rss2_url'),
'fs_slider_items' => 3,
'fs_home_title' => __('latest blog posts', 'fors'),
'fs_home_items' => 6,
'fs_about_title' => __('about me', 'fors'),
'fs_about' => __('Enter a short text about you on the theme options page.', 'fors'),
'fs_social_title' => __('get in touch', 'fors')
);

foreach($fs_defaults as $k=>$v) {
if (!$fs_options[$k])
$fs_options[$k] = $fs_defaults[$k];
}

return $fs_options[$key];
}

require_once( TEMPLATEPATH . '/lib/admin/theme-options.php');

add_action('wp_footer','fs_theme_footer');

function fs_theme_footer() {

echo "\n".fs_get_option('fs_tracking')."\n";

}


//Üyelere Resim Yükleme İzini
if ( current_user_can('contributor') && !current_user_can('upload_files') )
add_action('admin_init', 'allow_contributor_uploads');
function allow_contributor_uploads() {
$contributor = get_role('contributor');
$contributor->add_cap('upload_files');
}

?>


Ek Olarak: Buda functions kodları

/**
* @package WordPress
* @subpackage Default_Theme
*/

add_filter( 'show_admin_bar', '__return_false' );
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 180, 110, true );
add_image_size( 'single-post-thumbnail', 240, 190 );

function the_content_limit($max_char, $more_link_text = '(more...)', $stripteaser = 0, $more_file = '') {
$content = get_the_content($more_link_text, $stripteaser, $more_file);
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
$content = strip_tags($content);

if (strlen($_GET['p']) > 0) {
echo "

";
echo $content;
echo " "."[Devamı]";
echo "

";
}
else if ((strlen($content)>$max_char) && ($espacio = strpos($content, " ", $max_char ))) {
$content = substr($content, 0, $espacio);
$content = $content;
echo "

";
echo $content;
echo "...";
echo " "."[Devamı]";
echo "

";
}
else {
echo "

";
echo $content;
echo "

";
}
}
function baslik($kac) {
$baslik = get_the_title();
if(strlen($baslik)> $kac) {
$baslik = mb_substr($baslik, 0, $kac) . '..';
}
echo $baslik;
}

/* ------------
MENÜLER //
*/
register_nav_menus(

array(

'ustmenu' => __( 'Üst Menü', 'fs_menu' ),
'anamenu' => __( 'Ana Menü', 'fs_menu' ),
'hizlimenu' => __( 'Hızlı Menü (Anasayfa)', 'fs_menu' ),) );

/* -----------
PANEL //
*/

function fs_get_option($key) {

global $fs_options;
$fs_options = get_option('fs_options');

$fs_defaults = array(
'fs_color' => 'red',
'fs_sidebar' => 'ts-sb-right',
'fs_align' => 'ts-main-left',
'fs_logo' => get_bloginfo('template_url').'/images/logo.png',
'fs_rss' => get_bloginfo('rss2_url'),
'fs_slider_items' => 3,
'fs_home_title' => __('latest blog posts', 'fors'),
'fs_home_items' => 6,
'fs_about_title' => __('about me', 'fors'),
'fs_about' => __('Enter a short text about you on the theme options page.', 'fors'),
'fs_social_title' => __('get in touch', 'fors')
);

foreach($fs_defaults as $k=>$v) {
if (!$fs_options[$k])
$fs_options[$k] = $fs_defaults[$k];
}

return $fs_options[$key];
}

require_once( TEMPLATEPATH . '/lib/admin/theme-options.php');

add_action('wp_footer','fs_theme_footer');

function fs_theme_footer() {

echo "\n".fs_get_option('fs_tracking')."\n";

}


//Üyelere Resim Yükleme İzini
if ( current_user_can('contributor') && !current_user_can('upload_files') )
add_action('admin_init', 'allow_contributor_uploads');
function allow_contributor_uploads() {
$contributor = get_role('contributor');
$contributor->add_cap('upload_files');
}

?>