Atrax
(@atrax)
Ethical engineer
<?php
/*
Template Name: Имя шаблона
*/
?>
в начале файла….
да это понятно… файл с шаблоном сделал, а комбобокс для выбора шаблона не появляется
вот текст файла с шаблоном:
<?php
/*
Template Name: Registered Kettlebell lifters
*/
?>
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?php if ( !is_user_logged_in() ) : ?>
<p>You must to be registered for open this page</p>
<?php else: ?>
<!-- здесь код шаблона -->
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><?php the_title(); ?></h2>
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
а вот форма редактирования страницы в админке:
http://www.valar.ru/tm2/0709/1247125373_kosyak.jpg
В разделе Appearance выбрана именно эта тема?
Появится ли список, если переключиться на тему по умолчанию? И обратно?