• 0

word press template problems


Question

Ok guys am trying to make a wordpress theme ... its my first go and I've been looking at this error for an hour, I've hunted and hunted for help can anyone here shine a light on the problem cheers!

The Error

Parse error: syntax error, unexpected T_STRING in /homepages/23/d251010667/htdocs/wordpress/wp-content/themes/sindustries/index.php on line 10


<?php get_header(); ?>
<div id="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class=?post_title?>
<a href=?<?php the_permalink() ?>? rel=?bookmark? title=?Permanent Link to <?php the_title(); ?>?><?php the_title(); ?></a>
</div> <!? close post title ?>
<div class=?post_content?>
<?php the_content(__(?Read more??)); ?>
</div> <!? close post content ?>
<div class=?post_tag?>
<?php the_time(?F dS, Y?) ?> - Call post date
<?php the_time(?h:i a?); ?> - Call post time
<?php the_category(?, ?) ?> - Call post category
<?php comments_popup_link(?No Comments?, ?1 Comment?, ?% Comments?); ?> - Call the comment link
<?php edit_post_link(?Edit?,?,?); ?> - Call the post edit link
</div> <!? close post tag ?>
<?php comments_template(); ?>
<?php endwhile; else: ?>
Sorry, but you are looking for something that isn?t here.
Return to the Main page.
<?php endif; ?>
</div><!--end of main-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>

Link to comment
https://www.neowin.net/forum/topic/700140-word-press-template-problems/
Share on other sites

1 answer to this question

Recommended Posts

  • 0

try this

<?php get_header(); ?>
<div id="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post_title">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
</div> <!- close post title ->
<div class="post_content">
<?php the_content(__('Read more?')); ?>
</div> <!- close post content ->
<div class="post_tag">
<?php the_time('F dS, Y') ?> - Call post date
<?php the_time('h:i a'); ?> - Call post time
<?php the_category(', ') ?> - Call post category
<?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> - Call the comment link
<?php edit_post_link('Edit',","); ?> - Call the post edit link
</div> <!- close post tag ->
<?php comments_template(); ?>
<?php endwhile; else: ?>
Sorry, but you are looking for something that isn't here.
Return to the Main page.
<?php endif; ?>
</div><!--end of main-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>

I don't see a missing opening/closing, so I replaced your weird single and double quotes with normal ones.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.