выводим контент
|
1 2 3 4 5 6 7 8 9 10 |
<? if(have_posts()) : ?> <? while(have_posts()) : the_post();?> <div class="block-content"> <div class="block-text"> <h1><?=$key_h1 = get_post_meta($post->ID, 'h1', true); ?></h1> <? the_content(); ?> </div> </div> <? endwhile; ?> <? endif; ?> |
выводим header
|
1 |
<?php get_header(); ?> |
выводим footer
|
1 |
<?php get_footer(); ?> |
удаление стандартных тегов (прописываем в файл function.php)
|
1 2 3 4 |
//===Удаление некоторых стандартных тегов remove_action( 'wp_head', 'rsd_link' ); remove_action( 'wp_head', 'wlwmanifest_link' ); remove_action( 'wp_head', 'wp_generator' ); |
вывод css
|
1 |
<link rel="stylesheet" href="<?php bloginfo( 'template_url' ); ?>/css/responsive.css"> |
description и keywords
|
1 2 |
<? kama_meta_description ('Описание для главной страницы',200); ?> <? kama_meta_keywords ('ключевики для главной'); ?> |
выводим миниатюру конкретного поста
|
1 |
<?php echo get_the_post_thumbnail( 39,array(264, 264), array('class' => 'about_work_img'));?> |
39- id поста
264- ширина и высота