adamj3333 Posted October 14, 2009 Share Posted October 14, 2009 I am very new to working with PHP and I am trying to set up a wordpress blog on my site that I already have built out. I am working on it slowly, so please, any help you could offer would be greatly appreciated. I am getting back a parse error on line 1 of my code...not sure where to find it. <?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN;" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs"> <head> <title>Turn Up My Workout</title> <meta name="description" content="..." /> <meta name="keywords" content="..." /> <link rel="stylesheet" media="screen,projection" type="text/css" href="style.css" /> </head> <body> <!-- Main --> <div id="main_content"> <?php get_header(); ?> <?php get_sidebar(); ?> <?php get_footer(); ?> <!-- WordPress loop here --> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <h2 id="post-<?php the_ID(); ?>"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"> <?php the_title(); ?></a></h2> <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small> <div class="entry"> <?php the_content('Read the rest of this entry »'); ?> </div> <p class="postmetadata"> Posted in <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Edit','','<strong>|</strong>'); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div> <div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div> </div> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center"> <?php _e("Sorry, but you are looking for something that isn't here."); ?></p> <?php endif; ?> </div> <!-- /main --> </body> </html> Thanks for any help you can offer!! Quote Link to comment https://forums.phpfreaks.com/topic/177673-parse-error-new-to-php/ Share on other sites More sharing options...
yettti Posted October 14, 2009 Share Posted October 14, 2009 <?php posts_nav_link('','','« Previous Entries') ?> <?php posts_nav_link('','Next Entries »','') ?> ... your missing semi-colons here... this should work.. <?php posts_nav_link('','','« Previous Entries'); ?> <?php posts_nav_link('','Next Entries »',''); ?> Quote Link to comment https://forums.phpfreaks.com/topic/177673-parse-error-new-to-php/#findComment-936824 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.