Log In · Register

 
 
Closed TopicStart new topic
wordpress woes.
thesnowpirate
post Aug 16 2009, 02:03 AM
Post #1


Member
**

Group: Member
Posts: 19
Joined: Aug 2009
Member No: 742,073



so im a bit new to wordpress (and using php a bit too) i understand how everything supposed to work, im just still learning to piece everything together.

so currently my page at:

http://www.rocketnight.com

and when you click on the php wp pagelinks on the right, they bring you to the correct pages, but they also show the date information from the blog posts.

how can i disable this?

its displaying june 21st on the pages, which i think was the day i installed wordpress, if that helps.

i only have two pages + a css page:

main index:

CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
</head>
<body>
<center>
<table name="main" width="870" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="28" rowspan="3"></td>
<td height="188" colspan="2"><img src="http://rocketnight.com/wp-content/themes/rocketnight1/images/header.jpg" border="0"></td>
<td width="28" rowspan="3""></td>
</tr>
<tr>
<td width="584" height="188"><center>
<div id="content">

<?php if (have_posts()) : while (have_posts()) : the_post();

include (TEMPLATEPATH . '/the_post.php'); //here comes the post

endwhile; endif; ?>

<?php if ( function_exists('pagination') AND is_home() )
pagination(11,array("Anterior","Siguiente"));

elseif (!is_single() AND !is_page()) { ?>
<div class="pagination"><?php posts_nav_link()?></div>
<?php } ?>


</div><!--#content--></center></td>
<td width="144" valign="top"><div align="center"><?php wp_list_pages( $args ); ?> </div></td>
</tr>

<tr>
<td height="37" colspan="2">f-f-f-footer info goes here</td>
</tr>
</table>

</center>
</body>
</html>




and a post page:


CODE
<div class="PostHead">

<div class="PostTime"><?php the_time('<b>j</b> <a>M Y</a>') ?> </div>
<h2><?php the_title(); ?></h2>
</div>

<div class="entry">
<p>
<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
</p>

</div>



any suggestions for making this work? please dont make fun of my center tags, ill get rid of them later, i swear.

ps. how does the whole blue/orange thing look? yay/nay?
Reason for edit: Please put codes in codeboxes. Thanks :) -Natalia
 
jiyong
post Aug 16 2009, 02:16 AM
Post #2


사랑해 ~ 我愛你 ♥
*****

Group: Design Staff
Posts: 825
Joined: Jan 2007
Member No: 492,587



CODE
<div class="PostTime"><?php the_time('<b>j</b> <a>M Y</a>') ?> </div>

Shouldn't getting rid of this get rid of the dates?

Edit: Delete that code if it's on your page template.
 
thesnowpirate
post Aug 16 2009, 02:46 AM
Post #3


Member
**

Group: Member
Posts: 19
Joined: Aug 2009
Member No: 742,073



deleting that gets rid of the blue/orange date box on the posts though too.

figured it out! using the wordpress manual of all things lol.

i needed to put if
CODE
( !is_page())


just before the date, and it removes it. horray. thanks for the help.

any comments on the design/colors?
Reason for edit: Posts merged. Please don't double post. Thanks -Nat
 
thesnowpirate
post Aug 18 2009, 12:47 AM
Post #4


Member
**

Group: Member
Posts: 19
Joined: Aug 2009
Member No: 742,073



does anyone know a way to not list a page? i currently have:

CODE
<?php wp_list_pages('title_li='); ?>


displaying all my pages. in a list.

is there a way to leave one of these pages out?
 
fixtatik
post Sep 5 2009, 07:27 PM
Post #5


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



Just use the "exclude" condition (the numbers are the IDs of each page you don't want listed):
CODE
<?php wp_list_pages('exclude=1,2,3&title_li='); ?>


Surprisingly, listed in the WordPress documentation.
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: