• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • About Us
  • Contact Us
  • Who’s Who
  • Archive
  • Lauren Stuff
    • Lauren’s To-Do List
    • Bacon Mat Gallery
    • Preschool Quotes
    • Bat Bugs and You
    • Hilarious!
    • Pot Pie recipe
    • Utility Bills
    • Gas Bills
    • Building Committee CDC
  • Lloyd Stuff
    • Lloyd’s To-Do List
    • 50 Best Movies for Middle School
    • Good High School Websites
    • Fantasy Baseball Files
    • Website Rubric & Programming Rubric
    • I Want to Bake Bread
    • I Want to Forge Swords
    • Sorry Chuck. Sorry Brad.
    • The Lloyd Gallery
    • Narnia in Pop Culture
    • myMiniCity WordPress Plugin
    • Settlers Record
  • Prius Camping
  • Brazil
    • Martin Hofman Diaries – 1946
Lloyd and Lauren website logo

LaurenandLloyd.com

where our wasted time becomes your wasted time

  • Most Popular
  • Drawings
  • Videos
  • Worst day ever
  • Journal
  • More
  • Brazil

geeky

Boring meta post

May 15, 2007 by Lloyd 7 Comments

I did some changes to the website a few days ago, and I’ve been posting about them in case I ever need to go back and see what I’ve done. Just in case an upgrade breaks something or I have to do another installation. Here are the changes:

1) Comments for the most recent post appear on the main page. This was the hardest to do. There are now two event loops, but the first one just grabs one post and the second one grabs everything but the first post:

[?php $my_query = new WP_Query('showposts=1'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; $withcomments = 1;?]

***NORMAL POST STUFF GOES HERE***

[?php comments_template(); // Get wp-comments.php template ?]

[?php endwhile; ?]

[!--This should grab the rest of the posts. LS 5/12/2007--]

[?php if (have_posts()) : while (have_posts()) : the_post(); if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?]
[div id="postbreak"][/div]

***NORMAL POST STUFF GOES HERE***

[?php endwhile; endif; ?]

2) Added the random post seperator between posts. This uses a random image addon. Any of them should work. This one is just a PHP script that sits in a directory with a bunch of images. You call the script as the source and it pulls in a random image. The image is placed via CSS which I haven’t seen before and probably breaks in older browsers.

Shoot, I thought I did more than that, but that’s all that I can remember. Sorry about the boring post.

Filed Under: Lloyd Tagged With: geeky, Meta

  • « Go to Previous Page
  • Page 1
  • Page 2

Primary Sidebar

Recent Comments

  • Cindy February 17, 2026 at 10:03 pm on Mountainous memory.My parents still have the “painting” and it’s hanging on the wall over the couch. 1972. It’s called Pine Lake[more]
  • Bill February 7, 2026 at 2:32 pm on “Special” means “Watch Out”And now two years later, Jan 2026 I did the same thing again When will I learn damn special K?[more]
  • Joe January 21, 2026 at 10:06 pm on “Special” means “Watch Out”I keep finding small hard amber pieces that can break a tooth and noticed for the past few years Special[more]
  • Kristi January 5, 2026 at 11:09 am on Such accomplishment!That is a HUGE accomplishment. I can't wait to hear your first piano piece.
  • Mark December 23, 2025 at 7:20 am on Such accomplishment!Proud of you both, sis, especially for the perseverance to see the whole thing through. Grandmother would be so pleased.[more]

Friends

  • Brad
  • Deanne
  • Gretchen
  • Kitt
  • Kris
  • Kristi
  • Top

Sites

  • CSTA Nebraska
  • Lincoln Lutheran
  • Lorenz Family
  • Preschool Pointers
  • Programming Class
  • Sommerer Family
  • St. John CDC
  • Weber Family
  • WP Login

Tags

add art auction Bacon bathroom birthday brad camera cat cats choir christmas clothing computer Cricket family fire food Gadget game garden geek green hair house ipad iphone kitchen laundry mail Meta movie movies music mystery omaha Peggy preschool reunion royuks School seward Small Town tv ukulele

Brad Quote

If you haven’t learned your lesson then Brad Royuk didn’t teach it to you.

Copyright © 2026 · Genesis Sample on Genesis Framework · WordPress · Log in