Or is there a plugin for this?
🙂 show….
WHERE?
Where You want to show only the one post?
On homepage, on Category Page or where?
Maybe this plugin can help You
Plugin Name: Custom Query String
Version: 2.7
Plugin URI: http://mattread.com/projects/wp-plugins/custom-query-string-plugin/
Description: Change the number of posts displayed when viewing different archive pages.
Author: Matt Read
Author URI: http://www.mattread.com/
Well on the frontpage. Take a look at http://frontpage.klifix.nl/ (it’s still in progress…).
On there you see a list of recent posts. What I want is to appear only the newest post with the excerpt.
I’ll take a look at the plugin you send! If you have any other/better solutions, please post it here!
Thanx for this! 🙂
exactly the same problem as yours i solve by this nice plugin
read carefully config options after installation and activtion
Perfect! Thanks very much I’ll go trying! 😀
Thread Starter
klifix
(@klifix)
Well, I tried the plugin and it’s a neat plugin, but it doesn’t exactly what I want it to do…
What I want is dat only the last post from the category ‘reviews’ to appear in the sidebar. That’s the only thing. It must be done with some simple php code, but since i’m not an expert in php I can’t seem to find how to do this… Anyone a clue?
Thread Starter
klifix
(@klifix)
Unfortunately all the plugins I tried didn’t & couldn’t do what I want it to do…
So I re-open this thread again in the hope someone can help me out with making the php code for extracting the last post, with the excerpt, from the category ‘Review’ (catID=20)…
Please help me….
Thread Starter
klifix
(@klifix)
I’m sorry for keep asking this question, but it’s something I really need on my site. So if anyone can please do!
And if you can’t then don’t botter this thread, although I’ll keep bumping untill I get tired 😉
Thread Starter
klifix
(@klifix)
With help from Aleister:
This is the code to use:
<?php
query_posts('showposts=1&cat=20');
while (have_posts()) : the_post();
?>
<small>" rel="nofollow"><?php the_title(); ?>
<?php the_excerpt(); ?></small>
<?php
endwhile;
?>
Thanx Aleister!