WordPress.org

Forums

single (4 posts)

  1. tonety_bcn
    Member
    Posted 1 year ago #

    Hello,

    I'd like to create my own theme and don't know what's the problem with my single.php file! Can somegoodbody help me with this issue?

    This is the code that I have, now when I click on the post title, the page becomes completly white. I can't see the problem...

    [ Moderator note: Code fixed, please wrap code in backticks or use the code button. ]

    <?php get_header(); ?>
    	<div class="container" id="content">
    		<div class="row">
    			<div class="col-xs-8">
    
    				<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
            			<h2><a>" rel="bookmark"><?php the_title(); ?></a></h2>
            			<?php echo get_avatar( $comment, 32 ); ?>
            			<small>Posted on <?php the_date(); ?> by <?php the_author(); ?></small>
    				<div class="post"><?php the_content(__('(more...)')); ?></div>
            			<p class="postMeta">Category: <?php the_category(', ') . " " . the_tags(__('Tags: '), ', ', ' | ') . edit_post_link(__('Edit'), ''); ?></p>
    
            			<hr>
    
    				<?php comments_template(); endwhile; else: ?>
    				<p>Sorry, no posts matched your criteria.</p>
    			</div>
    
    			<div class="col-xs-4">
    				<?php get_sidebar(); ?>
    			</div>
    		</div>
    	</div>
    <?php get_footer(); ?>

    Thanks for your help!!

    Toni

  2. tonety_bcn
    Member
    Posted 1 year ago #

    I got it!

    [ Moderator note: Code fixed, please wrap code in backticks or use the code button. ]

    <?php
      endif;
    
      get_footer();
    
    ?>

    Thank you

  3. Please use pastebin or gist to post more than 10 lines of code. It makes it a little hard to read sometimes when that much code is posted.

    Some of us don't like the whole scrolling thing. :D

  4. tonety_bcn? You get an A code effort but it's not the word backticks it's the backtick character. ;)

    http://codex.wordpress.org/Forum_Welcome#Posting_Code

Topic Closed

This topic has been closed to new replies.

About this Topic