Merhaba, tekrar hoş geldiniz!

Bilgi sahibi olanlarla ihtiyaç duyanları buluşturmak, farklı bakış açılarına sahip insanları bir araya getirerek birbirlerini daha iyi anlamalarını sağlamak ve herkesin bilgisini paylaşmasını sağlamak istiyoruz.

Wordpress Kod Arşivi

Admin

S.E.O
Administrator
Katılım
30 Eki 2016
Mesajlar
6,910
Beğeniler
12
Puanları
18,020
Konum
Zonguldak
Ad Soyad
Turhan Karabulut
Meslek
Emlak
Yaş
45
Wordpress_kod_arsivim.jpg

Merhabalar,wmliz ailesi wordpress çoğumuzun kullandığı hazır ve ücretsiz bir çok amaçlı scripttir.Bu kodları sizlerle paylaşma gereği duydum ve paylaşıyorum.

1 Wordpress Versiyonunu Çekmek

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php bloginfo('version'); ?>

2 Wordpress Atom Adreslerini Çekmek

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php bloginfo('atom_url'); ?>

3 Wordpress RSS Adresi Çekmek

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php bloginfo('rss2_url'); ?>

4 Wordpress Karakter Kodlaması Çekmek

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php bloginfo('charset'); ?>

5 Wordpress Blog Adı Çekmek

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php bloginfo('name'); ?>

6 Wordpress Açıklaması Çekmek

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php bloginfo('description'); ?>

7 Wordpress Blog URL Çekmek

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php bloginfo('url'); ?>

8 Wordpress Stil Dosyası Çekmek

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php bloginfo('stylesheet_url'); ?>

9Wordpress Tema Yolu Çekmek

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php bloginfo('template_url'); ?>

10 Wordpress Header.php Çağırmak

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php get_header(''); ?>

11 Wordpress Sidebar.php Çağırmak

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php get_sidebar(''); ?>

12 Wordpress Footer.php Çağırmak

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php get_footer(''); ?>

13 Wordpress Kategorileri Listelemek

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php wp_list_cats('title_li='); ?>

14 Wordpress Sayfaları Listeletmek

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php wp_list_pages('title_li='); ?>

15 Wordpress Takvimi Çağırmak

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php get_calendar(''); ?>

16 Wordpress Arşivleri Listelemek

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php wp_get_archives('') ?>

17 Wordpress Son Yorumları Listelemek

HTML:
[B]Wmliz[/B].net PHP Kodu

<?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;
?>

Wordpress While (Konu çekme döngüsü)
[PHPR<?php if (have_posts()) : while (have_posts()) : the_post(); ?>Çekilecek Veriler<?php endwhile;else : ?>[/PHPR]

18 Wordpress Yazı Başlığını Çekmek

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_title(''); ?>

19 Wordpress Yazı URL Çekmek

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_permalink('') ?>

20 Wordpress Yazı Kategorisi Çekmek

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_category(', ') ?>

21 Wordpress Yazı Tarihi Çekmek

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_time('j F Y'); ?>

22 Wordpress Yazı İçeriği Çekmek

Kod:
[B]Wmliz[/B].net PHP Kodu
<?php the_content(''); ?>

23 Wordpress Yazının Yayınladığı Saati Çekmek

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_time('H:i:s'); ?>

24 Wordpress Yazıya Yapılan Yorumların Sayfası

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php comments_popup_link(__('Yorum yapılmamış,ilk yorumu senyap :)'), __('1 yorum yapılmış'), __('% yorum yapılmış')

25 Wordpress Sayfalama Yapmak(WP-Postviews ile

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php if(function_exists('the_views')) { the_views(); } ?>

26 Wordpress Yazı İD'si Çekmek

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php if(function_exists('the_views')) { the_views(); } ?>

27 Wordpress Yazı Düzenleme Linki (Sadece Adminlerde Çalışır

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php edit_post_link(); ?>

28 Wordpress Yorum Şablonu Çekme

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php comments_template(); ?>

29 Wordpress Yazar Adı Çekme

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_author(''); ?>

30 Wordpress Yazar Hakkında Çekme

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_author_description(''); ?>

31 Wordpress Yazar İsmi Çekme

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_author_description(''); ?>

32 Wordpress Yazar Soy İsmi Çekme

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_author_lastname(''); ?>

33 Wordpress Yazarın Makale Sayısı Çekme

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_author_posts('');?>

34 Wordpress Yazar Sayfası Çekme

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_author_link('');?>

35 Wordpress Yazarın Websitesi URL

HTML:
[B]Wmliz[/B].net PHP Kodu

<?php the_author_url(''); ?>

36 Wordpress Yazarın Mail Adresi

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_author_email('');?>

37 Wordpress Sonraki Yazı Linki

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php next_post_link('') ?>

38 Wordpress Önceki Yazı Linki

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php previous_post_link('') ?>

39 Wordpress Öne Çıkarılmış Görsel Kullanımı

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php if ( has_post_thumbnail() ) {the_post_thumbnail();} else {}?>

40 Wordpress Öne Çıkarılmış Görsel Kullanımı

HTML:
[B]Wmliz[/B].net PHP Kodu
<?php if ( has_post_thumbnail() ) {the_post_thumbnail();} else {}?>

41 Functions.php Eklenecek

HTML:
[B]Wmliz[/B].net PHP Kodu
1 add_theme_support( 'post-thumbnails' );
2 set_post_thumbnail_size( 150, 150 );

42 Wordpress Arama Formu Kullanımı

HTML:
[B]Wmliz[/B].net PHP Kodu
1 <form method="get" id="searchform" action="<?php bloginfo('url'); ?>">
2 <input class="searchbg" type="text" name="s" id="s" onfocus="if (this.value == 'Ara ...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Ara ...';}" />
3 <input class="button" type="button" value="" />
</form>

43 Wordpress Style Kodu (Bu kod olmazsa tema tanımlanamaz

HTML:
[B]Wmliz[/B].net PHP Kodu
1 /*
2 Theme Name: Burası Tema İsmi
3 Theme URI: tema sitesi
4 Description: Açıklama
5 Author: tema yapımcısı
6 Author URI: yapımcı url
7 Version: güncel tema versiyonu
8 */
 
Üst Alt
erotik film izle sex filmleri izle hdd dolum çaycuma satılık daire çaycuma satılık daire - filyos satılık daire