Forum Replies Created

Viewing 16 replies (of 16 total)
  • Thread Starter robertcc18

    (@robertcc18)

    I can not test yet because I get the error

    Parse error: syntax error, unexpected end of file in /srv/disk7/2109663/www/robertcrawford97.co.nf/wp-content/themes/robbot1/index.php on line 52

    here is the code

    <?php get_header(); ?>
    <div id="main-container">
    	<section id="content-container">
    	<?php
    	  // Start of the loop
    		if ( have_posts() ) : while ( have_posts() ) : the_post();
    		// Get post Template
    			get_template_part ( 'content', get_post_format() );
                            // show the date once a day
    			the_date( '', '<h3 class="the_date">', '</h3>' );
    			?>
                            <article id="post-<?php the_ID(); ?>" <?php post_class();?>>
                            <header>
                                    <h2 class="entry-title">
                                     <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark">
                                      <?php the_title();?>
                                        </a>
                                        </h2>
                                         <p class="entry-meta">
                                         Posted on < time datetime="<?php echo get_the_date(); ?>"><?php the_time(); ?></time>
                                                 By <?php the_author_link(); ?>
                                                 <?php
                                                         //are the comments open?
                                                          if ( comments_open() ) : ?>
                                                          &bull; <?php comments_popup_link( 'No Comments', '1 Comments', '% Comments' );
                                                            endif;
                                                                    ?>
                                                                    </header>
                                                                    <?php  // the content
                                                                            the_content(); ?>
                                                          <?php
    				// Load comments if singular
    					if ( is_singular() ) {
    					comments_template( '', true );
    					}
    					// Loop Ends
    					endwhile;
    
    					// Nothing in the Loop?
    					else :
    	?>
    		<article id="post-0" class="post no-results not-found">
    			<header>
    			<h2 class="entry-title">Nothing Found</h2>
    		</header>
    			<p> We're sorry, but we couldn't find anything for you.</p>
    	<?php get_search_form(); ?>
    	</article>
     </section> <!--- #main-container ends -->
    <?php get_sidebar(); ?>
    </div>
    <?php get_footer(); ?>
Viewing 16 replies (of 16 total)