Latest Post
I updated the script from Dagon Design with options to;
- remove the category name from output text
- remove duplicate posts from output. this is useful if a single post is in more than 1 category.
Please note this is only available for WordPress version > 2.3. If you need it for an earlier version please contact me as it would be great to know someone is actually using my work & such joy will encourage me to write it for you
I have also;
- changed comments to appear in brackets (as apposed to a full text listing)
- optimsed / fixed the invalid html tags
- optimsed php functions for speed
- optimsed sql queries for speed
Download
Installing
- Download the above file, rename it from .txt to .php, and upload it to your plugins directory.
- Enable the plugin.
- Configure the plugin options (under DDLatestFromEach).
Using
There are two ways you can use this plugin.
1) In a post or page, insert the following line:
<!-- ddlastfromeach -->
2) In a template file, insert the following code:
<?php echo dd_last_from_each(); ?>
June 4th, 2008 at 6:27 am
thanks for the update!
October 15th, 2008 at 8:57 am
Hi, I’ve got the script from DagonDesign and saw people were asking there the same question over and over, but no answer…
How to display multiple posts titles from each category? I tried changing:
$i = 0; // (on line 326)
to
$i = 10;
But then it also displays categories names several times as well…
Any idea how to do this?
Thnx!
March 19th, 2009 at 3:00 pm
Hi, sorry for the very late reply.
I notice ‘DagonDesign’ has used the features I created in the latest version -but at a quick glance the coding is slightly different.
However, my code DOES show posts besed on multiple posts titles (regardless of category). To demonstrate this I have created a ‘blank post’ that is in the identical category as this post -but is still visable from the side menu.
Hope this helps, although if I have misunderstood your question please let me know.
Thanks,
Matt