<? Php language_attributes ();?> - Select the language of the shell.
1 |
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> |
<? Php bloginfo ('stylesheet_url');?> - Path to the file style.css
1 |
<link rel="stylesheet" href="/<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> |
<? Php bloginfo ('name');?> - The name of the blog.
<? Php wp_title ('hello', true, 'left');?> - displays the page title, category.
1 |
//1 - строчка |
<? Php bloginfo ('stylesheet_directory');?> - Path to the template.
1 |
<?php bloginfo('stylesheet_directory'); ?> |
<? Php bloginfo ('html_type');?> - The type of HTML file.
<? Php bloginfo ('charset');?> - Encoding.
1 |
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> |
<? Php bloginfo ('description');?> - Description of the blog.
1 |
<div class="description"><?php bloginfo('description'); ?> |
<? Php echo get_option ('home');?> - Link to home page.
1 |
<a href="/<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a> |
is_single () - Used to determine positions.
post_class () - Obtain class post.
<? Php the_ID ();?> - Get the id post the page.
1 |
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>"> |
1 |
<?php if (have_posts()) : ?> |
<? Php the_permalink ()?> - Link
1 |
<?php the_tags( '<p>' . __('Tags:', 'kubrick') . ' ', ', ', '</p>'); ?> - выводим теги под стаьей
|
<? Php the_title ();?> - The name of the material.
1 |
<a href="/<?php the_permalink() ?>"><?php the_title(); ?></a> |
<? Php the_author ()?> - Author of the material.
<? Php the_time (__(' F jS, Y ',' kubrick '))?> - The time of writing.
1 |
<small><?php the_time(__('F jS, Y', 'kubrick')) ?> <!-- by <?php the_author() ?> --></small> |
<? Php the_content ('Read the rest of this entry »');?> - Display the content.
WordPress (FAQ)




