Parse error: syntax error, unexpected ';', expecting ')' on line 1
-
Błagam o pomoc bo walę głową w mur od 4 godzin.
Zmieniłam dzisiaj Theme na nowy i strona wyświetla się idealnie, wszystko działa z wyjątkiem stron postów (single.php). Kiedy próbuję wejśc na stronę posta widzę wiadomość:
Parse error: syntax error, unexpected ’;’, expecting ’)’ in Theme/single.php on line 1
A to mój kod w pliku single.php:
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=’posttitlewrap’>
<?php the_excerpt(); ?>
</div>
<div id=”postsitewrapper”>
<div id=”postcontentnavwrapper”><div id=”postcontent”>
<div class=”singleposthumb”>
<div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
<?php the_content(); ?>
</div>
</div>
<div id=”udostepnijbox”>
<div id=”likebuttonwrap”>
<div class=”fb-like” data-href=”<?php the_permalink() ?>” data-width=”150″ data-layout=”box_count” data-action=”like” data-show-faces=”false” data-share=”true”></div>
</div>
</div>
<div class=”commentswrap”>
<?php comments_template(); ?>
</div>
</div>
<?php get_sidebar(); ?>
<div id=”cleardiv”></div>
</div>
</div><div id=”cleardiv”></div>
<div class=’divider’></div>
<div id=”relatedpostwrapper”>
<div class=’insidebox’>
<?php $orig_post = $post;
global $post;
$tags = wp_get_post_tags($post->ID);
if ($tags) {
$tag_ids = array();
foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;$args=array(
'tag__in’ => $tag_ids,
'post__not_in’ => array($post->ID),
'posts_per_page’=> 4, // Number of related posts that will be shown.
'caller_get_posts’=> 1,
'orderby’ => 'rand’
);$my_query = new wp_query( $args );
if( $my_query->have_posts() ) {while( $my_query->have_posts() ) {
$my_query->the_post();
?>„>
<div class=”relatedposthumb”><div class=”relatedthumb”>
<?php the_post_thumbnail(’related-thumb’); ?>
</div>
<div id=”cleardiv”></div>
</div>
<? }}}
$post = $orig_post;
wp_reset_query(); ?></div>
</div><?php endwhile; endif; ?>
<?php get_footer(); ?>
Próbowałam ładować tę stronę przez FTP bez fragmentu dot. Related Posts, potem bez ładowania sidebar ale to nic nie dało. Przepuściłam ten kod przez wykrywacze syntax errors ale nic nie znalazły. Nie wiem o co chodzi 🙁 i zaczynam wariować. Proszę proszę proszę o pomoc!
- Temat ‘Parse error: syntax error, unexpected ';', expecting ')' on line 1’ jest zamknięty na nowe odpowiedzi.