- Katılım
- 30 Eki 2016
- Mesajlar
- 6,673
- Beğeniler
- 10
- Puanları
- 18,020
- Konum
- Zonguldak
- Ad Soyad
- Turhan Karabulut
- Meslek
- Emlak
- Yaş
- 45

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'); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php bloginfo('atom_url'); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php bloginfo('rss2_url'); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php bloginfo('charset'); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php bloginfo('name'); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php bloginfo('description'); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php bloginfo('url'); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php bloginfo('stylesheet_url'); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php bloginfo('template_url'); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php get_header(''); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php get_sidebar(''); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php get_footer(''); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php wp_list_cats('title_li='); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php wp_list_pages('title_li='); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php get_calendar(''); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php wp_get_archives('') ?>
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;
?>
[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(''); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_permalink('') ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_category(', ') ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_time('j F Y'); ?>
Kod:
[B]Wmliz[/B].net PHP Kodu
<?php the_content(''); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_time('H:i:s'); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php comments_popup_link(__('Yorum yapılmamış,ilk yorumu senyap :)'), __('1 yorum yapılmış'), __('% yorum yapılmış')
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php if(function_exists('the_views')) { the_views(); } ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php if(function_exists('the_views')) { the_views(); } ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php edit_post_link(); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php comments_template(); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_author(''); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_author_description(''); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_author_description(''); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_author_lastname(''); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_author_posts('');?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_author_link('');?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_author_url(''); ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php the_author_email('');?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php next_post_link('') ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php previous_post_link('') ?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php if ( has_post_thumbnail() ) {the_post_thumbnail();} else {}?>
HTML:
[B]Wmliz[/B].net PHP Kodu
<?php if ( has_post_thumbnail() ) {the_post_thumbnail();} else {}?>
HTML:
[B]Wmliz[/B].net PHP Kodu
1 add_theme_support( 'post-thumbnails' );
2 set_post_thumbnail_size( 150, 150 );
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>
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 */