правка шаблона WP

verbman
На сайте с 04.11.2010
Offline
93
1053

Скачал шаблон для wordpress и столкнулся c проблемой. Шаблон не выводит метки под записями. Вот...

Что нужно дописать в single.php? вот код файла

<?php get_header(); ?>
<div class="content-layout">
<div class="content-layout-row">
<div class="layout-cell sidebar1">
<div class="layout-bg"></div>
<?php get_sidebar('default'); ?>
<div class="cleared"></div>
</div>
<div class="layout-cell content">

<?php
get_sidebar('top');
global $post;
if (have_posts()){

if (art_get_option('art_top_single_navigation')) {
// previous_post_link | next_post_link
art_page_navigation(
array(
'next_link' => art_get_previous_post_link('&laquo; %link'),
'prev_link' => art_get_next_post_link('%link &raquo;')
)
);
}

while (have_posts())
{
the_post();
art_post_wrapper(
array(
'id' => art_get_post_id(),
'class' => art_get_post_class(),
//'thumbnail' => art_get_post_thumbnail(),
'title' => art_get_meta_option($post->ID, 'art_show_post_title') ? get_the_title() : '',
'before' => art_get_metadata_icons('date', 'header'),
'content' => art_get_content(), // 'content' => 'My post content',
'after' => art_get_metadata_icons('category', 'footer')
)
);
comments_template();
}


if (art_get_option('art_bottom_single_navigation')) {
// previous_post_link | next_post_link
art_page_navigation(
array(
'next_link' => art_get_previous_post_link('&laquo; %link'),
'prev_link' => art_get_next_post_link('%link &raquo;')
)
);
}

} else {
art_404_content();
}
get_sidebar('bottom');
?>

<div class="cleared"></div>
</div>
<div class="layout-cell sidebar2">
<div class="layout-bg"></div>
<?php get_sidebar('secondary'); ?>
<div class="cleared"></div>
</div>
</div>
</div>
<div class="cleared"></div>
<?php get_footer();


---------- Добавлено 18.08.2012 в 21:44 ----------

Разобрался самостоятельно. Дописал вот так
'after' => art_get_metadata_icons('category,tag', 'footer')

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий