Należy to zrobić w następujący sposób:
1. Tworzysz dla strony kontakt plik page-kontakt.php w folderze Twojego szablonu i podpinasz pod niego sidebar (najlepiej przerobić plik page.php z motywu Thirtyeleven lub Thirtythirteen. Tutaj dokładnie jest to opisane wraz z przykładami:
http://codex.wordpress.org/Page_TemplatesKod
<?php/*
Template Name: Kontakt
*/ ?>
<?php get_header(); ?>
<section id="content-block">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<?php get_sidebar('kontakt'); ?>
<?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>
<?php endwhile; endif; ?>
</section>
<?php get_footer(); ?>
2. używasz funkcji register_sidebar w pliku functions.php Twojego szablonu. Przykład:
http://codex.wordpress.org/Function_Refere...egister_sidebarKod
if ( function_exists('register_sidebar') ) {
register_sidebar(array(
'name' => 'Contact page',
'id' => 'sidebar-kontakt',
'description' => 'Contact page description',
'before_widget' => '',
'after_widget' => '',
));
}
3. Dla pliku page-kontakt tworzysz plik sidebar-kontakt.php. Wrzucasz do niego coś w tym stylu:
Kod
<?php
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar-kontakt') ) : ?>
<p>There are no content</p>
<?php endif; ?>
To najprostsze przykłady. Możesz oczywiście utworzyć sobie swój Custom Post Type, do tego jakąś taksonomię i inaczej to ułożyć.
Plugin podczepiasz w Appearance -> Widgets