WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Validation problems (2 posts)

  1. shylaz
    Member
    Posted 6 years ago #

    Hi!
    I have redesinged the postmetadata section of my website and since then I have a couple of validation errors. I'm quite new to WordPress and CSS, and I don't really know how to fix these errors.

    Validation results: here
    Affected pages:
    Index.php:

    <?php get_header(); ?>
    
    	<div id="content" class="narrowcolumn">
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div class="post" id="post-<?php the_ID(); ?>">
    				<h2><a>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
    <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
    				<small><?php the_time(__('Y. F d. l', 'kubrick')) ?> <!-- by <?php the_author() ?> --></small>
    
    				<div class="entry">
    					<?php the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?>
    				</div>
    
    				<p class="postmetadata"><?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', ''); ?> <img src="http://hookahclub.org/wp-content/themes/default/images/document.gif"> <?php printf(__('Kategória: %s', 'kubrick'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ' | '); ?>  <span class="nocomments"><?php comments_popup_link(__('0', 'kubrick'), __('1 »', 'kubrick'), __('% »', 'kubrick')); ?></span>
    
    			</div>
    
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries', 'kubrick')) ?></div>
    			<div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;', 'kubrick')) ?></div>
    		</div>
    
    	<?php else : ?>
    
    		<h2 class="center"><?php _e('Not Found', 'kubrick'); ?></h2>
    		<p class="center"><?php _e('Sorry, but you are looking for something that isn’t here.', 'kubrick'); ?>
    
    		<?php include (TEMPLATEPATH . "/searchform.php"); ?>
    
    	<?php endif; ?>
    
    	</div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    and single.php:

    <?php get_header(); ?>
    
    	<div id="content" class="narrowcolumn">
    
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
                    <div class="navigation">
    			<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
    			<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
                    </div>
    
    <div class="post" id="post-<?php the_ID(); ?>">
    			<h2><?php the_title(); ?></h2>
    <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
    <small><?php the_time(__('Y. F d. l', 'kubrick')) ?></small>
    			<div class="entry">
    				<?php the_content('<p class="serif">' . __('Read the rest of this entry &raquo;', 'kubrick') . '
    '); ?>
    
    				<?php wp_link_pages(array('before' => '<strong>' . __('Pages:', 'kubrick') . '</strong> ', 'after' => '
    ', 'next_or_number' => 'number')); ?>
    				<?php the_tags( '' . __('Tags:', 'kubrick') . ' ', ', ', '
    '); ?>
    
    				<p class="postmetadataalt">
    					<small>
    						<?php /* This is commented, because it requires a little adjusting sometimes.
    							You'll need to download this plugin, and follow the instructions:
    							http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
    							/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); $time_since = sprintf(__('%s ago', 'kubrick'), time_since($entry_datetime)); */ ?>
    						<?php printf(__('Kategória: %s', 'kubrick'), get_the_category_list(', ')); ?>
    						| <?php printf(__("<a href='%s'>Hozzászólások RSS csatornán</a>", "kubrick"), get_post_comments_feed_link()); ?> 
    
    						<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    							// Both Comments and Pings are open ?>
    							| <?php printf(__('<a href="%s" rel="trackback">Visszajelzés</a>', 'kubrick'), trackback_url(false)); ?>
    
    						<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    							// Only Pings are Open ?>
    							<?php printf(__('Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.', 'kubrick'), trackback_url(false)); ?>
    
    						<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    							// Comments are open, Pings are not ?>
    							<?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.', 'kubrick'); ?>
    
    						<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    							// Neither Comments, nor Pings are open ?>
    							<?php _e('Both comments and pings are currently closed.', 'kubrick'); ?>
    
    						| <?php } edit_post_link(__('Edit this entry.', 'kubrick'),'',''); ?>
    					</small>
    
    			</div>
    		</div>
    
    	<?php comments_template(); ?>
    
    	<?php endwhile; else: ?>
    
    		<?php _e('Sorry, no posts matched your criteria.', 'kubrick'); ?>
    
    <?php endif; ?>
    
    	</div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    My site:here

    If you could send me a valid copy of these pages or show me the (detailed!) way it can be fixed, would be very kind of you!

    Regards,
    shylaz

  2. shylaz
    Member
    Posted 6 years ago #

    Problem solved.

Topic Closed

This topic has been closed to new replies.

About this Topic