Very nice!
2 Comments
while reading my usual RSS feeds I stumbled upon this article on displaying your latest post.
It took me eye as I have been busy implementing similar things for my upcoming website, except I have been using WordPress’ WP_Query function to achieve the same results.
Basically WP_Query is used to create a seperate mini-loop outside of your main loop. It has many advantages over using a custom SQL query like
The below is just a simple demo the grabs a link to the latest post. It shows how easy WP_Query really is to use.
< ?php
$my_query = new WP_Query('showposts=1');
while ($my_query->have_posts()) : $my_query->the_post();
echo '<a href="' . get_permalink() . '">' . the_title('','',FALSE) . '</a>';
endwhile;
?>
A little boy walks into his parents’ room to see his mum on top of his dad bouncing up and down.
The mum sees her son and quickly dismounts, worried about what her son has seen.
She dresses quickly and goes to find him.
The son sees his mom and asks, ‘What were you and Dad doing?’
The mother replies, ‘Well, you know your dad has a big tummy and sometimes I have to get on top of it and help flatten it.’
‘Your wasting your time,’ said the boy.
‘Why is that?’ the mom asked puzzled.
‘Well when you go shopping the lady next door comes over and gets on her knees and blows it right back up.’
A lady walks into Tiffany’s. She browses around, spots a beautiful diamond bracelet and walks over to inspect it. As she bends over to look more closely she inadvertently breaks wind.
Very embarrassed, she looks around nervously to see if anyone has noticed her little accident and prays that a sales person doesn’t pop up right now.
As she turns around, her worst nightmare materialises in the form of
a salesman standing right behind her.
Cool as a cucumber and displaying complete professionalism,
the salesman greets the lady with, ‘Good day, Madam.
How may we help you today?’
Very uncomfortably, but hoping that the salesman
may just not have been there at the time of her little
‘accident’, she asks, ‘Sir, what is the price of this lovely bracelet?’
He answers, ‘Madam, if you farted just looking at it,
you’re going to shit yourself when I tell you the price.’
A very tired nurse walks into a bank, Totally exhausted after an 18-hour shift.
Preparing to write a check, She pulls a rectal thermometer out of her purse And tries to write with it.
When she realises her mistake, She looks at the flabbergasted teller, And without missing a beat, she says
“Well, that’s great….that’s just great….
Some asshole’s got my pen!”
Well Done.
Now… Flush the urinal, go outside, and tee off.
Top Commenters