Al kardeşim, ama önerim şudur ki w-arez kullanma kullandırma :)
function kullanici_profil_linki($id) {
$permalink_yapi = get_option( 'permalink_structure' );
if ($permalink_yapi == '') {
$kullanici_profil_linki_p = get_option( 'siteurl' ) . '/?author=' . $id;
}
else {
$user_info = get_userdata( $id );
$adi = str_replace( ' ', '-', $user_info->user_login );
$pos = strpos( $permalink_yapi, 'index.php' );
if ($pos === FALSE) {
$kullanici_profil_linki_p = get_option( 'siteurl' ) . '/author/' . $adi . '/';
}
else {
$kullanici_profil_linki_p = get_option( 'siteurl' ) . '/index.php/author/' . $adi;
}
}
return $kullanici_profil_linki_p;
}
function resim($w, $h) {
global $post;
$boyut = 'boyut' . $w . 'x' . $h;
if (get_post_meta( $post->ID, 'resim', true ) != '') {
$resim = get_post_meta( $post->ID, 'resim', true );
echo '
';
return null;
}
if (has_post_thumbnail( )) {
echo '
';
return null;
}
echo '
';
}
function tema_alt() {
$alt_bilgi = of_get_option( alt_bilgi );
echo '
';
echo ' echo 'pan class="icon-th">Kategoriler
';
wp_list_categories( 'title_li&hierarchical=0&' );
echo '
';
echo ' echo 'pan class="icon-align-justify">Sayfalar
';
wp_list_pages( 'title_li=&' );
echo '
';
echo $alt_bilgi;
echo '
';
}
function okunma_cek($yazi_id) {
$okunma = get_post_meta( $yazi_id, 'views', true );
if (!$okunma) {
echo '0';
return null;
}
echo $okunma;
}
add_theme_support( 'post-thumbnails' );
add_action( 'wp_footer', 'tema_alt' );
?>