WordPress Versiyonu ;
<?php bloginfo('version'); ?>
Atom Adresi ;
<?php bloginfo('atom_url'); ?>
RSS adresi ;
<?php bloginfo('rss2_url'); ?>
Karakter Kodlaması ;
<?php bloginfo('charset'); ?>
Blog Adı ;
<?php bloginfo('name'); ?>
Blog Açıklaması ;
<?php bloginfo('description'); ?>
Blog Adresi ;
<?php bloginfo('url'); ?>
Stil Dosyası ;
<?php bloginfo('stylesheet_url'); ?>
Tema Yolu ;
<?php bloginfo('template_url'); ?>
Header.php çağırır ;
<?php get_header(''); ?>
Sidebar.php çağırır ;
<?php get_sidebar(''); ?>
Footer.php çağırır ;
<?php get_footer(''); ?>
Kategorileri Listele ;
<?php wp_list_cats('title_li='); ?>
Sayfaları Listele ;
<?php wp_list_pages('title_li='); ?>
Takvim Göster ;
<?php get_calendar(''); ?>
Arşivleri Listele ;
<?php wp_get_archives('') ?>
Son Yorumları Listele ;
<?php global $wpdb; $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID,
comment_post_ID,
comment_author, comment_date_gmt, comment_approved,
comment_type,comment_author_url, SUBSTRING(comment_content,1,30)
AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts
ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID
) WHERE comment_approved = '1' AND comment_type = ''
AND post_password = '' ORDER BY comment_date_gmt DESC LIMIT 10";
$comments = $wpdb->get_results($sql);
$output = $pre_HTML;
$output .= "\n<ul>";
foreach ($comments as $comment) {
$output .= "\n<li>".strip_tags($comment->comment_author) .":" .
"<a href=\"" . get_permalink($comment->ID)."#comment-" .
$comment->comment_ID . "\" title=\"on ".$comment->post_title . "\">" .
strip_tags($comment->com_excerpt)."</a></li>"; } $output .= "\n</ul>"; $output .= $post_HTML; echo $output; ?>
While Döngüsü ;
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>Çekilecek Veriler
<?php endwhile;else : ?>
Yazı Başlışı ;
<?php the_title(''); ?>
Yazı Adresi ;
<?php the_permalink('') ?>
Yazı Kategorisi ;
<?php the_category(', ') ?>
Yazı Tarihi ;
<?php the_time('j F Y'); ?>
Yazı İçeriği ;
<?php the_content(''); ?>
Yazının yayınladığı saat ;
<?php the_time('H:i:s'); ?>
Yazıya Yapılan Yorum Sayısı ;
<?php comments_popup_link(__('Yorum yapılmamış'), __('1 yorum yapılmış'),
__('% yorum yapılmış'), '', __('Yorumlara kapalı')); ?>
Yazı Okunma Sayısı (WP-PostViews eklentisi gerekir) ;
<?php if(function_exists('the_views')) { the_views(); } ?>
Yazı İD ;
<?php the_ID(); ?>
Yazı Düzenleme Linki ;
<?php edit_post_link(); ?>
Yorum Şablonu (Comments.php) ;
<?php comments_template(); ?>
Yazar adı ;
<?php the_author(''); ?>
Yazar Hakkında ;
<?php the_author_description(''); ?>
Yazar İsmi ;
<?php the_author_firstname(''); ?>
Yazar Soyismi ;
<?php the_author_lastname(''); ?>
Yazar’ın Makale sayısı ;
<?php the_author_posts('');?>
Yazar Sayfası ;
<?php the_author_link('');?>
Yazar’ın Web Sitesi ;
<?php the_author_url(''); ?>
Yazar’ın E-Mail Adresi ;
<?php the_author_email('');?>
Sonraki Yazı Linki ;
<?php next_post_link('') ?>
Önceki Yazı Linki ;
<?php previous_post_link('') ?>
Sayfalama (Pagenavi gerekir) ;
<?php wp_pagenavi(); ?>
Öne Çıkarılmış Görsel Kullanımı ;
While döngüsü içerisinde ;
<?php if ( has_post_thumbnail() ) {the_post_thumbnail();} else {}?>
funtions.php’de eklenecek ;
add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 125, 125 );
The Excerpt kullanımı ;
While Döngüsü içerisinde ;
<?php the_excerpt(''); ?>
functions.php’de eklenecek ;
function new_excerpt_length($length) {
return 12;
}
add_filter('excerpt_length', 'new_excerpt_length');
Arama Formu ;
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>">
<input class="searchbg" type="text" name="s" id="s" onfocus="if (this.value == 'Ara ...')
{this.value = '';}" onblur="if (this.value == '') {this.value = 'Ara ...';}" />
<input class="button" type="button" value="" />
</form>
-Header.php olduğunu belirten koddur.(</head> tagından önce yazılmalıdır.)
<?php wp_head(); ?>
-Yazının olup olmadığını sorgular.(Döngüyü başlatır.)
<?php if(have_posts()) : ?>
#Style.css Kodları#
-Tema hakkında bilgiler.(Theme Name : tema ismi , Description : açıklama , Theme URl : tema adresi , Version : temanın versiyonu , Author : tema yapımcısı , Author URl : tema yapımcısının site adresi , Tags : tema etiketleri)
/* Theme Name: # Description:# Theme URI: # Version: 1.0 Author: # Author URI: # */
''Wordpress Kod Arşivi '' Bu yazı; 24 Ocak 2014 Cuma tarihinde Wordpress kategorisine eklenmiş olup Metehan Çınar tarafından yayınlanmıştır. Ayrıca henüz yorum yapılmamış bir yazıdır.

Bu Yazı Hakkında Birseyler Demek İstermisiniz ?