解析错误:语法错误,在/home2/cgobr/public_html/wp-content/themes/coin/p


Parse error: syntax error, unexpected T_LNUMBER in /home2/cgobr/public_html/wp-content/themes/coin/page-home.php on line 17

我首先要说的是,我对PHP几乎一无所知,只是试图在我的主页上交换图像滑块,因为其中一个与所需的插件相冲突。我得到这个错误:

解析错误:语法错误,意想不到的T_LNUMBER在/home2/cgobr/public_html/wp-content/themes/coin/page-home.php第17行

谁能告诉我哪里的编码是错误的。我不是弱智,我懂css,懂html,就是不懂php。求求你,求求你,帮帮我!!下面是代码:

<?php
/**
* Template name: Home
*/
?>
<?php get_header() ?>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#mycarousel').jcarousel();
});
</script>
<div id="home_top">
<div id="home_rare"><ul><?=do_shortcode("[home_rare]") ?></ul></div>
<?php echo do_shortcode("[soliloquy id="79129"]"); ?>
<div class="clear"></div>
</div>
<center>
<object width="980" height="30">
<param name="movie" value="http://www.monex.com/tickers/ticker_980.swf" />
<embed src="http://www.monex.com/tickers/ticker_980.swf" width="980" height="30">
</embed></object>
<br><Br><a href="http://stores.ebay.com/coingalleryofbocaraton" target="_blank"><img src="http://cgobr.com/wp-content/uploads/2013/04/EbayStoreBanner1.jpg"></a></center><br>
<div id="home_content">
<div id="home_content_left">
<?php the_post() ?>
<h2 class="entry-title"><?php the_title() ?></h2>
<div class="entry-content">
<?php the_content() ?>
<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'kameleon' ) . '&after=</div>') ?>
<?php edit_post_link( __( 'Edit', 'kameleon' ), '<span class="edit-link">', '</span>' ) ?>
</div>
</div>
<div id="home_content_right">
<h2 class="entry-title">Featured Video</h2>
<iframe width="300" height="169" src="//www.youtube.com/embed/YQ2UIEZMCAE" frameborder="0" allowfullscreen></iframe>
<br><br>
<h2 class="entry-title">Like Us on Facebook</h2>
<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2FCoinGalleryofSouthFlorida&amp;width=292&amp;height=500&amp;show_faces=true&amp;colorscheme=light&amp;stream=true&amp;border_color&amp;header=true&amp;appId=277341438944784" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:500px;" allowTransparency="true"></iframe>
<?=get_post_meta($post->ID, 'featured_video', true)?>
</div>
<div class="clear"></div>
</div>
<?php
global $woocommerce;
$query_args = array('posts_per_page' => $number, 'no_found_rows' => 1, 'post_status' => 'publish', 'post_type' => 'product' );
$query_args['meta_query'] = array();
$query_args['meta_query'][] = array(
'key' => '_featured',
'value' => 'yes'
);
$query_args['meta_query'][] = $woocommerce->query->stock_status_meta_query();
$query_args['meta_query'][] = $woocommerce->query->visibility_meta_query();
$r = new WP_Query($query_args);
if ($r->have_posts()) : ?>
<div id="home_featured">
<h2>Featured</h2>
<ul id="mycarousel" class="jcarousel-skin-tango">
<?php while ($r->have_posts()) : $r->the_post(); global $product; ?>
<li><a href="<?php echo esc_url( get_permalink( $r->post->ID ) ); ?>" title="<?php echo esc_attr($r->post->post_title ? $r->post->post_title : $r->post->ID); ?>">
<?php echo $product->get_image("shop_catalog"); ?>
<h3><span><?php if ( $r->post->post_title ) echo get_the_title( $r->post->ID ); else echo $r->post->ID; ?></span></h3>
</a> <span class="price"><?php echo $product->get_price_html(); ?></span></li>
<?php endwhile; ?>
</ul>
</div>
<?php endif; ?>
<?php /*
<div id="home_bottom">
<div id="home_bottom_left" class="bottom_box">
<a class="button" href="<?=home_url()?>/product-category/rare-coins/" title="View all">View all</a>
<h2><span>Rare coin inventory</span></h2>
<?php
global $post;
$tmp_post = $post;
$args = array(
'numberposts' => 1,
'post_type'=> 'product',
'orderby' => 'rand',
'tax_query' => array(
array(
'taxonomy' => 'product_cat',
'field' => 'slug',
'terms' => 'rare-coins'
)
)
);
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); $first = $post->ID; ?>
<a class="home_pic" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php if ( has_post_thumbnail() ) : ?>
<a itemprop="image" href="<?php echo wp_get_attachment_url( get_post_thumbnail_id() ); ?>" class="zoom" rel="thumbnails" title="<?php echo get_the_title( get_post_thumbnail_id() ); ?>"><?php echo get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ) ) ?></a>
<?php else : ?>
<img src="<?php echo woocommerce_placeholder_img_src(); ?>" alt="Placeholder" />
<?php endif; ?>
</a>
<div class="home_bot_cont">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div><?php the_excerpt(); ?></div>
</div>
<?php endforeach; ?>
<?php $post = $tmp_post; ?>
</div>
<div id="home_bottom_right" class="bottom_box">
<a class="button" href="<?=home_url()?>/product-category/rare-coins/precious-metals-bullion/" title="View all">View all</a>
<h2><span>Precious Metals &amp; Bullion</span></h2>
<?php
global $post;
$tmp_post = $post;
$args = array(
'numberposts' => 1,
'post_type'=> 'product',
'orderby' => 'rand',
'exclude' => $first,
'tax_query' => array(
array(
'taxonomy' => 'product_cat',
'field' => 'slug',
'terms' => 'precious-metals-bullion'
)
)
);
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
<a class="home_pic" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php if ( has_post_thumbnail() ) : ?>
<a itemprop="image" href="<?php echo wp_get_attachment_url( get_post_thumbnail_id() ); ?>" class="zoom" rel="thumbnails" title="<?php echo get_the_title( get_post_thumbnail_id() ); ?>"><?php echo get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ) ) ?></a>
<?php else : ?>
<img src="<?php echo woocommerce_placeholder_img_src(); ?>" alt="Placeholder" />
<?php endif; ?>
</a>
<div class="home_bot_cont">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div><?php the_excerpt(); ?></div>
</div>
<?php endforeach; ?>
<?php $post = $tmp_post; ?>
</div>
<div class="clear"></div>
</div> */?>
<?php // get_sidebar() ?>
<?php get_footer() ?>

你的错误是由你的引号引起的,它们关闭了字符串,所以你的数字不属于那里

<?php echo do_shortcode("[soliloquy id="79129"]"); ?>

可以改成

<?php echo do_shortcode("[soliloquy id='79129']"); ?>

<?php echo do_shortcode("[soliloquy id='"79129'"]"); ?>