หน้าแรก WordPress (FAQ)

();?> <? language_attributes Php -- เลือกภาษาของเปลือก

1
2
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="ru-RU"> // result

<? bloginfo Php ('');?> stylesheet_url -- เส้นทางไปยังไฟล์ style.css

1
2
<link rel="stylesheet" href="/<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="stylesheet" rel="nofollow" href="http://p2/wp-content/themes/default/style.css" type="text/css" media="screen" /> // result

<? bloginfo Php (');?> ชื่อ' -- ชื่อของบล็อก

<Php wp_title ('hello', ทรู,'ซ้าย ');?> -- แสดงชื่อหน้าหมวดหมู่

1
2
3
4
5
//1 - строчка
//2 - работает или нет по default (true)
//3 - с какой стороны будет выводится
<title><?php wp_title('Привет', true, 'left'); ?><?php bloginfo('name'); ?></title>
<title> Привет Детали ageent.ru</title> // results<

<? bloginfo Php (');?> stylesheet_directory' -- เส้นทางไปยังแม่แบบ

1
2
<?php bloginfo('stylesheet_directory'); ?>
http://p2/wp-content/themes/default/ // result

<? Php bloginfo ('html_type ');?> -- ชนิดของไฟล์ HTML

<? bloginfo Php ('');?> charset -- การเข้ารหัส

1
2
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> // result

<? bloginfo Php (');?> คำอธิบายของ -- คำอธิบายของบล็อก

1
2
<div class="description"><?php bloginfo('description'); ?>
</div><div class="description">Очередной блог на WordPress</div>

<? get_option Php echo ('');?> บ้าน -- เชื่อมโยงไปยังหน้าบ้าน

1
2
<a href="/<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a>
<a href="/">sd</a>

is_single () -- ใช้ในการกำหนดตำแหน่ง

1
2
3
4
<? Php
if (is_single()) echo "โพสต์นี้";
อื่น echo "นี่ไม่ใช่การโพสต์";
?>

post_class () -- ได้รับการโพสต์คลาส

<? Php the_ID ();?> -- รับโพสต์ id ที่หน้า

1
2
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<div class="post" id="post-2"> // result

ที่เรียกว่า The Loop เป็น

1
2
3
4
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php endwhile; ?>
<?php endif; ?>

<? Php the_permalink ()?> -- Link

1
<?php the_tags( '<p>' . __('Tags:', 'kubrick') . ' ', ', ', '</p>'); ?> - выводим теги под стаьей

<? Php the_title ();?> -- ชื่อของวัสดุที่

1
2
<a href="/<?php the_permalink() ?>"><?php the_title(); ?></a>
<a rel="nofollow" href="http://p2/?p=1">Привет, мир!</a> // result

<? Php the_author ()?> -- ผู้แต่งของวัสดุ

<? Php the_time (__(' F JS, Y',''))?> Kubrick -- เวลาของการเขียน

1
2
<small><?php the_time(__('F jS, Y', 'kubrick')) ?> <!-- by <?php the_author() ?> --></small>
<small>19.01.2009 <!-- by admin --></small> // result

<? the_content Php ('อ่านส่วนที่เหลือของ »');?> รายการนี​​้ -- การแสดงผลเนื้อหา

การอนุญาต

โพลล์นี Ajax

ที่หนึ่งของส่วนขยายของฉันที่ดีที่สุด?

สถิติ

การโฆษณา