bella00
04-01-2005, 02:13 AM
Hi i'm new to wordpress, i'm so close to choosing another blog, I'm trying to edit the template, or just make the post out to be lik classes, umm lik tables with a header, the content in the middle (diff colour then the header) and yeah and the footer where the comment section is, and all:
This is the code I have:
<?php require("/home/USER/public_html/Wordpress/wp-blog-header.php"); ?>
<link rel=stylesheet type="text/css" href="style-2.css" media=screen>
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<div class="side-header2"> <?php the_title(); ?> - <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"<>?php the_date('d-m-y','','',true); ?></a></div>
<div class="sp"> </div>
<div class="side-content">
<table border="0" width="100%" cellspacing="0" cellpadding="3">
<tr>
<td width="90%" style="text-align:justify" valign="top">
<div align="justify">
<?php the_content(); ?>
</td>
</tr>
</table>
</div>
<div class="sp"> </div>
<div class="side-header" align="right"><?php the_category(','); ?> - <?php comments_popup_link(__('0 Comments'), __('1 Comment'), __('% Comments')); ?></a></div>
</div>
<?php endforeach; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?> </p> <?php endif; ?>
What am i doing wrong? and where am i suppose to upload this? do i name it wp-layout.php and downloaded in the the wordpress dictory or do i just downloaded in normally? becaused i named it news.php
This is the code I have:
<?php require("/home/USER/public_html/Wordpress/wp-blog-header.php"); ?>
<link rel=stylesheet type="text/css" href="style-2.css" media=screen>
<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<div class="side-header2"> <?php the_title(); ?> - <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"<>?php the_date('d-m-y','','',true); ?></a></div>
<div class="sp"> </div>
<div class="side-content">
<table border="0" width="100%" cellspacing="0" cellpadding="3">
<tr>
<td width="90%" style="text-align:justify" valign="top">
<div align="justify">
<?php the_content(); ?>
</td>
</tr>
</table>
</div>
<div class="sp"> </div>
<div class="side-header" align="right"><?php the_category(','); ?> - <?php comments_popup_link(__('0 Comments'), __('1 Comment'), __('% Comments')); ?></a></div>
</div>
<?php endforeach; else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?> </p> <?php endif; ?>
What am i doing wrong? and where am i suppose to upload this? do i name it wp-layout.php and downloaded in the the wordpress dictory or do i just downloaded in normally? becaused i named it news.php