June 18, 201214 yr I'm following this tutorials to create a html5 based WordPress site. I'm getting an error but I have no idea how to solve this! This is the tutorial: TutorialLink index.php <?php get_header(); ?> <div id="main"> <div id="content"> <h1> News From ABC Agency </h1> <?php query_posts('category_name=news&showposts=10'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h1><?php the_title(); ?></h1> <h4>Posted on <?php the_time('F jS, Y') ?></h4> <p><?php the_content(); ?></p> <hr> <?php endwhile; else: ?> <p><?php _e('No news has been reported at this time'); ?></p> <?php endif; ?> </div> <?php get_sidebar(); ?> </div> <div style=" clear: both; "></div> <?php get_footer(); ?> Cheers
June 18, 201214 yr Author Would help if you told us what the error is... Yea ofcourse Parse error: syntax error, unexpected T_STRING in /home/xD/domains/website/public_html/wp-content/themes/realestate/index.php on line 12
Create an account or sign in to comment