Lissa Explains it All:  Web Design Forums  

Go Back   Lissa Explains it All: Web Design Forums > LEIA Archives > Web Site Help > Advanced Programming

Notices

 
 
Thread Tools Display Modes
  #1  
Old 06-24-2005, 05:55 PM
salomeyasobko's Avatar
salomeyasobko salomeyasobko is offline
soy un perdedor
 
Join Date: Jul 2003
Location: wouldntyouliketoknow
Posts: 6,041
salomeyasobko has a spectacular aurasalomeyasobko has a spectacular aura
wordpress- one post per page

i was wondering if anyone knew the code for making one post show up per page with links at the top to go to the previous post and the next post.. i have no clue what code i would use for the links and i don't know what to change to make only one post show up per page.. so if anyone can help me out with that, i'd really appreciate it!! thanks

ooh by the way, my page is http://salomeya.l2p.net, you can view the source to see my coding and tell me what to change :buckt: and the website's currently undergoing a layout change so everything's kinda screwy right now.. and the coding is probably messed up because i have no clue what i'm doing but yeah. thanks!
__________________
:aniflower
Sponsored Links
  #2  
Old 06-24-2005, 06:38 PM
Monkey Bizzle's Avatar
Monkey Bizzle Monkey Bizzle is offline
<-- lindsAy
 
Join Date: Feb 2004
Location: Craptown, Va.
Posts: 7,646
Monkey Bizzle will become famous soon enoughMonkey Bizzle will become famous soon enough
In your options or something for wordpress, you should be able to change how many posts show per page. I use v.1.2.1 (before the themes and stuff) and to do it on mine, you go to options and then reading and it's the first option that I can change on that page.

To put the previous/next link on, see this:

http://codex.wordpress.org/Template_Tags/posts_nav_link
  #3  
Old 06-24-2005, 07:43 PM
salomeyasobko's Avatar
salomeyasobko salomeyasobko is offline
soy un perdedor
 
Join Date: Jul 2003
Location: wouldntyouliketoknow
Posts: 6,041
salomeyasobko has a spectacular aurasalomeyasobko has a spectacular aura
thanks!!!!!

i have another question i wanted to be able to have the date and time of a comment made show up when you hover over the commentors name.. like put it in the alt code.

<?php comment_date("F n, Y"); ?> at <?php comment_time("g:i a")?> <that's what i use for date and time.. so is there a way for me to put that into an alt code so it shows up on hover? where would i put that?

maybe i should just start a new thread about that

thanks again!!
__________________
:aniflower
  #4  
Old 06-24-2005, 07:49 PM
Monkey Bizzle's Avatar
Monkey Bizzle Monkey Bizzle is offline
<-- lindsAy
 
Join Date: Feb 2004
Location: Craptown, Va.
Posts: 7,646
Monkey Bizzle will become famous soon enoughMonkey Bizzle will become famous soon enough
How do you have your commenter's name set up currently? Can you post the code for it?
  #5  
Old 06-24-2005, 07:57 PM
salomeyasobko's Avatar
salomeyasobko salomeyasobko is offline
soy un perdedor
 
Join Date: Jul 2003
Location: wouldntyouliketoknow
Posts: 6,041
salomeyasobko has a spectacular aurasalomeyasobko has a spectacular aura
<p><cite><?php if ($comments) { ?><ol id="commentlist"><?php foreach ($comments as $comment) { ?></font><font color="#67C0FA"><?php comment_text() ?></font><p><font face="Commercial Script" size="3">- <?php comment_author_link() ?></font><p></p><p></p></li><p></p>



<?php } // end for each comment ?>
<p></p></ol>
<?php } ?>

<?php if ('open' == $post->comment_status) { ?>


<center>
<form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<p><p>
<input type="text" style="font-size:8pt; font-family: trebuchet ms; color: #000000; border: 0px; background-color: #A2E6FF;" value="who're you?" name="author" id="author" class="textarea" value="<?php echo $comment_author; ?>" size="28" tabindex="1" />

<?php if ($req) _e('(required)'); ?>

<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($_SERVER["REQUEST_URI"]); ?>" />
</p>

<p>
<input type="text" value="email" style="font-size:8pt; font-family: trebuchet ms; color: #000000; border: 0px; background-color: #A2E6FF;" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="28" tabindex="2" />
<?php if ($req) _e('(required)'); ?>
</p>

<p>
<input type="text" style="font-size:8pt; font-family: trebuchet ms; color: #000000; border: 0px; background-color: #A2E6FF;" value="http://" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="28" tabindex="3" />
</p>

i didn't know how much/what to post, sorry

oh and i took out the date and time because i'm planning on putting them back in once i figure out a way to do the alt thing.
__________________
:aniflower
  #6  
Old 06-24-2005, 08:04 PM
Monkey Bizzle's Avatar
Monkey Bizzle Monkey Bizzle is offline
<-- lindsAy
 
Join Date: Feb 2004
Location: Craptown, Va.
Posts: 7,646
Monkey Bizzle will become famous soon enoughMonkey Bizzle will become famous soon enough
LOL! I just needed the part where the name is displayed:

<font face="Commercial Script" size="3">- <?php comment_author_link() ?></font>

I wanted to know whether you had the name linked, etc. Now, I am not sure if this will work, but definately worth a try:

<font face="Commercial Script" size="3">- <a href="<?php comment_author_url(); ?>" title="<?php comment_date("F n, Y"); ?> at <?php comment_time("g:i a")?>"><?php comment_author(); ?></a></font>

Try that... It still links the comment author to their URL but in the format of using the <a href> tag so you can add a title to the link. The title is what you see when you hover over a link. So... technically when you hover over the comment, it will convert the PHP code to show you the date and time. Hurry up and try it so I can see if it works LOL!
  #7  
Old 06-24-2005, 08:14 PM
salomeyasobko's Avatar
salomeyasobko salomeyasobko is offline
soy un perdedor
 
Join Date: Jul 2003
Location: wouldntyouliketoknow
Posts: 6,041
salomeyasobko has a spectacular aurasalomeyasobko has a spectacular aura
thanks so much!! i think it'll work except i can't tell because i screwed something up and i don't know what i did.. hahaah this is bad. now the comments link and the "previous post" link don't work.. it says they're trying to link to http://salomeya.l2p.nethttp//salomey...et/2005/06/24/ and http://salomeya.l2p.nethttp//salomey...6/24/#comments

what have i doneeeee this is so frustrating
  #8  
Old 06-24-2005, 08:22 PM
salomeyasobko's Avatar
salomeyasobko salomeyasobko is offline
soy un perdedor
 
Join Date: Jul 2003
Location: wouldntyouliketoknow
Posts: 6,041
salomeyasobko has a spectacular aurasalomeyasobko has a spectacular aura
nvm i ifxed it

i messed something up in the .htaccess file

anyway, IT WORKS!! you're a genius!!! =)


okay one last thing, i promise :P all of my posts say june 6th, 2005... first of all, it's not june 6th :lol: second of all, before i erased all of the other posts, it made all of them say june 6th.. even the ones i didn't post today! i think it might've messed up because of where i placed the date code. here's my code:

<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<div class="storycontent" style="margin: 1px;">
<div style="text-align:center;">
<p><?php previous_post('%', 'last post', 'no'); ?>
&nbsp; <?php next_post('%', 'next post', 'no'); ?></p>
</div>
<br>
<div align="right" style="font-family: Commercial Script; font-size:11pt; color: #67C0FA;"><?php
the_date(); ?>
</div>
<div align="left" style="font-family: Commercial Script; font-size:12pt; color: #67C0FA;"><?php the_title(); ?></div>
<?php the_content(); ?>
</div>
  #9  
Old 06-24-2005, 08:51 PM
Monkey Bizzle's Avatar
Monkey Bizzle Monkey Bizzle is offline
<-- lindsAy
 
Join Date: Feb 2004
Location: Craptown, Va.
Posts: 7,646
Monkey Bizzle will become famous soon enoughMonkey Bizzle will become famous soon enough
YAY! Glad it worked =)

I don't know what the deal is with the date thing though. Hopefully someone else will be able to help!
  #10  
Old 06-25-2005, 10:39 PM
Demented's Avatar
Demented Demented is offline
<- Simple.
 
Join Date: Apr 2004
Location: Canada
Posts: 647
Demented is an unknown quantity at this point
I'm running on Wordpress v1.5, but what I have for the date of all my posts is this: <?php the_time('F jS, Y') ?> That might be the same for you, using v1.2.1, and I've never had any trouble with it.
__________________
:hehe: The Only One That Thinks Im Not Crazy,:hehe:
:hehe:Is My Imaginary Friend.:hehe:
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:44 PM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.