Подскажите, как правильно вставить код <div id="LC_Teaser_Block_42861">загрузка...</div>, чтобы выводились тизеры сразу после поста?
Как только не пробовал, выдает ошибку типа этой:
Parse error: syntax error, unexpected '<' in /home/***/***.ru/wp-content/themes/fast3/single.php on line 38
Сам код single.php :
<?php
/**
*
* single.php
*
* The single post template. Used when a single post is queried.
*
*/
get_header(); ?>
<div class="fad-layout-wrapper">
<div class="fad-content-layout">
<div class="fad-content-layout-row">
<div class="fad-layout-cell fad-content">
<?php get_sidebar('top'); ?>
<?php
if (have_posts()){
/* Display navigation to next/previous posts when applicable */
if (theme_get_option('theme_top_single_navigation')) {
theme_page_navigation(
array(
'next_link' => theme_get_previous_post_link('« %link'),
'prev_link' => theme_get_next_post_link('%link »')
)
);
}
while (have_posts())
{
the_post();
get_template_part('content', 'single');
/* Display comments */
if ( theme_get_option('theme_allow_comments')) {
comments_template();
}
}
/* Display navigation to next/previous posts when applicable */
if (theme_get_option('theme_bottom_single_navigation')) {
theme_page_navigation(
array(
'next_link' => theme_get_previous_post_link('« %link'),
'prev_link' => theme_get_next_post_link('%link »')
)
);
}
} else {
theme_404_content();
}
?>
<?php get_sidebar('bottom'); ?>
<div class="cleared"></div>
</div>
<div class="fad-layout-cell fad-sidebar1">
<?php get_sidebar('default'); ?>
<div class="cleared"></div>
</div>
</div>
</div>
</div>
<div class="cleared"></div>
<?php get_footer(); ?>
Как только не пробовал, выдает ошибку типа этой:
Parse error: syntax error, unexpected '<' in /home/***/***.ru/wp-content/themes/fast3/single.php on line 38
Сам код single.php :
<?php
/**
*
* single.php
*
* The single post template. Used when a single post is queried.
*
*/
get_header(); ?>
<div class="fad-layout-wrapper">
<div class="fad-content-layout">
<div class="fad-content-layout-row">
<div class="fad-layout-cell fad-content">
<?php get_sidebar('top'); ?>
<?php
if (have_posts()){
/* Display navigation to next/previous posts when applicable */
if (theme_get_option('theme_top_single_navigation')) {
theme_page_navigation(
array(
'next_link' => theme_get_previous_post_link('« %link'),
'prev_link' => theme_get_next_post_link('%link »')
)
);
}
while (have_posts())
{
the_post();
get_template_part('content', 'single');
/* Display comments */
if ( theme_get_option('theme_allow_comments')) {
comments_template();
}
}
/* Display navigation to next/previous posts when applicable */
if (theme_get_option('theme_bottom_single_navigation')) {
theme_page_navigation(
array(
'next_link' => theme_get_previous_post_link('« %link'),
'prev_link' => theme_get_next_post_link('%link »')
)
);
}
} else {
theme_404_content();
}
?>
<?php get_sidebar('bottom'); ?>
<div class="cleared"></div>
</div>
<div class="fad-layout-cell fad-sidebar1">
<?php get_sidebar('default'); ?>
<div class="cleared"></div>
</div>
</div>
</div>
</div>
<div class="cleared"></div>
<?php get_footer(); ?>
От этого хостинга я просто в восторге!