-2
Делаю/редактирования темы WP и им получать эту ошибку
<div id="custom-header">
<?php
// Header code from Twenty Ten
// Check if this is a post or page, if it has a thumb-nail, and if it's a big one
if (is_singular() &&
has_post_thumbnail ($post->ID) &&
(/* $src, $width, $height */ $image = wp_get_attachment_image_src(get_post_thumbnail_id ($post->ID), 'post-thumbnail')) &&
$image[1] >= HEADER_IMAGE_WIDTH) :
//Houston, we have a new header image!
echo get_the_post_thumbnail($post->ID, 'post-thumbnail') ;
else : ?>
<?php
// The Front Page Header Text widget area
//Empty by default
if (!function_exsists('dynamic_side-bar') | | !dynamic_sidebar ('front-page-header-text-blurb')) : endif;
?>
<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt=" " />
<?php endif; ?>
</div>
Это ошибка, я получаю
Parse error: syntax error, unexpected '|' in C:\wamp\www\Wordpress\wp-content\themes\harry-theme\header.php on line 31
Это сработало, спасибо. – user2846548