Last Update: 3 February 2007
Plugin Name: Previous Posts
Version: 1.2
Plugin URI: http://www.cypherhackz.net/plugins-themes/previous-posts/
Description: Returns a list of your previous posts. You can set how many posts to be displayed.
Author: Fauzi Mohd Darus
Author URI: http://www.cypherhackz.net/
Demo:
Download:
- cypher_previous-posts.zip (Wordpress 2.1 only)
- cypher_previous-posts-wp20.zip (Wordpress 2.0 and below)
How to Install
- Download the plugin file.
- Extract file cypher_previous-posts.zip.
- Upload wp-previousposts.php to your Wordpress plugin folder.
- Activate the plugin in your Plugins admin panel.
- Put this function <?php cypher_previousposts(); ?> in your theme file.
- Done!
How to Upgrade
- Download the plugin file.
- Extract file cypher_previous-posts.zip.
- Upload wp-previousposts.php to your Wordpress plugin folder to replace the previous version plugin.
- Done!
Parameters
There are two parameters that you can use to change the behavior of this plugin.
$min – The minimum number of posts to count. Default is 10;
$max – The maximum number of posts to count. Default is 15;
Eg: <?php cypher_previousposts(5,15); ?>
- This means that posts between 5 and 15 will be displayed on the list.
Version History
- 1.2
- Compatible with Wordpress 2.1
- Update the parameters - 1.1
- Include permalinks instead of using Wordpress post IDs -
1.0
- Initial Release







[...]   Previous Postsï¼Œæ˜¾ç¤ºæ—§æœ‰æ–‡ç« ï¼Œæ¯”è¾ƒé€‚åˆæ”¾åœ¨å•ç‰‡æ–‡ç« åŽã€‚ ã€€ã€€ä¸Šä¼ æ¿€æ´»ã€‚åœ¨æ‘¸ç‰ˆä¸è°ƒç”¨ä»£ç "<?php cypher_previousposts(); ?>"。 Tag: post [...]
Any chance you would know how I could integrate the_content into this as well?
if you want to do that, you need to edit my plugin. my plugin only displays the titles.
Thanks for the reply. I figured there would be some plugin editing, but I’m not sure… I tried doing something like this:
if($posts){foreach ($posts as $post){
$post_title = stripslashes($post->post_title);
$post_link = stripslashes($post->ID);
$post_date = stripslashes($post->post_date);
$post_content = stripslashes($post->the_content);
//$output .= $before . $post_date . $after;
$output .= $before . '' . $post_title . '' . $post_content ;
$output .= $after;
}
But to no avail… do you know what I might be able to replace “the_content” with?
I just tried posting a reply with what I tried but I’m not sure how to add PHP to the comments form – looks like it just swallowed my comment.
I tried editing your plugin by adding something like
$post_content = stripslashes($post->the_content);
and then adding $post_content to the $output but to no avail.
Any chance you’d know what I’d need to plug in for “the_content”?
Thanks so much for the reply!
Hi there,
is there a way to show the latest articles on a specific cartegory?
[Comment ID #25044 Will Be Quoted Here]
i will see what i can do for you. currently i’m busy with my study. maybe i will included it in next version.
[Comment ID #25715 Will Be Quoted Here]
perhaps there is a plugin could do that. try looking at the wpplugin website.
Thanks Fauzi! I was looking for this, since wp_get_posts does not have an offset parameter!
[...] Previous Posts. Previous Posts shows the latest posts you’ve posted on weblog. It’s a useful plugin and saves visitors time. Now they just have to look at this little list instead of scrolling down your entire blog. [...]
[...] second one is from Cypherhackz called “Previous Posts”. After you activate the plugin, you can use its function to [...]
You wrote that one should put in the theme file. WHICH theme file?
You wrote
“There are two parameters that you can use to change the behavior of this plugin.
$min – The minimum number of posts to count. Default is 10;
$max – The maximum number of posts to count. Default is 15;”
WHERE? Can this be accomplished by just using parameters in
? or do I have to edit wp-previousposts.php?
Thanks.
You wrote: add to them file. Which (of many) theme file?
owh…put the tag in your index.php or in sidebar.php. save and upload to your server.
thanks for the great plugin. Simple, but it does want I need.
you are welcome.
[...] Visit [...]
[...] Previous Posts. Å is pluginas prie straipsnio prideda anksÄiau paraÅ¡ytų straipsnių sÄ…rašą. Plugino funkcija turi du parametrus, kuriais galima nurodyti rodomų straipsnių skaiÄių. [...]
hi there,
there’s a little flaw in line 32:
if($bil > $min && $bil
should be
if ($bil >= $min && $bil
otherwise the most recent post doesn't show for $min=1
.
but fixing that was easier than writing it all by myself, so thank you very much for that plugin
.
Thanks for the plugin, it is very cool. Is there a way to put a space between the article names? I am new to php. Thanks
Open the plugin file, in line 14 and 15, you can set your own method on how the plugin will display the article title. The default is <li> </li>. But you can change to <br /> or something else.
Thanks for a great plugin.
Is there a way to not have the post names descend on the next line if the name is too big (perhaps just have a … at the end instead?).
Right now this plugin will not truncate long title. But I will inlcude it in next version. Thanks.
[...] http://www.cypherhackz.net/plu.....ous-posts/ [...]
How come I cannot display more than one of the most previous posts? Thats odd. Hard to enjoy the plugin if you ask me
You’d think a little gratitude was in order for anything that comes free with WordPress, if you can’t enjoy the plugin, frankly, no one cares.
Please people, remember that these guys are writing and sharing these plugins out of the goodness of their hearts; showing that you’re appreciative is more likely to keep it this way than sarcastic scoffing.
[...] Previous Posts WordPress Plugin: Muestra las entradas mas recientes a partir de la entrada en la cual nos encontramos actualmente. [...]
[...] Previous Posts WordPress Plugin: Muestra las entradas mas recientes a partir de la entrada en la cual nos encontramos actualmente. [...]
H1MSam hi super site thanks http://peace.com
this is what ive been looking for
this is useful, cetainly gonna try this out.
good article, its too hot to type more
excellent a++
Аудит основных средств и организация аудита и аудит операций и задачи аудита и аудит операций и аудит операций AAR Group
Аудит операций и задачи аудита и основы аудита, а также основы аудита, основной аудит, аудиторская компания AAR Group
AAR Group предлагает проведения инвентаризации материальных ценностей, а также проведение регулярных инвентаризаций
Very vary interesting plugin.
Yes, seen this plugin before and read a little about it. But i think i might now give it a try.
Thanks for the share!
Good short sweet turorial.
thanks for sharing this useful plugin, keep up the good job!
thanks for the great plugin. Simple, but it does want I need.
Средства аудита, экзамен аудитора и методика аудита, а также аудит и виды аудита, подготовка аудиторов, финансовый аудит
Very good. This helps me to return a list of my previous posts.
Спутниковая интерактивная карта Кисловодска и другое на MapSpace.Ru
Дискутировать можно бесконечно, поэтому просто поблагодарю автора. Спасибо вам!