Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Version 1.92   Updated Tuesday, July 7th, 2009 at 6:18pm

Latest Post from each Category plugin for WordPress

This plugin displays a list of the latest post from each category of your WordPress installation. It can be added to a post or page, or used directly in a template file. In the plugin’s options page you can choose the sort order, show or hide the dates, select the date formatting, show the first X characters of the content, display a link to the comments, and show comment counts, as well as other options.

Download

  If you have found this page useful, please consider donating. Thanks!

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(); ?>

Change Log

  • 07-07-09 Version 1.92 – Slight change to the way the list is displayed.
  • 07-06-09 Version 1.91 – You can now choose how many posts per category to display.
  • 02-19-09 Version 1.9 – Added option to use only selected categories.
  • 08-14-08 Version 1.8 – Tested with WordPress 2.6. Now uses WordPress function for determining date/time to show up to date posts. Added option to exclude categories.
  • 09-27-07 Version 1.7 – Updated to support WordPress 2.3. Added ‘Load Default Options’ button.
  • 05-31-07 Version 1.6 – Better support for international date formatting
  • 05-16-07 Version 1.5 – Updated for WordPress 2.2
  • 02-20-07 Version 1.4 – Updated for WordPress 2.1 (new pages were showing up in the default category)
  • 08-09-06 Version 1.3 – Added options to show comment links and counts. Also added an optional limit to the number of links shown, and a few other fixes.
  • 06-03-06 Version 1.2 – Added an option to turn category names into links. A bug was also fixed where extra slashes were being shown in the header text.
  • 05-31-06 Version 1.1 – You can now choose the sort order of the output, hide password-protected posts, and show the first X characters of the content after each post. A few other fixes have been made as well.
  • 05-30-06 Version 1.0 – First release.

Demo

Here you can see the plugin in action:

Latest Post From Each Category

Options

Here are the options available in this plugin’s options page in the WordPress admin panel.

Header text

This is shown above the list of posts.

Sort order

You can choose to have the data sorted by category or date. You also have the option of ascending or descending on both.

Show link to comments

When enabled, this will add a link to the comments for each post listed.

Include number of comments

This option only applies if Show link to comments is enabled. It adds the number of comments to the comment link.

Include link for posts with no comments

This option only applies if Show link to comments is enabled. It allows you to include or hide the comment link for posts with no comments.

Turn category names into links

Enabling this option will turn category names into links to the categories.

Hide password-protected posts

This prevents password-protected posts from showing up.

Show date after listed posts

This will show the post date after each post in the list.

Date format

If you are showing the date after posts, this will allow you to configure the date format (using the standard PHP date() format)

Show first X characters of posts

This allows you to show a preview of the content under each post in the list.

Number of characters to show

This lets you specify how many characters of the content will be shown, assuming you have the previous option enabled.

Limit list to X categories

This allows you to set a limit on the number of categories that will be shown in the list. Set to 0 for no limit.

Excluded category IDs

This is a comma-separated list of category ID’s you want excluded from the list.

Included category IDs

This is a comma-separated list of category ID’s you want to use in the list. This option only applies if you are not using the excluded category IDs option.

Max posts per category

If you would like to show more than one post per category, you can change the number here. To display all posts, use 0.

  1. I am really impressed by the way in which you presented the content and also the structure of the post.

  2. The information from this post is very helpful for me and good work. Thank you for the information.
    ntruhs results

  3. The information from this post is very helpful for me and good work. Thank you for the information.
    ntruhs results

  4. The information from this post is very helpful for me and good work. Thank you for the information.
    ntruhs results

  5. bigo live download download for pc and get this app in your bigo live

  6. good post. enjoyed it.

  7. .thanks for share, your article very useful

  8. Nice post bro!

  9. 554
    http://androdumpper.com

    Good article to Free access WiFi connections with help of Androdumpper best tutorials

  10. i like it plugin in wordpress.

  11. Thanks for this super copier for ex my web site hi my pro

  12. amun sedikit yang berhasil, berikut ini adalah mereka yang berhasil:

  13. mytynews.com provides latest news from Andhra and Telangana.
    Get current top stories,business,sports and Tollywood
    headlines with videos,photo galleries and more
    http://www.mytynews.com

  14. Thanks for this super copier

  15. Thanks for this vlc media player

  16. Thanks for this PES

  17. Thanks for this FIFA

  18. Thanks for this Recuva

  19. Thanks for this grt

  20. Thanks for this great

  21. Thanks for this great article

  22. Thanks for this great article

  23. Thanks for nice post. It’s Really helpful for all people. I share this now my twitter.
    Androdumpper
    Evocreo

  24. nice lecture. very clearly

  25. Watch MAA TV Serials Online Laks of online visitors chekcing to watch tv progremes in online so you may check the protal find the latest serials.

  26. Employment News of This Week Today every one looking for govt jobs in online so here iam suggesting this website to check latest govt jobs updates in online.

  27. It’s nice sharing. Thanks.
    umroh desember 2016

  28. thankssssss

  29. Watch UEFA Euro 2016 Live Streaming Online. Get Latest scores, schedule, Fixtures, free stream of ESPN, euro 2016 live, beIN Sports, Fox Sports, Canal Plus HD.

  30. thanks for your share. i will practice in my site.
    paket umroh desember 2016 | umroh desember 2016 | paket umroh November 2016 | umroh November 2016

  31. Great !

  32. Check out Euro Cup live scores to know everything about Euro Cup 2016,which is due to start on 10th June in France and also watch all the matches live.

  33. nice one here

  34. Mesin es krim adalah mesin yang digunakan untuk membuat es krim yang disukai oleh banyak orang dengan berbagai rasa dan variasi.

    Mesin Es Krim

  35. Beautiful, Make sure to take a look at the bottom of the Love your version of this pattern! Make sure to take a look at the bottom of the homepage.
    http://www.showboxapkdownloadd.com/

  36. Thanks for nice post. It’s Really helpful for all people. I share this now my twitter.
    SSC Result 2016

    SSC Result 2016 BD

  37. Thanks for nice post

    SSC Result 2016

    SSC Result 2016 BD

  38. thanks for such amazing content.keep going on . I ll be suggesting my friends about this site.group names for whatsapp

  39. WIRATECH adalah perusahaan terpercaya yang menjual mesin kemasan , mesin makanan dan juga plastik kemasan. Tujuan utama WIRATECH sendiri untuk memberikan harga termurah bagi seluruh pelanggan kami dengan kualitas barang terbaik serta pelayanan prima.

    mesin kemasan
    Vacuum Sealer
    Hand Sealer
    hand sealer
    vakum sealer
    cup sealer

  40. good one by your website

  41. good one by your website

    
    <a href="http://10thsscresults2016.com"> ts ssc results 2016 </a>
    

  42. good one by your website

  43. WIRATECH adalah perusahaan terpercaya yang menjual mesin kemasan , mesin makanan dan juga plastik kemasan. Tujuan utama WIRATECH sendiri untuk memberikan harga termurah bagi seluruh pelanggan kami dengan kualitas barang terbaik serta pelayanan prima. Jika anda bingung akan mesin apa yang anda butuhkan? bawa produk Anda ke kantor kami dan kami akan memberikan solusi serta saran mesin yang paling sesuai untuk Anda gunakan . WIRATECH tidak hanya sebuah toko mesin tetapi WIRATECH juga merupakan konsultan mesin yang profesional

    mesin bakso
    vacuum sealer
    mesin mie
    cup sealer
    mixer roti
    hand sealer
    mesin roti
    oven roti
    mesin es krim

  44. That is the excellent mindset. Nonetheless is just not help to make every sense whatsoever preaching about that matter

  45. That is the excellent mindset. Nonetheless is just not help to make every sense whatsoever preaching about that matter

  46. Silahkan anda kunjung salah satu website kami untuk mendapatkan informati tentang http://www.otosini.com

  47. Untuk mendapatkan informasi yang lebih lengkat, silahkan berkunjung ke http://www.yukmasakan.com/

  48. great post

    
    http://10thsscresults2016.com
    

  49. great post

    
    <a href="http://www.10thsscresults2016.com/" >ts ssc results 2016</a>
    <a href="http://www.10thsscresults2016.com/" >ap ssc results 2016</a>
    

  50. Good and ncie one telugu songs download

  51. Wirapax adalah sebuah toko mesin kemasan dan plastik kemasan terlengkap, termurah dan bergaransi. Segera hubungi kami untuk aneka jenis mesin dan plastik yang anda cari

    Hand Sealer
    Cup Sealer
    Mesin Kemasan
    Kemasan Snack

  52. yuk maen-maen ke wiratech.co.id, siapa tau dapat barang-barang bagus macem

    mesin es krim
    oven gas
    oven roti

  53. Take a look dude I am regular visitor on your site.Sharable content man.ssc results 2016

  54. We have a complete in-house product testing set-up in India. With best-in-class features, Freedom251 is the Indian smartphone brand at highly affordable prices. We are an amazing team of smartphone lovers who collaborate seamlessly to exchange technical and qualitative inputs and create quality products, along with testing at several stages to deliver the ultimate customer experience in its category.

  55. Oke juga, coba mampir ksini dah

    Oven Roti

    Oven Gas

  56. Banyak sekali yang ingin mendapatkan peringkat di google, namun sedikit yang berhasil, berikut ini adalah mereka yang berhasil:

    paket tour bali

  57. Good one Cool n Good one brahmotsavam mp3 songs

    sarainodu mp3 songs
    k

  58. very helpful for me. I am regular regular visitor on your site. very helpful for me. I am regular regular visitor on your site. very helpful for me. I am regular regular visitor on your site. good

  59. Visit me <a href="http://rawnev.blogspot.com/2015/12/indosportcom-portal-berita-olahraga.html">portal berita olahraga</a>

  60. That is the excellent mindset. nonetheless is just not help to make every sense whatsoever preaching about that matter advance happy new year 2016 wishes sms messages quotes

  61. It will show latest post , thank you great plugin

  62. good post thanks to author .
    advance happy new year 2016

  63. That is the excellent mindset. nonetheless is just not help to make every sence whatsoever preaching about that matter

  64. nice comment, i enjoy read it tips m tips mendapatkan dolar dari internet

  65. sebenernya ane gak ngerti, cuma karena lagi nyari traffic, jadi tolong di visit ya gan

    vakum sealer

  66. selamat menikmati, jangan lupa mengunjungi link ane gan

    Mesin Bakso

  67. Thanks

  68. do you know about this

  69. i know this is the best

  70. good job this is

  71. igne oyasi modelleri ve ornekleri

  72. good plugin for wp

  73. tozlu giyim modelleri

  74. make sense siy

  75. as wp user, I really need this plugin, very good for WP

  76. Download the above file, rename it from .txt to .php, and upload it to your plugins directory.

  77. really good, every wordpress website definitely need this plugin, thanks

  78. This plugin displays a list of the latest post from each category of your WordPress installation. It can be added to a post or page, or used directly in a template file. In the plugin’s options page you can choose the sort order, show or hide the dates, select the date formatting, show the first X characters of the content, display a link to the comments, and show comment counts, as well as other options.

  79. Merci pour ce plugin fort utile, faire un plan du site n’est jamais superflu :)

  80. auk ah gelap

  81. very good plugin wp, thank for the plugin

  82. thanks for sharing bro’ i will try it
    grosir kosmetik</div

  83. Merci pour ce plugin fort utile, faire un plan du site n’est jamais superflu :)

  84. Empire Groups, Chennai Loan

  85. nice information
    Bedel Son Bölüm , Bedel Dizisi , Bedel izle
    http://www.bedelizle.com/

  86. Magnificent goods from you, man. I have understand your stuff
    previous to and you’re just too great. I actually like what
    you have acquired here, certainly like what you’re stating and the way in which you say it.
    You make it enjoyable and you still care for to keep it wise.
    I cant wait to read far more from you. This is really a wonderful web site.

  87. Attractive component to content. I just stumbled upon your web site and in accession capital
    to say that I get actually enjoyed account your weblog posts.

    Anyway I’ll be subscribing for your augment and even I achievement you get admission to
    persistently quickly.

    my webpage; best foods for muscle building (freepatriot.org)

  88. Thanks so much! Great plugin.

  89. Güncel Bilgi Blogu – Güncel Haber Kayna??
    http://trbuguntvhaber.blogspot.com/

  90. I’m gone to inform my little brother, that he should also visit this
    website on regular basis to take updated from latest reports.

    Here is my page Megapolis Hack

  91. I am one of the Blogger platform users., But I really liked your article about wordpress. It makes me want to move from blogger to wordpress. thank you for the information and tutorials that you write.

  92. Thanks so much with this fantastic new website. I’m very fired up to show it to anyone. It makes me so satisfied your vast understanding and wisdom have a new channel for trying into the world.

  93. The post is absolutely fantastic! Lots of great information and inspiration, both of which we all need! Also like to Logo design admire the time and effort you put into your blog and detailed information you offer! I will bookmark your blog and have my children check up here often.

  94. Very useful info!

  95. nice information very helpful to new blogger used to wordpress and also helpful with me thanks for sharing. http://jobiegear.com/

  96. ikitelli nakliye

  97. H?rrah! Finally I got a website from where I know howw to really obtain usefful data re?ardin? my study and knowledge.

  98. information on this topic and no doubt your website saved my time and I got my desired information. Your post has been very helpful. Thanks.
    https://www.rebelmouse.com/metaboliccookingdaveruel/

  99. I’m not sure where you’re getting your information, but great topic.I needs to spend some time learning more or understanding more.Thanks for magnificent info I was looking for this info for my mission.
    playboy back issues

  100. If there was what between them? Currently there is a line break between them. (If you tried to type some code, be sure to wrap code tags around it so I can see.

  101. I’m very grateful for your knocking this together so quickly, I never expected to have a working version on the same day I asked if you fancied a challenge! That has to be a record. It’s now live an kicking on my pakistan idol

  102. About the options – I just tested mine again, and I can set them with no problems. You are changing it in the options page, and not in the plugin file itself right? The plugin file only contains the default values, which are used when it is first installed.
    glamur

  103. Thanks for the 2 plugins they work great and have enhanced my site
    glamurtv

  104. A few comments / questions. Would it be possible to order the posts by date posted? Also it would be nice to be able to show a longer excerpts from the posts. That would make for a great intro / homepage in some cases.
    glamurtv

  105. I just tested mine again, and I can set them with no problems. You are changing it in the options page, and not in the plugin file itself right? The plugin file only contains the default values, which are used when it is first installed.
    download mp3

  106. I have been searching for quite some time for information on this topic and no doubt your website saved my time and I got my desired information. Your post has been very helpful. Thanks

  107. Amazing Plugin.In Recent times more number of Websites are being developed in wordpress beacause of its unique features and plugins.

  108. Great plugin. We are plan to move our existing website in to wordpress, because of its great features and simple to use.

  109. 425
    loy

    Its work great plugins which are the most helpful

    http://nescafedolcegustoedg200t.dirtcheapstyle.us/2013/09/04/nescafe-dolce-gusto-edg200t-reviews/

    thank you for space

  110. You have so much knowledge about this issue, and so much

    http://nescafedolcegustoedg200t.dirtcheapstyle.us

  111. It is an very very awesome blog
    <a href="http://nescafedolcegustoedg200t.dirtcheapstyle.us">nescafe dolce gusto edg200t</a>

  112. Its work great plugins which are the most useful into it visit my site for more info

  113. Thanks for the 2 plugins they work great and have enhanced my site

  114. In the plugin’s options page you can choose the sort order,

  115. Welcome to the auction site of the future! Auction Psychic LLC.It gives users a fair chance to receive high-priced items at a discount. This unique approach effectively counteracts inflation of consumer goods. Looking to receive high-priced items at an extreme discount without the risk of penny auctions.Its’innovative bidding concept offers less risk and more reward. Registration on Auction Psychic LLC is free so don’t waste any more time on penny auctions.To get details please visit at- auctionpsychic.co

  116. Welcome to the auction site of the future! Auction Psychic LLC.It gives users a fair chance to receive high-priced items at a discount. This unique approach effectively counteracts inflation of consumer goods. Looking to receive high-priced items at an extreme discount without the risk of penny auctions.Its’innovative bidding concept offers less risk and more reward. Registration on Auction Psychic LLC is free so don’t waste any more time on penny auctions.To get details please visit at- auctionpsychic.co

  117. thanx 4 this … using it in my site

  118. Having a large pile of registers storing all necessary information is kind of hectic and difficult to maintain, but with advancement of technology, all this can simply be stored on a drive, it may be a physical drive or may be a virtual one. With the introduction of automated systems, people have been losing their jobs because they are replaced by a much quick and efficient tool which hardly requires any maintenance.
    Software Testing is basically the analysis of the product. Software testing not only includes checking the presence of bugs but also checks if the product satisfies the needs of the customer, provides a user friendly interface and to work according to the outline provided earlier.
    Software Testing does not always determine the defects in the coding it is criticism of it compared to others available in the market. The first thing is testing is to check if it is running successfully without any errors. In case of an error, the code needs to be modified and re-tested again. Secondly is to check if the product is user friendly.
    Software testing has different methods of testing and surveying. Some of them are Waterfall, Prototype model, Spiral, V-model, scrum, cleanroom and so on and so forth. Certified experts and professional study the final product making sure that the software will be able to stand in the competitive market.
    Some softwares need to flexible enough, which means that, they should be able to incorporate other softwares into them thus reducing complexity of the user, one just has to use a single software for his or her task.
    The software should be reusable and also should be able to be easily maintained, not forgetting that they should be reliable and should not hang up under any circumstances. The software should be efficient enough, which can save time, as well as money.

  119. I will keep searching.

  120. Hello there! Nice post! Please when I shall see a follow up!

  121. thanks to informations,very nice….,ok…support u….!!!!

  122. Hey!

    Thanks

  123. Thanks…

  124. Hi,
    Thanks for great post ! But it doesn’t show thumbnail. You should add functions to show thumb.

  125. 408
    James Walker

    Nice post. I have been searching for articles about valves and actuators and your post really helps. Thanks a lot for posting this. Next month I am going to be on my holidays in Dubai I try to use these tips in it click here

  126. Mga kababayan ko . Ako ay isang tuta ni Manny Villar. Kapag nanalo ang amo ko mga putang ina ninyo sa dagat kayo lahat itatapon. Country Music Australia

  127. Another new version,so speedy!

  128. You have so much knowledge about this issue, and so much passion.http://brevillereview.net/reviews/breville-bje510xl-ikon-900-watt-variable-speed-juice-extractor/

  129. Excellent blog post and its really informativehttp://brevillereview.net/reviews/breville-bje510xl-ikon-900-watt-variable-speed-juice-extractor/

  130. I found so many interesting stuff in your blog especially its discussion.
    http://brevillereview.net/reviews/breville-je98xl-juice-fountain-plus-850-watt-juicing-machine/

  131. Nice post thanks for sharing this article..it help a lot in increasing my knowledge about this
    http://brevillereview.net/reviews/breville-bje510xl-ikon-900-watt-variable-speed-juice-extractor/

  132. 399
    aimiywhite

    As I mentioned above, first select I looked comfortable shoes and apparently I’m not alone in the current market. Others wear sandals will tell you the same thing, they are the most comfortable shoes they own. In addition, these cheap tory burch flats let your feet breathe, they are beneficial to the body your foot arches. Due to the fact that most of them are highly buffered the only one which also increases the overall comfort. With many other shoes, you do not rush to close these in the door of your home just like with most other shoes.

    Of course, the answer is yes. Tory Burch comes to heel, we also show that any of your other products as Tory Burch comes to sandals, it is ready for your the romantic summer tory burch bags, which makes it more elegant, Tory Burch comes to the wallet, and be able to display your unique character. If you want to know more information Welcome to visit our tbshopping Tory Burch Tory Burch comes to heel, it comes to shopping center. You can see each family of products as well as detailed information about them.
    There are so many brands of tory burch shoes on sale shoes, why you should consider to buy Tory Burch comes to heels? Of course, this brand of shoes is complicated, and Tory Burch comes to one of the world’s most famous. Tory Burch, talked about the design is unique shoes. They should not be the best, but they are the people of the incident.

  133. 397
    aimiywhite

    Why should you waste so much time when you can buy these wholesale snapback hats on the internet? They can be easily bought through online stores on the internet. But do make sure that you buy these from online stores on the internet. Once you order it you can get relaxed. These headgears will be delivered at your home address in just a few days. These are delivered through shipping and the shipping offers are available for everyone and they can easily be ordered from anywhere around the world

  134. thanks for the blog post.its nice to know about your interesting topic.

    breville je98xl juice fountain plus

  135. The blog is absolutely fantastic. Lots of great information and inspiration, both of which we all need. Thankshttp://brevillereview.net/reviews/breville-800jexl-juice-fountain-elite-1000-watt-juice-extractor/

  136. This plugin prevents subscribers from viewing the WordPress admin panel located at /wp-admin/.

  137. LOL why they use? snapdragon in that us 1x is because tegra 3 doesn’t support LTE

  138. home loan

  139. You got to update this plugin , it is a nice effort.

  140. Wow, been looking for something like this for a long time! Two questions though. Can I set a different image for each category to appear instead of the category name? Also, I have a function that cuts the excerpt off after a complete sentence rather than half way through a word. How difficult is it to put that in to replace the excerpt part of the code? Could I just use the one line to call the function?
    Cheers

  141. Nice buh old

  142. 388
    Heike

    Very useful script.
    Is there a way to use this script with shortcode instead of <!-- ddlastfromeach -->?

  143. 387
    sl786982

    pRs ROFL lOl http://bit.ly/rHcSld D3w

  144. Ah well your comment! I did you good!bbnhj

  145. Over the past 10 years scientists have been studying meat painless method, but later appeared in several false dawn, did not change an indisputable fact. Gothenburg, Chalmers University of Technology Julie – Gould said: “No one has yet to produce in vitro meat.
    electric snow blower

  146. This plugin is exactly what i was looking for and it is really amazing! thanks

  147. Ad oggi uno dei marchi più grandi del mondo della moda, pelletteria Gucci è avviato, che sfruttano quando Gucci è stata fondata nel 1921, un prodotto importante. Per celebrare il 90 ° anniversario di Gucci deliberatamente emessi chiamato “gucci 2011“, serie di nuovi modelli di lusso per uomo e donna. Questi sono in edizione limitata: l’utilità di queste Gucci Borse a mano di bambù o di coccodrillo, grande arco colori dal marrone scuro, rosso ciliegia al verde scuro. Gucci (Gucci) 2011 e le tendenze autunno inverno Baoxie semplici ed eleganti nella forma e nel design, con un tono seppia low-key di lusso.Economico Scarpe Gucci Accessori da uomo tendenza, corrispondono alla moda perfetta per piccoli dettagli della transazione con un design semplice …

  148. This really is a excellent post, Ill be back again later on to see other posts that you have on your site.

  149. Hemming jeans, casual enough, but it must be high-heeled open-toed sandals costume refreshing look nice,True Religion Men’s MVP Point Guard Super T-Black Jack trousers folded, the visual focus falls on the sandals on, so you can pick some shiny, sexy sandals, like the thin band style can make the feet appear to be more slender, two-tone gold and silver sandals and added a bit of luxury. High-heeled slippers is also an option, are much more casual than casual sandals.Victoria hemming jeans lined with black suit,True Religion Men’s Billy Super Big T-Medium Drifter into the type into the cell, so most people do not pour a risky, in fact, mix it with the coat can be varied. Typically the sleeve is white with a small waist suits, lined vest, so work is not rude. Lining on the sleeves knitted pullovers, knitted cardigan, V-Neck tight-fitting T-shirt, vest or shirt POLO Tee, etc., are the same good-looking. More wonderful dress, is to make shoes and handbags or coat some of the color match up, and let the jeans as a transition,True Religion Men’s Billy Super Big T-Destroyed so dress up as a whole is much sense of it.

  150. The best part is that most online stores will charge you much lesser for your jersey than a brick and mortar store. On the other hand, the variety found online far surpasses what any regular store would be able to provide you.

  151. Awesome, now I can view my latest post from each category on my wordpress blog.. Thanks a lot for sharing this plugin.

  152. This really is a excellent post, Ill be back again later on to see other posts that you have on your site.

  153. Researchers recently gathered in Goteborg, Moncler Giubbotti Sweden, planning the slaughter of livestock can not get meat approach. Over the past 10 years scientists have been studying meat painless method, but later appeared in several false dawn, did not change an indisputable fact. Gothenburg, Chalmers University of Technology Julie – Gould said: “No one has yet to produce in vitro meat.” She was responsible for organizing the meeting. University of Maastricht, the Netherlands, according to Mark – Poster said that the first lab-grown out of the sausage may become a reality within six months, he was the main pioneer of this Moncler Giacche technology and loyal supporters. Poster has been tested using pig cells, recently found in a laboratory environment to cultivate muscle tissue method. And he has cultivated a similar muscle meat, each of length 2.5 cm, width 0.7 cm

  154. I find your plugins really helpful!

  155. hnfhnf Its interesting. I would like to know more about this…I really wanted to know how this works can you please help me out…….Thanks for sharing.

  156. Really very helpful…

  157. I always gain new ideas here.fdasf

  158. Thank you so very much for taking the time to share…very useful, indeed!hjmhg

  159. Thanks for a nice share you have given to us with such an large collection of information ggdffd

  160. I find your plugins really helpful!

  161. From the content I read in this site I could really say such an excellent do it have.It has a unique quality that you can rarely found on the other sites..

  162. Hi!

    This plugin is no more working in WP 3.2 . It does work on the front end but i m not able to access the admin option for this plugin ! Can somebody plese figure this out ?

    Thanks in advance !

  163. hunde trainieren und labrador retriever erziehung

  164. is it work on Wordpress 3.2 ?

  165. Very helpful article, thank you share

  166. Very nice article. Very useful.
    Thank you!

  167. is Plugin still work ?

  168. I visited this page first time and found it Very Good Job of acknowledgment and a marvelous source of info………Thanks Admin!

  169. it’s work on 3.1.3 ?

  170. Great Sharing ! Thank very much !

  171. Wow, Great plugin – exactly what I was looking for – thank very much ! It work with me !

  172. I am also wondering, will this plug in work with the latest version of word press ?
    Or is there any other updated version available ?

  173. This plugin still work with wp 3.1.2 ?

  174. The doenload link is not working for m e:( Can you plz fix that or is there a mirror link available ?

  175. 355
    Portable Photo Scanner

    I am using related post plugin in my ep blog. Can i use this one along with that one too ?
    That will make theuser interface more friendly.

  176. Great Sharing Good Work

  177. 353
    sun

    Help us build our fast growing web directory. Free & Featured Links MMA Training

  178. Great plugin – exactly what I was looking for – thanks!!!!

  179. I use wordpress 3.1. I insert the following line:

    in a post or page, but only get the text “” shown.
    I don’t know how to make it work. Thanks for your help in advance.

  180. 350
    ohn
  181. 349
    sun

    please read through the comments because most common issues have already been discussed many times. Thanks.
    master in engineering management

  182. please read through the comments because most common issues have already been discussed many times. Thanks.
    schools engineering

  183. Thank you for the post. This plugin can really be added to a post or page, or used directly in a template file. I was just looking for this kind of plugin.

  184. Very informative post.
    Many thanks for sharing.

  185. is this wordpress ? i use webplus and finding it not the best for advance programing. Is this service free?affordable website design

  186. This plugin is very good, i have test it on my local machine and found very effective. So, you can also install this plugin.
    affordable website design

  187. This plugin is very good, i have test it on my local machine and found very effective. So, you can also install this plugin.

  188. Thanks for the post. I thoroughly enjoyed reading it and I think you made some good points! I am mainly involved with fun educational games but I really got a lot from this. Take care!

  189. 340
    jibran

    Companies these days are using ergonomic furniture to ensure that there are no injuries from work related hazards. Use an ergonomic chair and feel better comfort in your back and shoulder. eyelash growth

  190. This plugin is very good, i have test it on my local machine and found very effective. So, you can also install this plugin.

  191. Thanks for the post

    Hello.
    Guide
    Attractions

    Tour Pattaya, Pattaya Nightlife
    Pattaya+Nightlife
    Bar, beer, entertainment disco, lady boys show cabaret pubs and live music outdoors at the famous Walking Street is known Nightlife.

  192. Thanks for the article. Great job.
    mp4 to dvd

  193. What is the best way to build back links ?anyone please

  194. is this wordpress ? i use webplus and finding it not the best for advance programing. Is this service free?

  195. This plugin is very good, i have test it on my local machine and found very effective. So, you can also install this plugin.

    Article Mafia

  196. Just what I was looking for. Thanks for sharing this plugin.

  197. gr8 plugin man.. thanks you a lot
    with a little modification its just what i need :)

  198. I wanted to know if we can add spacing between each category and also get a “more..” link

  199. Really great plugin…
    I just wanted to know if we can change the font style…or bold the categories??

  200. 329
    indiferie

    !
    I’ve got an account here.
    . .
    Is it hard to become a moderator on this forum?
    just visit interesting info

  201. In a homepage, I have 3 divisions..

    Intro area
    then below it is buying and selling (left and right col)

    how do I use this plugin to work for both left and right col for the 2 categories..

    Ima try to figure it out but if you can help, it would be nice

  202. 327
    Ethan

    Oops… this is what I meant:

    Wrap the code in a “div”

    
    <div id="example"><?php echo dd_last_from_each(); ?></div>
    

  203. 326
    Ethan

    Terri,

    Wrap the code in a , give it a class or id name, and edit using CSS.

  204. 325
    Terri

    Great Plugin, however, I would like to change the text font and style. How would I accomplish this?

  205. 324
    Ethan

    To get the latest posts without the Category Names, go into the php file and delete lines 419-442.

    
    		if ($last_cat != $posts->cat_ID) {
    
    			if ($last_cat != NULL) {
    				$the_output .= ($multi_cats) ? '</ul></li>' : '';
    			}
    
    			$the_output .= '<li>';
    
    			$the_output .= '<b>';
    			if ($ddle_cat_links) {
    				$the_output .= '<a href="' . get_category_link($posts->cat_ID) . '">' . $posts->cat_name . '</a>';
    			} else {
    				$the_output .= $posts->cat_name;
    			}
    			$the_output .= '</b>: ';
    
    			
    			$the_output .= ($multi_cats) ? '<ul><li>' : '';
    
    		} else {
    
    			$the_output .= '<li>';
    
    		}
    

  206. 323
    Roxanne

    How do I get the latest posts displayed without the Category names?

  207. hello, great plugin!

    but could change by including a preview thumbimage of the post?

  208. I will try this one, I am looking for something similar to latest post on Joomla.

  209. Really great plugin, I’m using on my 2 sites. Thanks

  210. Really search this plugin for WordPress. Here i got lot information about this. thanku.good

  211. This looks nice. Thanks for sharing, but it would been perfect if it allows me to show like 5 or X number of posts by category. :)

  212. We supply all kinds of moncler boots,moncler bags,moncler coats,moncler jackets,moncler T-shirt,moncler vest and so on.We have got a good reputation pf our products with top quality and good price.We sincerely look forward to futher cooperation with you for mutual benefits.We are sure that you will find working with us is a pleasant, time-saving and profitable experience. Please feel free to contact us if you have any questions.Our website is http://www.newlyapparel.com.

  213. Hi

    thanx a million.

    brilliant plugin…nobody else seems to think it would be ideal – yours is the only one of its kind.

    using it on a few of my sites.

    and it makes absolute seo sense – to use it on the home page…

    constantly changing, keyword rich content on the home page – what more can you want ?

    thanx

    peter

  214. 315
    sheila

    How do I get the latests posts displayed without the Category names?

  215. 314
    david

    thanks for the great plugin!

    is there a way to show the list in a table instead?

    like example:

    The Default View:
    Title
    * category: blog title – date posted
    * category: blog title – date posted

    Table View:
    ————————————–
    |category | blog title | date posted |
    ————————————–
    |category | blog title | date posted |
    ————————————–

    and it would be a killer plugin if it have page view number, so you can sort it not just by category or date, but also sort it by most popular or most viewed latest post.

    and it would be great if it had the ability to create more than on list, maybe in one page showing latest post by category, the other page showing latest post by date, and in the other page showing latest post by page view…

    maybe i’m asking too much…

  216. 313
    Silverbadger

    Is it possible to have the post displayed under the category title instead of running on after the category title. If you show unlimited posts, you get a list item with the first one starting beside the catgory title?

  217. It does work for me with no errors. Thanks for sharing. Vlad – Slovakia

  218. is it posibleto also show an image of the posts in the catagory list ?

    would love to see this feature…

    cheers!

  219. 310
    cybieify

    Hello. Please help with adding code to display post tags.

    I’ve tried adding get_the_tags() outside the loop using foreach, but it accumulates the tags, where first post appears with the right tags, and second posts includes not only its tags but also first post tags, and so is the same for third. For example,
    post 1 (tag: 1,2,3)
    post 2 (tag: 1,2,3,4,5,6)
    post 3 (tag: 1,2,3,4,5,6,7,8,9)
    so on so forth…

  220. 309
    Simone

    Hi! Great plugin! Thanks for sharing..

    Is there a way to retrieve the second post from a category if the last post in the category matches with the last post posted in the whole blog?

    Sorry for my english.. I hope you understood my question :P
    Thanks, Simone

  221. So you can set it to pull certain posts from certain categories? or is it stuck pulling all posts from every category? Reason I’m asking is, I have some video blogs/websites, and they have thousands of categories, lol.

  222. THNAKS DER

  223. Is there any code I can add to this plugin that will also allow me to show the latest pages that have been posted instead of just the latest posts? My website contains only pages.

  224. Never mind. Figured out how to move the date to beginning of sentence. Moved it to just before start:

    $the_output .= ”;

    }

    if ($ddle_show_date) {
    $the_output .= date_i18n($ddle_date_format, strtotime($posts->post_date)) .’ – ‘ ;
    }

    $the_output .= ‘ID) . ‘”>’ . $posts->post_title . ‘‘;

  225. Hi. Great plugin. It does exactly what I want, but I can’t figure out how to move the post date for beginning of sentence; eg
    03-10-10 This is the Post Title

    I found the code below on line 450. Any idea how to move date to beginning of sentence?

    Thanks

    if ($ddle_show_date) {
    date_i18n($ddle_date_format, strtotime($posts->post_date));
    $the_output .= ‘ – ‘ . date_i18n($ddle_date_format, strtotime($posts->post_date));
    }

  226. This looks very nice. Thanks for sharing!

  227. 302
    Miko?aj

    Hi, would it be possible for this script to distinguish odd and even categories listed so that separate css class could be assigned? (in order f.ex. display categories in two rows).

  228. 301
    deece

    Hi There,

    Firstly thanks heaps for this plugin! It is fantastic. I have managed to add a thumbanil using the code from Daiv. Thanks Daiv! Just wondering how I would link that thumbnail to the post please?

    Thanks again!

  229. 300
    Andrea

    Is there a way, or a special code, to have this plugin working not just for the related category to the post but for an external one too? Let’s say I want to call posts from category 3 inside a post of category 2, might this be possible?
    HELP HELP HELP HELP HELP

  230. It worked on mine. For those whose attempts failed, perhaps you need to take another closer look at the instructions. If not, this could be a theme-specific issue.

  231. Has anyone actually made this plugin work? This looks promising but all questions here seemed to have fallen on deaf ears.

    Oh, well, there’s only 1 way to find out. But I sure hate to waste time on something that won’t work anyway.

  232. Seems to be same error for me as for @slm in comment 220 btw. Yes, I have made sure to include category IDs.

  233. Can´t get it to work unfortunately. Only get “<!-- ddlastfromeach -->” as text when I paste the line in a post or a page although I have tried all kinds of configurations of the options.. :=(

  234. Can´t get it to work unfortunately. Only get “” as text when I paste the line in a post or a page although I have tried all kinds of configurations of the options.. :=(

  235. Can I use this in widgets?

  236. Hello,

    Thanks for the awesome plugin. But I’ve a question how can I remove the category name from appearing in the page?!

  237. 292
    Jason

    I sure wish that I could set the options for this plugin within the calling page, rather than setting one-size-fits-all options in the control panel.

  238. I’m getting the same issue as others. It won’t let me upload the plugin. I’m getting an “Incompatible archive PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature” error. I did a little reading, it seems like it may just be a bug with the latest wordpress version? Hopefully things get fixed, this plugin seems to be just what I need.

  239. 290
    Ron

    My categories have a hierarchy that I’d like to maintain. For instance:
    Press Releases
    -Company News
    -Events
    -etc.

    I cannot find in the configuration how to preserve that. What my page results in is:
    * Company News
    * Events
    * Press Releases.

    If I have several parent categories with a bunch of subcategories, the list becomes not easily scannable by the user.

    Am I missing something?

    Thanks!
    -ron

  240. 289
    Maremon

    I have a problem. Plugin cannot be activated. Can you help me pls?

    Warning: Unexpected character in input: ‘\’ (ASCII=92) state=1 in /home/vol9/phpzilla.net/phpz_XXXXXXX/mysite.com/htdocs/wp-content/plugins/dd-lastest-from-each.php on line 2

    Thank you.

  241. 288
    Zeniph

    Cant get it going in wordpress 2.8.5 – pluggin simply doesnt seem to register.

    Anyone else have same issue?

  242. I put in some time at a military base next to some hills. ,

  243. Get a rotisserie chicken from the grocery store or Costco and pull all the meat off. ,

  244. Thanks for shared nice Plugin

  245. I’m enthusiastic about Dagon Design Plugins. I wonder if the plugin would work for adding short code to a post for the purpose of bringing in content to that post from a specific category.

    I’ve uploaded the plugin an had a look at the settings. It looks like it wasn’t designed to do what I want to do but, while I await a response, I may see if the plugin can be customized to do what I want to do.

    Thanks for your reply!

  246. Vielen Dank für diesen Vorschlag. Ich schicke Dir einen Gruß aus Deutschland.

    Thanks for the suggestion. I send you regards from Germany.

  247. Hello

    Thanks for a great plugin, but how do I make it display the excerpt (if there is one) rather than the content?

    Thanks

  248. 281
    julien

    Have un probleme with download link

  249. I’ve managed to get the attached image from each post to display,
    add the following around line 445:

    $id = $posts->ID;
    $attachments = array();
    $attachments =& get_children( 'post_type=attachment&post_mime_type=image&post_parent=' . $id );
    if (array($attachments)) $attachment = array_shift($attachments);
    $id = $attachment->ID;	
    $image = wp_get_attachment_image_src($id);
    $the_output .= "<img src=\"$image[0]\" class=\"mythumb\" alt=\"{$attachment->post_content}\" width=\"$image[1]\" height=\"$image[2]\" />"."\n";
    

    This works for me, I’m sure there will be php warnings if the post doesn’t have an attached image, or maybe if there’s more than one.

  250. Great plugin, thanx
    I’m trying to get it to display the first image from each post.
    here’s the addition, but it’s not working for me yet.
    If you have any ideas, look forward to them.

    $id = $posts->ID;
    		$image = wp_get_attachment_image_src($id, $size = 'thumbnail');
    		
            $the_output .= "<img src=\"$image[0]\" class=\"mythumb\" alt=\"{$attachment->post_content}\" width=\"$image[1]\" height=\"$image[2]\" /></a>"."\n";
    	

  251. 278
    mike

    This plugin doesnt work when wp-security-scan(http://semperfiwebdesign.com/plugins/wp-security-scan/) plugin is also enabled.
    Plz rectify the problem!!!

  252. goood

  253. Hi, I’ve downloaded this plugin, renamed it to .php and added it to a folder within my plugins directory. The plugin shows up in my WP plugin list.

    When I activate, it, the screen fills with php code and pushes my WP Admin screen down to the bottom. What am I doing wrong?

    I can’t install this plugin correctly.

    It would be easier if could be added automatically though WP Admin.

    Thanks for any help, Richard

  254. 275
    German

    Hello,

    this plugin is great!!
    But, could you tell me please how to show the several post for each category in differents columns?
    I was trying to do it using css, but I couldn’t do it.

    Thank you!

  255. Great plugin, thank you very much!

  256. Hi, Is there a way to hide the category name? Is it possible to alter the plug-in just to hide the category names?

    Thanks…

  257. 272
    Jay

    I have been reading the comments and I am amazed at how the author has managed to take in some feedback to develop this plugin further.

    Honestly, its a well thought out plugin and it does what it says and works perfectly.

    My sugguestion is: if this plugin had a thumbnail option that could be inserted via custom fields, it would be a cool feature!

    For people who need some clarification as to how to get this plugin to work the lastest version of wp:

    1. Download the above file, rename it from .txt to .php.

    2. Make a new empty folder and rename that to “dd-lastest-from-each”.

    3. Place the “dd-lastest-from-each.php” file into the new folder you just created and compress it into a .zip file.

    4. now you can add the new plugin as normal.

  258. Great plugin! i am definetly going to use it!

    All the best,
    Laurentiu

  259. Hi,
    This is just what I was looking for…fit’s like a glove in my template (site’s not online yet, building local now).
    I have the first 290 chars of the latest post from 1 category showing on the frontpage. it shows the category name with a bullet in front and then a linked title.From the second line on it shows my post with a customised link to ‘read more’….

    Question: Can I get the category name dissapear and just keep the linked title of the post?

    Greetz

  260. 269
    Eric

    First, thank you so much for developing so many useful plugins.

    Do you have any plans to release a plugin just like this for comments? I’ve been looking for and unable to find a ‘Latest Comments from each Category’ plugin for WordPress.

  261. besmgmt: No problem at all :)

  262. @andychin
    if you want it in my way (http://www.besmgmt.de/support-db), send me a mail and i will send you the code. If it is no problem for der releaser.

  263. I have a problem, as below.

    * For Clients: Test For Client 1
    * Test For Clients 2

    ‘For Clients’ is the category name
    ‘Test For Client 1/2′ is the post title

    My question, how to format it properly? At least the first bullet list do not show the category name.

  264. Hey, don’t need to. I solved it in my was (try&error) :)
    Look @ http://www.besmgmt.de/support-db

    Hope it is ok to change your code. If not, please let me know.

    Greetz
    besmgmt

  265. Nice work, but is it possible that you give me the code to change the outpot like I wished it 1 post before? :)

  266. besmgmt: Not a bad idea. I just made a small modification. When displaying 1 post per cat, it displays the normal way. But when viewing more than 1, it displays them in a nicer method.

  267. Hello,

    is it possible, to show just for 1 time the category name, when i have more than one post in a category?
    I mean following:

    Wrong for me:
    Cat1
    - post1
    Cat1
    - post2

    Right for me:

    Cat1
    - post1
    - post2

    It would be great if you can realise it.

  268. Version 1.91 Released

    You can now choose how many posts per category to display.

    This plugin has been tested, and works, in the latest version of WordPress – 2.8

  269. Hi!,

    I want to show complete post while opening RSS feed of my blog (http://www.cheapmonthlymobile.co.uk/blog/). How can i do that? I already enabled “Full Text” option in reading section, but doesn’t works? Help Me!!!

  270. Hi,
    great Plugin!!!
    Ist there a way to format the Text a bit more better. I’m showing 1000 charakters and it looks not very well without linefeeds.

  271. 258
    Tim

    Nice plugin! Love it.
    Maybe for the next release an option to choose the number of posts to show per category?

  272. 257
    Dale Jacobs

    Hello there,

    Firstly great plugin!

    I am trying to change the order for the widget to always show it by a set Category order instead of latest post in category…

    Is that something that is doable? I was trying to combine this plugin with My Category order with no luck.

    Any help wold be much appreciated!

    Dale Jacobs

  273. Thanks for sharing and I am really like this plug in. I have also bookmark this page for further help of my friends because i have emailed this informative and useful post to my friends.

  274. Nice sharing and I have tried to do this plugin but its not working properly. May be there is something wrong…

  275. I tried using this plugin with my index page, and I see no indication that it’s doing anything. The plugin screen comes up okay on the admin page, and I’ve set it to include category “owner.” I see no change in the screen that comes up. I included the line as the first line of index.php. Any clue as to what’s wrong?

  276. 253
    Pepe

    Hi,

    could it be possible to mod the function call dd_last_from_each_event so it could accept excluded/included categories as a parameter ??.

    Other than that, the plugin works beautifully. Thank you for giving this to the community.

    Best regards,
    Pepe

  277. 252
    ifectve

    Nice plugin here, pls is it possible to have more than one post in each particular category displayed? A solution to this will be appreciated.

  278. 251
    Jack Elliot

    Is there a way to sort the Categories manually in an array? I want them in a very specific order.

  279. Hi,

    Nice development. we will refers to our CWAP trainee

    Thanks
    Pinna Infotech

  280. 249
    Jack Elliot

    Sorry, forgot to use the Code tag… reposting:

    After using your plugin, which is PERFECT for me, I have come across one problem: After activating this plugin, the if/then statement I have in my sidebar no longer works.
    This is the sample of the code that no longer shows up:

    
    <ul id="sidebar">
    	<p>Categories: <?php the_category(' '); ?></p>
    	<?php if (is_category('writing')) { ?>
    	<li id="recentWriting">
    		<h2>Last few writings...</h2>
    		<?php query_posts('category_name=writing&showposts=5'); ?>
    		<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    			<h5>
    				<a href="<?php the_permalink(); ?>">
    					<span><?php the_title(); ?></span> - <?php the_time('F jS, Y'); ?>
    				</a>
    			</h5>
    		<?php endwhile; else: ?>
    		<p>Sorry, no posts matched your criteria.</p>
    		<?php endif; ?>
    		<hr />
    	</li>
    	<?php } else if (is_category('art')) { ?>
    	<li id="recentArt">
    		<h2>Recent Artwork...</h2>
    		<?php query_posts('category_name=art&showposts=8'); ?>
    		<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    			<h5><a class="recentArt" href="<?php the_permalink(); ?>"><?php the_excerpt(); ?> <!-- <?php the_title(); ?> - <?php the_time('F jS, Y'); ?> --></a></h5>
    		<?php endwhile; else: ?>
    		<p>Sorry, no posts matched your criteria.</p>
    		<?php endif; ?>
    		<div class="clearBoth"></div>
    	</li>
    <?php };?>
    </ul>

    Can you help me out?

  281. 248
    Jack Elliot

    After using your plugin, which is PERFECT for me, I have come across one problem: After activating this plugin, the if/then statement I have in my sidebar no longer works.
    This is the sample of the code that no longer shows up:

    Categories:

    Last few writings…

    <a href=”">

    Sorry, no posts matched your criteria.

    Recent Artwork…

    <a class=”recentArt” href=”"> <!– – –>

    Sorry, no posts matched your criteria.

    Can you help me out?

  282. 247
    Claudia

    Hi, is there any possibility to install the plugin twice for displaying the latest x posts of various categories in various places and manners (i.e. one complete post of category 1, and, let’s say, ten post-titles of category 2)? Thanks.

  283. Hi,
    I’d like to know if this plugin enables me to fix a post in each category? Let me explain… I’d like to have the categories’ parent all fixed (where im going to explain what it will cover, only this post would appear on the parent) The, my regular posts would be directed and would show only on the sub-categories.
    Is it possible?
    Thanks a million,
    Elisa.

  284. 245
    Patrick

    Im sorry I don´t get it. It does not work implementing the code into a page; where do I have to insert the php snippet in the template? Can you help?

  285. Hey… your script word with the 2.7 and 2.7.1??
    After install your plug, my wp-admin page is blank!! (exepct sidebar)

    Whats happend.???

  286. 243
    joanna

    Is there any way to 1) include the image from the blog post and 2) limit the appearance of the latest blog post to the home page, instead of every page in the site? Thanks so much.

  287. When I enter the code after my name and email address; it prompts me that the code is not generated! I’ve tried several times to enter this contest and I get the same message each time!

  288. Version 1.9 Released

    An option has been added to manually choose category IDs you would like displayed in the list. (This option only applies if you are not using the exclude setting). This allows you to specify which categories you would like to show.

    This version has been tested in the latest release of WordPress (2.7.1)

  289. 240
    Patrick

    How would you configre this plugin to show an image thumbnail custom field and title rather than the other info?

    I want to try and use this to pull 10 recent thumbs of work from the portfolio posts into my landing page and display them in a carousel.

  290. OK,
    Here’s a NEWBIE question, but-
    If I want to insert this into the HTML of a static page.. the instructions say to include this line:

    How does this do anything, as it’s just a comment line? What am I missing?

    Dave

  291. Hi, I’m just wondering if it possible to add the option to INCLUDE only the categories you want to show (plus the exlude option as well =)?

  292. If you can’t find the options just edit the description at the top of the file to

    
    Description: Displays a list of the latest post in each category. <a href="admin.php?page=dd-latest-from-each.php">Edit options</a>.
    

    and then you can click to them from your list of plugins.

  293. Hi, great plugin, thank you very much! I’m running WP 2.7, runs like a charm.
    The only thing I would like to see in a future version would be the possibility to select the Number of WORDS to show, not the number of characters. Or maybe both options! :)
    Cheers

  294. 235
    nel

    hi tvdhoff,

    i have just figured out! it was very simple. i changed this line $the_output .= '</b>: <a href="' . get_permalink($posts->ID) . '">' . $posts->post_title . '</a> '; to this line: $the_output .= '</b>: <a href="' . get_permalink($posts->ID) . '">' . __($posts->post_title) . '</a> ';

    in resume, i wraped the $posts->post_title with the filter __()

    :)

    thanks,
    nel

  295. sorry for re-post , i gave wrong name in previous attempt , but after changing to proper name also it is giving same error.

    Warning: Unexpected character in input: ‘\’ (ASCII=92) state=1 in …./wp-content/plugins/dd-lastest-from-each.php on line 2 Parse error: syntax error, unexpected T_STRING in …./wp-content/plugins/dd-lastest-from-each.php on line 2

  296. Not working with wp 2.6.2 , not able to activate plugin,

    throwing fatal error

    Warning: Unexpected character in input: ‘\’ (ASCII=92) state=1 in …./wp-content/plugins/dd-posts-from-cat.php on line 2 Parse error: syntax error, unexpected T_STRING in ……../wp-content/plugins/dd-posts-from-cat.php on line 2

  297. I will try this one, I am looking for something similar to latest post on Joomla.

  298. 231
    Dan

    Is it possible to have the latest (x) number of posts for each category? If so, is there an easy way to make this change?

  299. does it work with Wordpress 2.7 ? I installed and activated the plugin, it shows the posts but I cannot change the options.

  300. Can someone edit the plugin so that there is an include option? I need it to exclude all categories except the ID’s I put in that include option.

    Would be greatly appreciated.

  301. 228
    NAME

    Your plugin is very good !
    How can I put it into the sidebar widget?
    Please help me!

  302. running wp Version 2.6.5 And using 1.8 of this plugin. Where do I select the options? I click on edit from the plugins page and I only get the normal code box. I’ve tried changing the code to alter what shows in the list, header title, etc but nothing is changing anything . . . . someone please help!!

  303. 226
    Michael

    Cool plugin. How do i get to the options config page on wp 2.6 though? Hardcoding the default values in the plugin script doesn’t seem to do the trick

  304. 225
    David North

    Is there a way to control what displayes for each post and how it displays?

  305. 224
    David North

    Hi,

    This is a helpful pluging.

    Is there a way to show the author of the post in the posts listing?

  306. Hi, can this plugin shows the pictures within the post if i were to show an excerpt with this plugin?

  307. Owner, can you please help people who cannot get any output

  308. Thanks for the post, but it does not show any output of the script. I am also using version 1.8

  309. I am having trouble using the inline shortcode .

    When my post renders, it shows:

    ” with a grey background instead of the processed output.

    I am using Wordpress 2.6.2 and the Arthemia Theme.

    Is anyone else getting this error? Please help.

    Thanks,
    == slm ==

  310. Hi,

    I’ve tried the plugin but there’s no output… I’m using WP 2.6.1 and plugin version 1.8
    I’ve tried inserting it into a template and in a post/page content… to no avail.
    Have you got an FAQ or some other info to troubleshoot this?

    Thanks in advance!

  311. Thank for plugin

    It’s good job.

  312. 217
    Nyo

    Forget to mention, I’m using WP 2.6.1
    P.s: tried even with a custom template and the php code but nothing…

  313. 216
    Nyo

    Plugin doesn’t work!! I Can’t figure how.. I’ve written via html editor of wordpres, but It gives nothing when I view the page…. please help!!

  314. Hi – thanks for this. Two points – I’d LOOOOVE a simple plugin like this written backwards -i.e. I just want to put the latest posts from ONE category on a page.

    Currently, I have to achieve that by ‘omitting’ all my categories except one.

    The other thing made me smile is – do you know your file is actually called ‘dd-lastest-from-each’ not ‘latest-from-each’? ;-)

  315. great job!

    but it would of been perfect if it allows me to show like 5 or X number of posts by category.

  316. Hi – love the concept – but just wondered if you can tailor the sitemap for individual pages (in the html for each page I guess), as opposed to a single global customise at the settings>plug-in level?

    Many thanks,
    Mark

  317. I thought you’d like to see what can be done with your plugin.
    Check out http://greenprophet.com/categories
    Thank you for making it possible!

  318. Hi! Great idea! Two questions/suggestions:
    1. Is there a way of playing with the style/css?
    2. Can one exclude subcategories?
    Thanks!

  319. 210
    Koen

    Can I show more posts from each catagorie? I only have one catagorie.

    many thanks!

  320. 209
    Fred

    Thanks for a great plugin! Trying to get the plugin to show an image along with the category title, but can’t get it to work. I use the Yet another photoblog and all my posts are YAPB posts.
    I tried adding this and the file complies, but nothing shows up on the page:

    The tag for inputing a thumbnail of the post's image is: 
    <?php yapb_thumbnail('<div>', array(), '</div>', array('w=200', 'q=90'), 'thumbnail'); ?>  
    
    So I tried:
    $the_output .= yapb_thumbnail('<div>', array(), '</div>', array('w=200', 'q=90'), 'thumbnail');

    Any ideas? Thanks!

  321. Version 1.8 Released

    - The plugin has been tested, and works, with WP 2.6
    - The code now uses WP’s current_time function (instead of relying on the server time) to hide future posts.
    - Added an option to exclude categories (comma-separated list of cat IDs to exclude).

  322. I will be going through all my plugins soon to check for 2.6 compatibility.

  323. 206
    Jay

    Hey All,

    I have been pulling my hair out to display more posts and have found a way to display more posts but its not specific just shows the latest 5 posts. If you change on V1.7 line 294 i = 0 to 3 it will display 5 most recent posts.

    Hope that helps some people

  324. 205
    hello

    Hi, I like to find out is it possible to display the script not within the template file. Instead, I like it to display in another directory, and not within my blog directory. Pls advice

  325. [Quote]
    2) In a template file, insert the following code:[/Quote]

    What do you mean by ‘template file’? is it folder, .txt, .php, indext.php, single.php and so on.

  326. How would one go about including the first one or two posts from each particular category in the site’s RSS feed?

  327. 202
    Abel

    Hi Admin,

    This plugin is exactly what my client needs. :)

    I’m trying to exclude a category using the tip of Jesse last 8-16-06 (code below) but it doesn’t seem to work anymore for Wordpress 2.5 .

    I’d appreciate any help. Thanks!

    
    -In the script, find this line:
      AND post_status = 'publish' 
    -Right above it, add this line:
      AND {$table_prefix}categories.cat_ID  3
      (Where 3 is the category ID) 
    

  328. Hi,

    I have:

    added an option to remove category from output
    remove duplicate posts
    fixed invalid html tags
    optimsed html / php /sql for speed

    If you want to download my updated version of the code (1.7mattc) goto: http://mattclegg.com/blog/wordpress/latest-post-from-each-category-plugin-17-mattc

    mattc

  329. sorry to post twice in a row, but here’s a fix for anyone not scared to modify the code. just search for any instance of:
    AND post_date < NOW()
    and replace it with
    AND post_date < ( NOW() + 86400 )
    this lets the script look ahead in the future up to a day from now, which would compensate for any time differences and let you post from your own time zone without issue.

  330. I’m also having the problem with a delay between posting and this script picking it up. I think I’ve found out what the problem is however and I have a workaround. I live on the east coast, but my site is hosted on a server on the west coast. If I set the timezone to UTC -8 then the posts show up immediately. I think the script must compare the current time on the server to see what is new, but it can’t see posts from a few hours ahead of the server’s current time so it ignores them. If this was changed somehow so that it recognized posts that were posted after the current time then no one would have this issue.

  331. Can u tell me how do i configure your script so that it will look like the same shown in http://www.revenews.com

    Please check and let me know

    Thank You in Advance

  332. 197
    huzeyd

    Hi, thanks for plugin but i have a problem, i want show more posts from all category but this plugin shows a posts from every category how can i do it or if it is possible can you write a mini code for it, please. Thanks…

  333. (Reposting because it seems I didn’t need to html-quote everything, please delete the preceding comment. Thanks.)

    This simple patch adds a new option, that switches off the ‘per category’ part and just shows all recent posts, using the same formatting etc. I know that kind of subverts the purpose of the plugin, but it was what I needed to do. ;-)

    
    Index: dd-lastest-from-each.php
    ===================================================================
    --- dd-lastest-from-each.php	(revision 532)
    +++ dd-lastest-from-each.php	(working copy)
    @@ -19,6 +19,7 @@
     add_option('ddle_date_format', 'F jS, Y');
     add_option('ddle_excerpts', FALSE);
     add_option('ddle_chars', 200);
    +add_option('ddle_all_posts', FALSE);
     add_option('ddle_comment_link', FALSE);
     add_option('ddle_comment_num', FALSE);
     add_option('ddle_comments_none', FALSE);
    @@ -49,6 +50,7 @@
     		update_option('ddle_date_format', 'F jS, Y');
     		update_option('ddle_excerpts', FALSE);
     		update_option('ddle_chars', 200);
    +		update_option('ddle_all_posts', FALSE);
     		update_option('ddle_comment_link', FALSE);
     		update_option('ddle_comment_num', FALSE);
     		update_option('ddle_comments_none', FALSE);
    @@ -67,6 +69,7 @@
     		update_option('ddle_date_format', (string) $_POST["ddle_date_format"]);
     		update_option('ddle_excerpts', (bool) $_POST["ddle_excerpts"]);
     		update_option('ddle_chars', (string) $_POST["ddle_chars"]);
    +		update_option('ddle_all_posts', (bool) $_POST["ddle_all_posts"]);
     		update_option('ddle_comment_link', (bool) $_POST["ddle_comment_link"]);
     		update_option('ddle_comment_num', (bool) $_POST["ddle_comment_num"]);
     		update_option('ddle_comments_none', (bool) $_POST["ddle_comments_none"]);
    @@ -178,6 +181,13 @@
     		(0 = unlimited)
     	</td></tr>
     
    +	<tr valign="top"><td width="35%" align="right">
    +              Include all posts
    +	</td><td align="left">
    +		<input type="checkbox" name="ddle_all_posts" value="checkbox" <?php if (get_option('ddle_all_posts')) echo "checked='checked'"; ?>/>
    +              <br/>(This option disables the 'from each category' part of the plugin.)
    +	</td></tr>
    +
     	
     	</table>
     	</fieldset>
    @@ -213,8 +223,8 @@
     	$ddle_comment_num = (bool)get_option('ddle_comment_num');
     	$ddle_comments_none = (bool)get_option('ddle_comments_none');
     	$ddle_limit = (int)get_option('ddle_limit');
    +        $ddle_all_posts = (bool)get_option('ddle_all_posts');
     
    -
     	$hide_check = '';
     	if ($ddle_hide_protected) {
     		$hide_check = " AND post_password = '' ";
    @@ -292,11 +302,15 @@
     		}
     
     
    +        if (!$ddle_all_posts) {
     
    -	$used_cats = array();;
    -	$i = 0;
    -	foreach ($last_posts as $posts) {
    +            /* scan through and remove all but the first post from each
    +               category, unless we're including all posts. */
     
    +            $used_cats = array();;
    +            $i = 0;
    +            foreach ($last_posts as $posts) {
    +
     		if (in_array($posts->cat_name, $used_cats)) {
     			unset($last_posts[$i]);
     		} else {
    @@ -304,7 +318,8 @@
     		}
     
     		$i++;
    -	}
    +            }
    +        }
     	$last_posts = array_values($last_posts);
     
     
    

  334. This simple patch adds a new option, that switches off the ‘per category’ part and just shows all recent posts, using the same formatting etc. I know that kind of subverts the purpose of the plugin, but it was what I needed to do. ;-)

    
    Index: dd-lastest-from-each.php
    ===================================================================
    --- dd-lastest-from-each.php	(revision 532)
    +++ dd-lastest-from-each.php	(working copy)
    @@ -19,6 +19,7 @@
     add_option('ddle_date_format', 'F jS, Y');
     add_option('ddle_excerpts', FALSE);
     add_option('ddle_chars', 200);
    +add_option('ddle_all_posts', FALSE);
     add_option('ddle_comment_link', FALSE);
     add_option('ddle_comment_num', FALSE);
     add_option('ddle_comments_none', FALSE);
    @@ -49,6 +50,7 @@
     		update_option('ddle_date_format', 'F jS, Y');
     		update_option('ddle_excerpts', FALSE);
     		update_option('ddle_chars', 200);
    +		update_option('ddle_all_posts', FALSE);
     		update_option('ddle_comment_link', FALSE);
     		update_option('ddle_comment_num', FALSE);
     		update_option('ddle_comments_none', FALSE);
    @@ -67,6 +69,7 @@
     		update_option('ddle_date_format', (string) $_POST["ddle_date_format"]);
     		update_option('ddle_excerpts', (bool) $_POST["ddle_excerpts"]);
     		update_option('ddle_chars', (string) $_POST["ddle_chars"]);
    +		update_option('ddle_all_posts', (bool) $_POST["ddle_all_posts"]);
     		update_option('ddle_comment_link', (bool) $_POST["ddle_comment_link"]);
     		update_option('ddle_comment_num', (bool) $_POST["ddle_comment_num"]);
     		update_option('ddle_comments_none', (bool) $_POST["ddle_comments_none"]);
    @@ -178,6 +181,13 @@
     		(0 = unlimited)
     	&lt;/td&gt;&lt;/tr&gt;
     
    +	&lt;tr valign="top"&gt;&lt;td width="35%" align="right"&gt;
    +              Include all posts
    +	&lt;/td&gt;&lt;td align="left"&gt;
    +		&lt;input type="checkbox" name="ddle_all_posts" value="checkbox" &lt;?php if (get_option('ddle_all_posts')) echo "checked='checked'"; ?&gt;/&gt;
    +              &lt;br/&gt;(This option disables the 'from each category' part of the plugin.)
    +	&lt;/td&gt;&lt;/tr&gt;
    +
     	
     	&lt;/table&gt;
     	&lt;/fieldset&gt;
    @@ -213,8 +223,8 @@
     	$ddle_comment_num = (bool)get_option('ddle_comment_num');
     	$ddle_comments_none = (bool)get_option('ddle_comments_none');
     	$ddle_limit = (int)get_option('ddle_limit');
    +        $ddle_all_posts = (bool)get_option('ddle_all_posts');
     
    -
     	$hide_check = '';
     	if ($ddle_hide_protected) {
     		$hide_check = " AND post_password = '' ";
    @@ -292,11 +302,15 @@
     		}
     
     
    +        if (!$ddle_all_posts) {
     
    -	$used_cats = array();;
    -	$i = 0;
    -	foreach ($last_posts as $posts) {
    +            /* scan through and remove all but the first post from each
    +               category, unless we're including all posts. */
     
    +            $used_cats = array();;
    +            $i = 0;
    +            foreach ($last_posts as $posts) {
    +
     		if (in_array($posts-&gt;cat_name, $used_cats)) {
     			unset($last_posts[$i]);
     		} else {
    @@ -304,7 +318,8 @@
     		}
     
     		$i++;
    -	}
    +            }
    +        }
     	$last_posts = array_values($last_posts);
     
    
    

  335. This is great thank you! I would also love to see images included in this, is there anyway we could do that?

    Thanks

  336. 193
    rob

    I don’t understand why you didn’t include the ability to limit the amount of posts shown, is there a way to do that?

  337. 192
    margot

    I was just wondering if there is any way to display an image within each of the posts? Thanks!

  338. 191
    Robert V

    How do i add a link at the end of the previews e.g. “Read More” link and then adding a

  339. 190
    bodhi mcgee

    Hi, great plugin. Loving it, making life easy. But one thing I was thinking was why it doesnt include the ability to have an image included from the post? Any chance of having this put in? Or as a quick fix, any ideas for a quick code fix to get this working? No matter what, great job and thanks very much. This will be the icing on the cake. Cheers

  340. Plugin is a good idea but there is something wrong with this application. It is displaying wrong posts.. not the latest ones… but older posts… am I the only one experiencing the problem?

  341. Ok, nice plugin but not updated at all i see,

    ————–
    If you want to disable any child categories, this is the correct line for WP 2.3.2:
    find: AND {$tp}terms.term_id = {$tp}term_taxonomy.term_id
    and place after it: AND {$tp}term_taxonomy.parent = 0

    if you want to show only child categories then you place:
    AND {$tp}term_taxonomy.parent > 0

  342. Thanks so much for the plugin! You’re the best, Aleister, so many useful plugins.

  343. 186
    ego2012

    hello,
    how can i exclude some category (i’d like to hide all parent cats)
    thank you! ;)

  344. Hi,
    first of all, thanks for this grate plugin. secondly it seems this is having some propagation delay between posting new content and being shown in your plugin, although the new post is immediately shown in side bar.

  345. 184
    Tom

    Hello again
    New day new problem :)
    Is there a way to add links to post text ?
    When i use Show first X characters of posts everything looks good but links aren’t displayed. sentence is excluded.
    best regards TOm

  346. 183
    Tom

    ok it’s easy i found it quickly despite my poor php knowlege :)
    just add
    AND {$tp}term_taxonomy.term_id = 3
    after
    AND {$tp}terms.term_id = {$tp}term_taxonomy.term_id

  347. 182
    Tom

    HEllo
    very nice plugin, great job!
    now question, how to display one category under wp2.3
    this solution AND {$table_prefix}categories.cat_ID 3
    won’t work

  348. 181
    ego2012

    hi guys,
    this is the plug-in i really nead in my home.php template thank you.

    i’ve some features request related to post with multiple category and category exclusion.

    i’ve posts with multiple cats maybe 2 or 3 like “Events, Free Conference, Workshops” and i’d like to show the most relevant post in “Events” and the coolest in “Workshops” now i’ve a single post repeated for all these cats cause it is the latest…(of course!:)

    maybe you can work side by side with “Top Cat” http://wordpress.org/extend/plugins/topcat/
    if i’ve correctly understood it functionality
    (english language is not my first talent ;)

    bye

  349. Super plugin was using it for the longest time but
    not sure what happened but ver 1.5 worked great I upgraded to 1.7 and now even though I have on the front page post at the bottom nothing is displaying.

    Any ideas on where to look ?
    best,
    Lewis

  350. excluding some categories option is need.

  351. 178
    Johan

    I like this plugin!

    I am looking for the following extension, as i will have a lot of categories.

    List the lastest n posts of a selectable list of categories
    - number of posts per cat (n)
    - which cats to show (list)

    a inspiration sample can be found at z.nu.nl

  352. i really like this plugin, and have used it for a long time. the 2.3.1 upgrade threw me for a loop for a little while, but after getting in and getting dirty, i finally have everything fixed back up. i keep getting this error:

    Warning: Cannot modify header information - headers already sent by (output started at /homepages/0/d144193462/htdocs/texas-fire/wp-content/plugins/dd-latest-from-each.php:435) in /homepages/0/d144193462/htdocs/texas-fire/wp-includes/pluggable.php on line 391

    i have been all over the WP forums and done all of what the FAQ suggests to fix it (clean the whitespace, check for carrige return) but to no avail. any suggestions ?

  353. Good news, the delay is over, it now picked up the new post. Strange that it took a couple of hours, but at least it did it on its own.

    So just that other question left in case you have any thoughts on it, thanks again!

  354. Great plug-in, really nice. Two things:

    I just added a post, but the plug-in hasn’t noticed it — it is still showing the previous post in that Category as the recent one. I see that in Comment #63 someone else had a similar issue, which seemed to be fixed at that point, but something’s up again. Any thoughts?

    Second thing, much less pressing, well, just see my Comment #169 :)

    Thanks again for a great plug-in.

  355. Thanks for a great plugin, it works like a charm!

    A suggestion / request if such a thing is possible:

    - The option to hide or show the category name, so only the titles of the posts and their first words show up and are used as links to them; I’m going for a very minimalist navigation…

    Keep up the good work! Cheers.

  356. 173
    WordPress Lover

    Hi, heheh, it’s me again =P. For this plugin, I’m just wondering if you could add the [Author Name] and an Option to “Turn Author Names into links.”

    It’s also helpful to have another Option to check the Category we don’t want to display the post (like the Similar Post Plugin by rmarsh.com/plugins =). Please, please add this Option as this will make this plugin more powerful!

    *Hehe, here a sidenote: I plan to use this for an ezine articles site like ezinearticles.com, so the format for the display (which means I’ll hack your plugin =) is as follow:

    [Post Title] [By Author Name] [in Category Name] [on Date Format] [- Post Excerpt]
    //This format helps the flow = ‘make sense’ (e.g. Option to not show [on Date Format]: [Post Title] [By Author Name] [in Category Name][ - Post Excerpt].

    //Your current display format: [Category][Post Title - ][Date][Excerpt].

    Hope I make some sense/sensible suggestions xP. O.K. See you later D[r]agonDesign.

  357. 172
    Jon Bennett

    Is there a way to only show 1 particular categories’ latest posts?

  358. Very helpful plugin!
    But why is it not working, when I’m inserting it into the text widget?
    Thank you!

  359. Version 1.7 Released

    This update adds support for WordPress 2.3, and will also still work in 2.1 and 2.0.

  360. I see that you can limit the list to a certain number of categories, but is it possible to limit the output to a particular set of categories? E.g., if I only and always want it to shows categories 1, 4, 5, and 7, is that possible?

  361. Is there an easy way to mod this so you can have it be Latest post from a certain category?

  362. Hello,

    People that view my blog with IE 6 are having a problem. The plugin is displaying the list all the way at the bottom of the page.

    anyone else having this issue or know of a fix.

  363. Very nice.
    How do I add the last posts to the plugin?

    thanks for your hard work.

  364. 165
    Sal

    Thanks for providing this. Very useful. :) I’d like to use it on different pages of a site to only show one different category per site page, rather than list all categories. Is this possible?

  365. 164
    Jono2009

    Great work on the plugin, thank you! Is it possible to have it display the last {x} articles from each category as well?

    Thx!
    Jon

  366. 163
    monti

    How to sort names of categories in alphabetical order of wp admin panel-manage categories

  367. 162
    FraZ

    Hi
    great plugin, it’s working fine on my site.
    I suggest to give administrators the possibility to exclude some category i.e. i want to show all cats except that with id 3,8 and 11.
    bye

  368. Viceer: You just have to enable the option to show an excerpt for each post.

  369. Hi, I am new with WP and planning to use it in our Uni. Your plugin it just the right one we’ve been looking for.

    How can i possibly use the options… (sorry, i am new with WP)? I like to show the latest post for each category with some few lines in every post. Like:

    Category #1
    =======

    POST TITLE
    date posted

    Some few lines of the post.

    Another Category
    ===========

    POST TITLE
    date posted

    Some few lines of the post.

    Help/Suggestion is much appreciated..

  370. Hello,

    I really love this plugin, it works exactly as i wanted it to.
    but there is one very small problem, I want my main page to display the entire posts. but the format does not seem to follow the template, they crumple up and lose all the format

    here’s my website http://www.sheeply.com
    the 1st post is by the plugin, the second post is the original post. Is there anything i can do so that it adds the and other formats into the plugin generated posts so that it looks like the second (the original) post?

    Thank you very much!

  371. 158
    abu

    Great plugin, thanks
    Is it possible to show post-contents including the post-image and the text limited to the [ more...] quicktag?
    I’ll appreciated if anybody have a clue.
    Thanks

  372. Hey,

    Great plugin, exactly what i was looking for. I was just wondering if i could add a line before each category (after the content is displayed.) I’m kind of new to the coding thing and was hoping you could tell me what to modify in the plugin code.

    Thanks

  373. rdentry: It sometimes takes a little while before the new posts appear due to the way the plugin checks for future-dated posts.

  374. Huh, weird… the two parameters should be

    title_li=&depth=1&sort_column=menu_order

    and

    title_li=&depth=1&sort_column=menu_order&exclude=1466

    where the number corresponds to the ‘latest’ page.

  375. Update: I’ve done that now, by editing header.php

    <?php wp_list_pages('title_li=&depth=1&sort_column=menu_order'); ?>

    becomes:

    
    <?php if (function_exists('dd_last_from_each')) {
          wp_list_pages('title_li=&depth=1&sort_column=menu_order');
           } 
      else {
             wp_list_pages('title_li=&depth=1&sort_column=menu_order&exclude=1466');
           } 
    ?>

  376. Thanks for the nice plugin, here’s what I’ve done with it.

    1) I made a new page, ID number 1466, containing the following text:

    “This page displays the latest post along in every category on this site.

    If you’re reading this, either the plugin is disabled (maybe I am mid-upgrade), or I’ve simply messed up! If so, please let me know using the form below!”

    2) I updated the ‘page’ template

    				<?php if (have_posts()) : ?>
    				<?php while (have_posts()) : the_post(); ?> <!-- These two lines were existing code, for context -->
    <?php if (($post->ID==1466) and (function_exists('dd_last_from_each'))) : 
    echo dd_last_from_each(); 
    ?> 
    				<?php else : ?>

    and, before endwhile <?php endif; ?>

    3) Now, if the plugin isn’t available, the page will display an apology, and if it is available it’ll show the plugin results.

    4) My final step will be to hack the page links to not show the link to the page if the plugin is unavailable.

    Thanks.

  377. 152
    rdentry

    This plug-in is working wonderfully except for the fact that when I test it, by writing a new post, it does not show the most recent test post after I publish and refresh. I believe that others have had this problem, but the solution has been exchanged via email. Any help would be appreciated.

  378. Amber: Because of the way this plugin checks the post dates, new ones do not always show up instantly.

    Marc: Thanks, I will make the modifications.

  379. I added new post in several categories, but the output for the plugin remained the same. What do I need to do?

  380. Hi,

    I appreciate and I utilize your plugin on my site. I have just 2 comments:

    * around line 64 of the last version (1.5)

    replace
    Latest Posts From Each Category v1.4

    with
    <h2>Latest Posts From Each Category v1.5</h2>

    * it will be nice for non-english speaking people to change around line 302 the date function with the date_i18n()function to display a localized date format accordingly with the $WPLANG variable

    replace
    $the_output .= ' - ' . date($ddle_date_format, strtotime($posts->post_date));

    with
    $the_output .= ' - ' . date_i18n($ddle_date_format, strtotime($posts->post_date));

    regards
    marc

  381. asuan: Thanks, I will add a link to it.

  382. With your permission i traslated your plugin to spanish. Thanks for all.
    The link: http://www.asuan-peluqueros.com/dd-lastest-from-each-SP.txt

  383. Damon: It is – just search the WordPress docs to find out how to get the ID of the page being viewed. Then you can just have a simple if statement that checks it.

  384. 145
    Damon

    Oops, the code won’t show properly. Ok, I used the info I found on this link:

    http://latestpost.pastebin.co.uk/3890

    Now I want to add a conditional statement that will run the code only if on a specific page. Is that relatively easy to do?

  385. 144
    Damon

    Ok I think I found the answer to my own problem, however now I have a new question. Here’s the code I found and modified:

    Events

    > –

    (Note: The ‘a’ href is shown that way because the code breaks when I post it here)

    That’s great except that info shows up on every page in the
    sidebar. I’d like to add a conditional statement that runs the code above in the sidebar only if on a specified page, i.e.

    then,

    the above code would work…

    is that possible?

  386. 143
    Damon

    Gahhhh! This is the plug-in I’ve been looking far and wide for! I only need one modification.

    I want to display 3 posts total. From a specified category.

    Is it possible?

  387. Kons: No. You are looking for an RSS aggregator plugin.

  388. i would like to use this plugin on a different way. i want to show latest posts from another blog, is is possible with your plugin?

  389. I commented out the part of your plugin that introduced a linebreak after the separating dash, still curious if you might ever include options for formatting the output…

  390. 139
    ovizii

    how would I change the plugin so that it does not insert a breakline after a separating “-” ? have a look here in the right sidebar: http://www.klub-kamikaze.com/ after every title there is a “-” and then a newline and very often the dash is on a line by itself… I woudl like to take out the linebreak after the dash, can I simply edit the plugin? do you have any plans for letting users edit the layout in the options page rather than editing the plugin?

  391. mookie: That code should work – what was the error?

  392. i was curious about hiding child categories. i searched the comments and found this by Jess:

    You can hide child categories by:

    -In the script, find this line (on or about line 233):
    AND post_status = ‘publish’
    -Right ABOVE it, add this line:
    AND {$table_prefix}categories.category_parent = 0

    but that returns a db error. any sugg?

  393. hi, i would like to display not just recent post on each category, but a number of recent posts in each category, how to do that?

  394. Great plugin, exactly what I’ve been looking for. It really helped me. How i can change it to show only comments to posts ?

  395. Eduardo: Sure, look in the script for the declaration of ‘$sort_code’ – you could add in your own SQL code to sort it however you like.

    syokaku: That would be possible, but it would be much easier to just use a few lines of code to do it, instead of this plugin. Example: http://wordpress.org/support/topic/108402

  396. 133
    Eduardo

    Is there any way I could sort the categories in any other way than Alphabetical or Post Date?

    My categories are an Anagram and are supposed to Read VALUE so those options don’t work for me.

    Everything else works great and is what I need for my site.

  397. Hi, great plugin!
    I’m trying to edit it to fit my needs: I want show only the last post of each category of my blog. I’ve onlytwo categories, so I’ll always have only 2 post in home page, but I’d like to put between the two post a menu. is it possible?
    thanks in advance

  398. Andre: It just generates a regular list, so you would just have to modify your CSS file.

    Mixa: It sounds like you might be better off with another plugin, but I do not know of one off-hand.

  399. But as to do, that did plugin show, say, the last 10 records only of certain category?
    Is it possible to load to multiply plagin then once or twice, naming him other names and to create a show for every page of the categories?
    Possibly, is there some other plugin, that allows to show the last records of the chosen categories in different places? (On every page – separate, chosen by hand, category)

  400. Hi,

    Is there any way to remove the big dot from infront of the listings?

  401. [...] parameters from the admin panel and style as you wish with css. heres a link to the plugin, Latest Post from each Category plugin for WordPress · Dagon Design [...]

  402. 127
    Kaleb

    Is it possible to add the option to exclude a specific category? I put posts I want to show up on the home page in a specific category (blog), as well as putting them in the category they belong (ex: News). So some posts are showing up in the list twice.

  403. Ash: I just uploaded version 1.4 which should fix that problem – thanks for pointing it out – I had not noticed it :)

  404. Great plugin, exactly what I’ve been looking for. Just one problem with wordpress 2.1, new pages are shown in the default category, is there a way to change this?

  405. My apologies. I didnt see your previous response to Victro.

  406. Hi there… this would be great if you could add the option to show more than one post/category. Like, to show a list of the most recent posts from each category.

  407. Victro: This plugin was not really made to do that. It is possible of course, but it would take a good number of changes. If you are interested in having a custom version of this plugin created, contact me.

  408. 121
    Victro

    How can i display the 3 latests post for each category instead of showing just 1?

  409. Hey, I use your script at my site: http://www.makenosense.net. But when I post a new post and assign it to a category the listing of latest post from each category won’t change.

    I found out that I need to post the “<!-- ddlastfromeach -->” inside the post, then save. And then edit it again and delete “<!-- ddlastfromeach -->” for the listing of latest posts to change.

  410. Hey, I use your script at my site: http://www.makenosense.net. But when I post a new post and assign it to a category the listing of latest post from each category won’t change.

    I found out that I need to post the “” inside the post, then save. And then edit it again and delete “” for the listing of latest posts to change.

  411. I am having the same problem as below. How can this be fixed so I can see the latest post.
    “hi

    but the plugin shows the last posts or the oldest ones?

    in our blog it shows the old ones. (???)

    is it correct?
    thnx
    http://www.markettari.biz

  412. Perhaps I will set up a section in the forum where people can post their modifications to scripts.

  413. Mike,

    Category selection into the admin page was already done by Jesse. I have it and I’m using it on my site, too. Email me at gmail if you want it. Username is johnheart.

  414. ADMIN: Your solution worked like a charm . . . great script.
    As a future feature, you may want to work the category selection into the admin page . . . I don’t think there are any other plugins out there to do that.

    JH: Thanks for the comments… I have it resolved with the code modification in the plugin.

  415. Mike Wilson,

    Try this code without using the plugin:

    http://latestpost.pastebin.co.uk/3890

    Note: Pls disregard previous 2 posts. I can’t display proper code here.

  416. Mike: Find this line in the script:

    AND {$table_prefix}categories.cat_ID = {$table_prefix}post2cat.category_id

    And after it, add this line:

    AND {$table_prefix}categories.cat_ID = 4

  417. Hello . . .
    I think this has been answered once, but the code has been removed. I am using this plugin, and love it! But I want the code to pull from only one category. I am using to display the newest post (excerpt) in my sidebar from the Journal Category (ID=4).

    I really need this to work…
    Thanks

  418. goxu: That will not work at all like that. You have referenced the $post variable outside of its scope, and strstr just uses basic strings, not arrays of strings anyway. I may see about adding this feature next time I update though :)

  419. Hi,

    I’m trying to eliminate entries of the same subjects, which happens when a post has multiple categories assigned.

    I added the following code under the line 283

    if (($ddle_limit == 0) || ($limit_check post_title ." ";   // I added this
          if(!strstr($post_titles, $posts-&gt;post_title)) { 

    And under the line 343.

    $the_output .= ''; // the line 343
    
          } // I added

    I expected that the strstr() finds the same titles and skips the output. But it seems not working.

    Do you know what’s wrong with this? Or any other ways to accomplish it?

  420. 109
    Jon

    This is a cool plug-in

  421. [...] Latest Post from each Category Crea una lista con l’ultimo post pubblicato in ogni singola categoria. Può essere inserito nel template oppure in un post o in una pagina statica. [...]

  422. JH: Ah yes, I forgot to make that fix. I just updated the file :)

  423. drag&drop,

    As Jesse have said…

    “…Also I do believe the elipse (…) has been added, but I there was an error in the code. On or about line 338, you will need to replace sizeof with strlen.”

  424. 105
    drag&drop

    This plugin works great, Admin… i’ve got just a small problem using “Show first X characters of posts”.
    When it reach the max characters allowed, it doesn’t show “…” or anything else… just a “brutal cut”
    It’s normal?

  425. 104
    Shane

    Well, you might want to consider it for a future release. IMO it is a little tacky cutting off in the middle of a word which is what happens in most cases if you cut off at a max character. I am going to try and play with your script to tweak it to my needs … it definitely is a good start at fixing the problem of wanting to display the latest post from each category on a homepage. Thanks!

  426. Shane: At this time it simply cuts off where it cuts off. It could of course be added – anything is possible :)

    As far as the styling and html in the posts, yes, it is stripped out. The main reason I did this was so that it the excerpt would not end before a tag was closed. If your post starts with a bold tag, and it is not closed before the excerpt ends, the rest of the page would be in bold, etc.. :)

  427. 102
    Shane

    I also just noticed that the text from the blog does not contain any of the styling/HTML. For example if there is a word in bold or maybe even a photo in the first paragraph of the blog – all that is stripped out. I am sure this is intentional, but is there a way to allow the styling/HTML?

  428. 101
    Shane

    Wow – I think this is going to do what I need it to do. Thank you! One questions … the “Number of characters to show” will actually cut off exactly at the character limit, even if it is in the middle of a word or sentence. How can I change this to end at the nearest paragraph end from the cut off point? Post Teaser plug-in offers a similar option: http://dev.wp-plugins.org/wiki/PostTeaser – I am going to explore and see if this can be added. Thanks.

  429. i know, but the option switch modifies only the list rank (sort). the list still shows the oldest posts for each category. strange

  430. enrico: By default, it should show the latest ones – but this can be changed with the sort order option on the options page.

  431. hi

    but the plugin shows the last posts or the oldest ones?

    in our blog it shows the old ones. (???)

    is it correct?
    thnx
    http://www.markettari.biz

  432. Jesse,

    Excellent. The “!=” did the trick. Thanks a lot.

  433. Gemme:

    To remove a specific category use this line, and sorry for the confussion

    AND {$table_prefix}categories.cat_ID 3

    “” means not equal, you can also use “!=”, this means the same thing. I think “!=” is the “correct way” but I have “” in my code and I know it works.

  434. No, I don’t think it was your fault as you actually correctly mentioned that using the “=” shows up one selected category.

    The thing I ran into is that if I want to exclude certain categories.

    You’re example was:

    AND {$table_prefix}categories.cat_ID 3
    (Where 3 is the category ID)
    The new line removes that category from the list

    This is were I got the database error.

    Sorry for the confusion. You’re doing great work.

  435. Gemme:

    Oops, Sorry! Looks like that was an error on my part it should be as you stated.

  436. Jess:

    I have tried your suggestion to limit categories showing up.

    When I add.

    AND {$table_prefix}categories.cat_ID 3

    I get a database error

    When I only want to show 1 category using

    AND {$table_prefix}categories.cat_ID=3

    it works.

    Is this an issue on my side or …

    Thanks

  437. hi there.
    is it any way that :

    a)your plugin could also show the excerpt ? ( i tried add_option('ddle_excerpts', TRUE);, but nothing happens.

    WE: while writing , i managed to get the excerpt

    $the_output .= '</b>: <a>ID) . '"&gt;' . $posts-&gt;post_title . '</a>'.my_excerpt_function($posts-&gt;ID) ;
    
    , but still,it would be nice to be enabled from the control panel

    b)i want to have 3 boxes on the same page, each one with the latest x posts from a category that i select.
    the problem is that i don’t want to install the plugin x times , i tried cloning the function with different names, but it turned out to be a bad ideea :)

  438. actually.. instead.. am i able to possibly call the funtion in my sidebar and have a categories remove in the function call??

    thanks to both Jesse and Aliester for the help and plugin!!!

  439. Kim:

    Yes you can. You will probably need to define some sort of variable and then place that in the SQL query.

    place something simialr to this around line 223 after the switch for ddle_sort and before the closing }

    
    php global $ user_identity, $ user_level; get_currentuserinfo(); if  ( 
    $ user_identity) {
                    if ($ user_level &gt; = 8 ) {
                       $level = "AND { $ table_prefix }categories . cat_ID 3 ) 
                    }
    

    you really dont need an else, because everything else is already display, unless you have something else in mind.

    then down in the SQL query you will need to add the line {$level} around line 236
    under line AND post_date

  440. php global $ user_identity, $ user_level; get_currentuserinfo(); if ( $ user_identity) {
    if ($ user_level > = 8)

    doh that coding did not go thru..sorry..

    can i add a coding somewhere simialiar to check if the user level is this lower than 8.. show all cats except ID3 eg.
    AND { $ table_prefix }categories . cat_ID 3

    else show all cats

    thanks for your time

  441. Kim:

    “i want it to show call catgories.. bt if its lower that than i want certain post from catgories not to be displayed..”

    I really dont understand what you are saying here, but if you know what you want to display all you have to do is add lines of code to the SQL query, which will either display or not display what you want. The SQL query is between lines 369 and 378. If you can explain the above better you might be able to get better help.

  442. I have categories which are hidden to users of a certain level as well as no post access.. but with ur plugin it shows all posting no matter if its a locked out to user or not.

    This catgeories are not marked “private” and so if i use something like

    = 8) {

    i want it to show call catgories.. bt if its lower that than i want certain post from catgories not to be displayed..

    if that make sense.. its got nothign to do with private posting..

  443. Hi there,I was wondering if you can make this into a widget??? for i am using a widget theme and would like to see this in action.

    great work otherwise, but i cant use it til its a widget :/

  444. JH:

    I dont have the time right now to work on this. Maybe next week at best sometime next week. Click on my name to the left of this post. It will take you to my website and you can conact me from there. or email at (stoi2m1[at](yahoo(dot(com)));

  445. Hi, Jess I know this post isn’t appropriate here but I think it’s only you who could make the code for hiding the child category and an option in the admin panel for this plugin at http://dev.wp-plugins.org/file/front-page-cats/trunk/front_page_cats.php

    I’m sorry Admin, I asked it here. Thanks.

  446. Jesse:
    Thanks. You said,

    There are many other ways to add or remove categories. You could add some code to the plugin to list all of the cateogries on your options page and then by placing a check mark next to them, they will be displayed. However that is beyond the scope of this plugin, at this time, and would probably require you to add that feature on your own.

    May I know the code to add this feature in my admin panel? Thanks.

  447. Jesse: Nice work :)

  448. Gemme:

    You can limit which categories not to display if you know what the category id is.
    Use the following:
    -In the script, find this line (on or about line 233):
    AND post_status = ‘publish’
    -Right ABOVE it, add this line:
    AND {$table_prefix}categories.cat_ID 3
    (Where 3 is the category ID)
    The new line removes that category from the list, however you could change to = and it will only list that category. You can duplicate that line for all of the categories you wish to be displayed.

    There are many other ways to add or remove categories. You could add some code to the plugin to list all of the cateogries on your options page and then by placing a check mark next to them, they will be displayed. However that is beyond the scope of this plugin, at this time, and would probably require you to add that feature on your own.

    Kim:
    The option to hide password protected posts is already available, all you have to do is activate the plugin. Go to the options page of the admin panel click on a tab called DDLatestFromEach and place a check mark next to hide password protected posts.

    JH:
    You can hide child categories by:

    -In the script, find this line (on or about line 233):
    AND post_status = ‘publish’
    -Right ABOVE it, add this line:
    AND {$table_prefix}categories.category_parent = 0

    This tells the plugin to ignore sub categories or child categories.

    Also I do believe the elipse (…) has been added, but I there was an error in the code. On or about line 338, you will need to replace sizeof with strlen. About the word count vs. character count, thats a bit of code to be created. Im not sure we will see that feature.

  449. The child category shows up when parent category is included in the category to show. It would be better if Number of Words to show than Characters, and a [...] after that.

  450. Hi there. is there a way to hide a post UNLESS you have the right level to view it…??? i am looking for a post plugin that will do that.. and i am intersted in knowing/seeing if u can get that going…

  451. Excellent plugin. I’m already using it. One of the things that could be a great addition is the option to select which categories will be displayed.

  452. enrico: Any 2.x version should work fine. Is it just showing some of your posts? Or none at all? You might want to check the options to make sure it is set to show everything.

  453. 76
    enrico

    hi
    in wordpress 2.0.4 im finding some problems.. it does not display the post correctly.. it does not see them..

    do you know if 2.0.4 is critic for the plugin?

  454. ron: It is possible, but some of the code would have to be re-written, as it was not made for this. If you are interested in having a custom version made, contact me :)

  455. is tere a way to display more than one post from each category?

  456. enrico:

    Not to take away from Admin, but if you are looking for a plugin to display only one category and a number of recent posts from it. Then try my “N Posts from Category X” Plugin. You can find it at Storm’s Corner on the Plugins Page. Good Luck…

  457. 72
    enrico

    excellent. but i’d like to know how we could put an ADDON on “sort category”. i mean i’d like to assign the ID-number of category i want to display.

    if i set to limit to 1 category the listing, i want to decide wich category as well (by ID#, not by date or alphabetic).

    it will be great.

  458. Sean: I am not using any special CSS just for this plugin – it just uses my site’s standard CSS for lists.

  459. What did you use for your stylesheet code to get it to look like that? I look at your stylesheet and could not find anything distinctive. Thanks!

  460. realthor: There are several plugins out there that will simply give you a list of the posts in a category (if you manually give them the cat id). This plugin is more aimed towards automatically displaying the other posts from the category the current post is in.

  461. hi, i didn’t yet tried your plug-in but it seems useful for what i want to do namely get the latest post from all the subcategories in one category (example: category -> Work In Progress, subcategories -> illustrations, phots, 3Dimaginery, etc). Ususlly the latest post in each subcategory would present the latest update to that one so these would be the news to present on a Work In Progress page.

    Could you add this functionality in your plugin to be able to show the latest post from each subcategory of a certain category, eventually providing to the plug-in the ID of the respective category?

  462. Admin

    No Problem. I thought I might be stepping on your toes, but I really like this plugin and I thought I would help. I hope you get a chance to look at the alterations I made to the code. Im finding a problem with my modified “…” thingy it interupts tags and what not. But we can talk about that off the list.

  463. Jesse: Thanks for helping! It makes my daily task of going through comments on this site much easier when someone elses shares their input :)

  464. 65
    JamesICT

    Thanks again Jesse.

    Changed the code and that sorted that little issue. I have sent you an email so you can have a look at the other minor problem.

    I can see this becoming one of those ‘must have’ plugins for any new site :)

  465. JamesICT

    There should not be any delay in the displaying of a new post. Can you display a link of where this is happening. I would like to take a look at the post that are showing up vs. the new post that is not. You can email me off the list and I will work on this with you. My Email is below.

    And on the elipse the is a minor problem with the code. If you are not timid to modify the plugin you can, do a search for sizeof and replace it with strlen. Then your … should appear with no problem. If you are worried about messing something up email me direct at stoi2m1 at yahoo dot com.

  466. 63
    JamesICT

    Jesse

    Thanks for the advice. I did actually try that earlier too but it only outputs the last 5 alphabetically. So then I tried using the ‘by date descending’ which is almost what I need.

    I then tried a test post to see if that would display and it is not yet. The latest date is showing as yesterday. Is there a way of making it display the most current or is there some kind of time delay set?

    And one other minor thing [no, I am not usually this picky] but if you set the character limit to x amount, it is always going to happen that words are cut off midstream. Is it possible to add an elipses at the end so that instead of seeing

    The man wen

    it would become

    The man wen…

    Thanks again for your help :)

  467. JamesICT

    This feature was added to the plugin recently. If you dont have the most recent release you can download it from above. If you do have the latest release then go to the options page of your Wordpress Dashboard and click on the tab named DDLatestFromEach. Then down at the bottom there is a choice to set the number of recent posts to display change ot from a 0 to a 5.

  468. 61
    JamesICT

    This looks like an excellent plugin Admin. Thanks for sharing. The only trouble I have is that it seems to do everything but the one thing I am after, namely, adding ONLY the 5 latest posts IN TOTAL from ANY AND ALL categories – with a character limit.

    I don’t suppose there is any way I can get that result is there?

  469. karl: It would be possible, but that would be a completely different purpose than what this plugin was made for. :)

  470. Karl: If you email me directly I might be able to help you do this another way. One way would be to use a plugin I made to display the most recent post from one category only. I could modify my plugin to display all post if it is necissary.

    It would help to know what else you are trying to do on the same page. You can click on my name to visit my website and see if its something you are interested.

    My email is (stoi2m1) [at] {yahoo} /dot\ .

    Jesse

  471. 58
    karl

    can you modify this to show all posts within a particular catagory?

    So if I mark a post “foo” all my previous foo related posts would display?

  472. Jessee: I received it. It is just a lot of code to look through and sort out :) I will though.

  473. I sent you an email about my MODs. Im not sure if it was the right email. It was the one that sent me an email from this post.

    Let me know if you got or if I need to resend it.

    Thanks,
    Jesse

  474. Jesse: By ‘article’ I mean my actual post above. Do not worry about the introduction then – feel free to email me the information :) Thanks.

  475. 54
    Jesse

    Im not sure what article you are talking about here. And Im not sure how to write an introduction. Would you like me to put together what I have done and then email it to you. I can put together a text document with some info in the format of an outline or an index. Following that I can list the mods with some info on how each one is works and what they are doin, similar to the way I posted it. Let me know what you think. Now is the time for me to do this, its still fresh on the mind and Im traveling on buisness so Im not dealing with family life right now.

  476. Jesse: Nice work :) If you want to write a little introduction for it, I will add the info to the article.

  477. 52
    Jesse

    This is a correction to post 51. Mod 5 and Mod 6 ended up blending together.

    **MOD 5 filters out the sub-categories**
    -origional function
    $last_posts = (array)$wpdb->get_results(”
    SELECT post_date, ID, post_title, cat_name, cat_ID
    FROM {$table_prefix}posts, {$table_prefix}post2cat, {$table_prefix}categories
    WHERE {$table_prefix}posts.ID = {$table_prefix}post2cat.post_id
    AND {$table_prefix}categories.cat_ID = {$table_prefix}post2cat.category_id
    AND {$table_prefix}categories.cat_ID 2
    AND post_status = ‘publish’
    AND post_date 2
    -This causes the the search to look for categories that have a category perant of 0 meaning they have no perant
    $last_posts = (array)$wpdb->get_results(”
    SELECT post_date, ID, post_title, cat_name, cat_ID
    FROM {$table_prefix}posts, {$table_prefix}post2cat, {$table_prefix}categories
    WHERE {$table_prefix}posts.ID = {$table_prefix}post2cat.post_id
    AND {$table_prefix}categories.cat_ID = {$table_prefix}post2cat.category_id
    AND {$table_prefix}categories.cat_ID 2
    {$table_prefix}categories.category_parent = 0
    AND post_status = ‘publish’
    AND post_date get_var(“SELECT post_content FROM ” . $table_prefix . “posts WHERE ID=” . $posts->ID);
    $the_output .= ”;
    $the_output .= substr(strip_tags(trim($the_text)) , 0, $ddle_chars);
    if (sizeof(strip_tags(trim($the_text))) > $ddle_chars) {
    $the_output .= “…”;
    }
    -The new code
    if ($ddle_excerpts) {
    $the_text = $wpdb->get_var(“SELECT post_content FROM ” . $table_prefix . “posts WHERE ID=” . $posts->ID);
    $the_output .= ”;

    if ( strlen(strip_tags(trim($the_text))) > $ddle_chars) {
    $the_output .= substr(strip_tags(trim($the_text)) , 0, $ddle_chars);
    $the_output .= ” … ” . ‘ID) . ‘”>[More]‘;
    } else {
    $the_output .= $the_text;
    }

    $the_output .= ”;
    }

  478. 51
    Jesse

    Here are the mods that I have implemented into this plugin.

    Andy I think MOD 1 will answer your question.

    I have not made these mods accessible from the options menu. There is no need for me to be able to change these option. So look at the Origional Code and then my Current Code then determine whats going on to make your own changes.

    Heres a link to http://www.stormscorner.com/ewb the lower section of the homepage is being produced by the latest_post_from _category plugin.

    
    **MOD 1. This keeps a certain category from listing**
    
    -In the script, find this line:
      AND post_status = 'publish' 
    -Right above it, add this line:
      AND {$table_prefix}categories.cat_ID  3
      (Where 3 is the category ID) 
    
    **MOD 2. adds a sapce between posts**
    -Origional code
      $the_output .= substr(strip_tags(trim($the_text)) , 0, $ddle_chars);
      $the_output .= '';
    -New code
      $the_output .= substr(strip_tags(trim($the_text)) , 0, $ddle_chars);
      $the_output .= '';
    -Added the second  to this line of code
    
    **MOD 3. fixes the situation of having only one comment, origional code does not adress if there is only one comment**
    -This mod also rearranges the Comment output code to match my theme.
    -Origional code  
      if ($ddle_comment_num) {
        $the_output .= $num_comments . ' Comment';
    
        if ($num_comments != 1) {
          $the_output .= 's';
        }
    
        } else {
          $the_output .= 'Comments';
      }
    
    -It now looks like this
      if ($ddle_comment_num) {
        $the_output .=  '   [Comment';
    
        if ($num_comments != 1) {
          $the_output .= 's ('.$num_comments.')]';
        } else {
          $the_output .= '('.$num_comments.')]';
    
      } else {
        $the_output .= 's ('.$num_comments.')]';
      }
    
    **MOD 4. changes the output format**
    -Origional Code
    $the_output .= '</b>: <a>ID) . '"&gt;' . $posts-&gt;post_title . '</a>';
    if ($ddle_show_date) {
    			$the_output .= ' - ' . date($ddle_date_format, strtotime($posts-&gt;post_date));
    		}
    -I made it look like this, 
    $the_output .= '</b>: <a>ID) . '"&gt;' . $posts-&gt;post_title . '</a>';
    if ($ddle_show_date) {
    			$the_output .= date($ddle_date_format, strtotime($posts-&gt;post_date));
    		}
    -Adding the  to the end of the first line allowed me to setup the format to match the rest of the page
    -removing the ' - ' . removed the - from the beggining of the date and comment line
    
    **MOD 5 filters out the sub-categories**
    -origional function        
    		$last_posts = (array)$wpdb-&gt;get_results("
    		SELECT post_date, ID, post_title, cat_name, cat_ID
    		FROM {$table_prefix}posts, {$table_prefix}post2cat, {$table_prefix}categories 
    		WHERE {$table_prefix}posts.ID = {$table_prefix}post2cat.post_id 
    		AND {$table_prefix}categories.cat_ID = {$table_prefix}post2cat.category_id
    		AND {$table_prefix}categories.cat_ID  2
    		AND post_status = 'publish' 
    		AND post_date  2
    -This causes the the search to look for categories that have a category perant of 0 meaning they have no perant
    		$last_posts = (array)$wpdb-&gt;get_results("
    		SELECT post_date, ID, post_title, cat_name, cat_ID
    		FROM {$table_prefix}posts, {$table_prefix}post2cat, {$table_prefix}categories 
    		WHERE {$table_prefix}posts.ID = {$table_prefix}post2cat.post_id 
    		AND {$table_prefix}categories.cat_ID = {$table_prefix}post2cat.category_id
    		AND {$table_prefix}categories.cat_ID  2
    		{$table_prefix}categories.category_parent = 0
    		AND post_status = 'publish' 
    		AND post_date get_var("SELECT post_content FROM " . $table_prefix . "posts WHERE ID=" . $posts-&gt;ID);
    	$the_output .= '';
    	$the_output .= substr(strip_tags(trim($the_text)) , 0, $ddle_chars);
    	if (sizeof(strip_tags(trim($the_text))) &gt; $ddle_chars) {
    	$the_output .= "...";
    }
    -The new code
    if ($ddle_excerpts) {
    	$the_text = $wpdb-&gt;get_var("SELECT post_content FROM " . $table_prefix . "posts WHERE ID=" . $posts-&gt;ID);
    	$the_output .= '';
    				
    	if ( strlen(strip_tags(trim($the_text))) &gt; $ddle_chars) {
    		$the_output .= substr(strip_tags(trim($the_text)) , 0, $ddle_chars);
    		$the_output .= " ... " . '<a>ID) . '"&gt;[More]</a>';
    	} else {
    		$the_output .= $the_text;
    	}
    
    	$the_output .= '';
    }
    

  479. Alternatively, is it possible to exclude a category?

  480. Hehehe!

    You sent me some code so I could have the latest post, no matter the category, showing on a page. Shall I forward it to you in email?

    Thanks

  481. Jesse: Feel free :) I will update this script again eventually, but things have been crazy lately!

    Alborz: Try this:

    <?php echo dd_last_from_each(); ?>

    Andy: I do not even remember what I send you :)

  482. Hi again Admin!

    It’s been a while, but I have been very busy with the new baby! hehe

    I now get this error when trying to use the code you sent me:

    WordPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
    SELECT post_content FROM abblogwp_posts WHERE ID=

    Any ideas?

    Thanks

    Andy

  483. Hey mate,
    I have been able to modify the code well enough so that it displays from only one category (the way I want it) but I can’t get it to work in my sidebar, do you know how I can call the function from there?

    Thanks.

  484. 45
    Jesse

    Do you mind if I post the modifications I have done to your plug in, and a link to my website which will demonstrate what it looks like?

    Also I also plan on adding a plugins used section to one of my columns which will have links to the sites so others can find them.

  485. Jesse: Ah yes.. I have a habit of using that function for that *grin* That is what I get for not testing it ;)

  486. 43
    Jesse

    I was taking a look at your code today, after I noticed I was not getting the … to output when my text was longer then desired excerpt length. I found that you are using the sizeof() funtion for $the_text it looks like this sizeof(strip_tags(trim($the_text)). I did some research and found that sizeof() is meant for an array I replaced that with strlen() and everything seems to be fine now.

  487. 42
    Jesse

    I was so tired last night I copied and pasted a piece of code (in message 43) it is from a different plugin SORRY! Note to self: When your tired take your time when writing messages.

    Heres the if statement that I fixed:

    
    if ($ddle_comment_num) {
      $the_output .= $num_comments . ' Comment';
        if ($num_comments != 1) {
          $the_output .= 's';
        }
    } else {
     $the_output .= 'Comments';
    }
    

    The else only addresses if $num_comments is zero, the nested if address if not 1 but does not address if it is one. So I moved the else to be part of the nested if. Now when $num_comments is zero, nothing is displayed and if $num_comments is 1, 1 comment is displayed. And if its not 1, 2 comments is displayed.

    I hope this addresses the confusion I made below again I appologize I was quite tired from stareing at the code too much. Please remove Post 42 and 43 it wont help anyone.

  488. Jesse: Last one for tonight :P

    In the script, find this line:

    AND post_status = 'publish'

    Right above it, add this line:

    AND {$table_prefix}categories.cat_ID <> 3

    Where 3 is the category ID of the cat you want to hide. If you wanted to hide multiple categories, just duplicate that line for each one, and set the number. If you are not sure what the ID of your category is, it is listed under ‘Manage > Categories’ in the WP admin panel.

  489. 40
    Jesse

    I know this is a bit more away from the scope, but I have a News category which is displayed on my homepage, with this plug-in right below it. This plugin displays the news category again. In this case I have a redundency of the news. Would it be possible for me to make another request.

    Can you make it possible for a given category or categories to not display?

    Thanks Again,
    Jesse

  490. Jesse: A lot of them do, but not all people take advantage of the feature when writing plugins :)

  491. 38
    Jesse

    Nice work, that options area is a nice touch. Do most plug-ins have a feature like that. I really like it.

  492. Jesse: Check out the new version ;) Read the changelog, and take a look at the new options (most are disabled by default – so be sure to enable them). Enjoy!

  493. 36
    Jesse

    I was thinking the same thing about the Top X Number of posts, but Im looking into the future of my site. And I use catagories to track Projects. Once projects are complete there will be almost no update to these catagories. And the number of catagories I am going to use is going to be outrages.

  494. Jesse:

    1) Good idea
    2) Even better idea
    3) Maybe, but the point is to show the latest from each category

    Give me a few mins ;)

  495. 34
    Jesse

    1. So would the option for displaying a link to the comments each post be an option?

    2. Removing the “…” after the contents if the contents are less then the allowed characters?

    3. Only display the top X number of posts?

    I think I will limit my requests to that for now. I am willing to help but I dont know how much help I would be.
    Thanks,
    Jesse

  496. Jesse: Your question makes a lot more sense now :)

    I think I see the problem. Those options you are changing in the file are only the default options for the first time the script runs. After that, they are no longer used.

    To change the options of this plugin, Go to ‘Options -> DDLatestFromEach’ in your admin panel :)

  497. 32
    Jesse

    Sorry about the mess you needed to clean up.

    Im trying to get the content to diplay for resent post of all categories.

    I have the options set at:

    add_option(‘ddle_excerpts’, TRUE);
    add_option(‘ddle_chars’, 200);

    but no content is displayed.

  498. Andy: The PHP in Pages plugin sometimes works well for certain things, but not for everything. I would not try using that code directly in a post/page. It needs to be added into your template file directly – wherever you want it to show up.

  499. Hi Admin,

    I’ve tried that code but I just get the following in my page:

    get_var(”SELECT post_content FROM ” . $table_prefix . “posts WHERE ID=” . $the_ID); echo substr(strip_tags(trim($the_text)) , 0, $num_chars) . “…”; endwhile; ?>

    I’ve got the PHP in Pages plugin installed, but still no joy…

    Just to clarify, I don’t want this within the sidebar or anything, just at the bottom of one of my wordpress pages, not posts.

    Thanks again!

  500. dave: The best way would be to modify the SQL statement in the code so that it skips categories you do not want, or vice-versa.

    Andy: Check your email :)

  501. Hi, this plug in is awesome, but like Angelo, I would really just like to show the latest post, regardless of category, within a Wordpress page…

    Any help?

    Thanks

  502. This is *almost* exactly the plugin I needed. Thanks for putting it together. I have a blog with about 40 categories and posts get dropped into multiple categories. I’d like to specify which categories the recent post titles are pulled from and then how many posts are displayed. Ideally I want to display the 3 most recent posts from 4 parent-level categories.

  503. I also included within the code you send me, so that a part of the post is shown as well! Thanx very much again, I really appreciate your efforts on this!!

  504. Thanx very much! It works fine now!

  505. Angelo: It goes in your sidebar file – the plugin will no longer be needed.

    The code I put in here kept getting messed up. I will email it to you :)

  506. Ok! Do I have to add or replace this code in the plugin file or in my rightbar.php file?

    If I add it in de rightbar.php file I receive a parse error:

    Parse error: parse error, unexpected '=' in /home/klifixnl/frontpage.klifix.nl/HTML/wp-content/themes/Dark Site/rightbar.php on line 10
    

  507. Angelo: So you want to only display 1 post total? From a specified category? You could try this:

    (code removed – see post above)

  508. I understand. But is it realizable to just show 1 (the last one) post from 1 category?

  509. Klifix: I do not think I understand your question. This plugin displays the last post from each category. If you want it to show a preview of the post, use the ‘Show first X characters of posts’ option.

  510. Dear Alister,

    I’ve uploaded your plugin as in advice of some developers on wordpress support forum.
    What I want to do is this:

    On my website http://www.klifix.nl/ There is a right sidebar. In that sidebar there are x amount of boxes. Int he top box I’d like to appear the last post from a certain catagory (‘reviews’), with a number of caracters set to 200. I can’t seem to find to set the amount of post shown from a certain catagory to 1. Can you help me with this?

  511. Thanks a lot,

    my blog is still under construction (the beginning..) but i wont forget to tell your name.

  512. Bab: No problem. Change this:

    $the_output .= '</b>: <a href="' . get_permalink($posts- rel="nofollow">ID) . '">' . $posts->post_title . '</a>';
    
    if ($ddle_show_date) {
    	$the_output .= ' - ' . date($ddle_date_format, strtotime($posts->post_date)); 
    }

    To this:

    $the_output .= '</b>: ';
    
    if ($ddle_show_date) {
    	$the_output .= date($ddle_date_format, strtotime($posts->post_date)) . ' - '; 
    }
    
    $the_output .= '<a href="' . get_permalink($posts- rel="nofollow">ID) . '">' . $posts->post_title . '</a>';

  513. Hi,
    First, nice work ! It will be helpfull !

    But I wanted to know if it was possible to invert te date and the post title.
    That is to say : instead of having : Post title: – 07.12.06
    I would like to have 07.12.06 Post title

    Is it possible ?

    Thanks !

  514. Mike: It was not intended to show the full posts – only a list. You can use the ’show x characters from post’ option to show as much as you want though. The formatting might be weird though.

  515. 14
    Mike

    Can this plug-in be used to display the actual last full-post from each category instead of just a list?

    That would be very nice :) !

  516. [...] Dagon Design » Articles » Latest Post from each Category plugin for WordPress Een andere manier om door je archief te grasduinen. (tags: wordpress plugin) [...]

  517. Nathan: Glad you like them.

    To just show some of the latest posts in general, you do not need this plugin. I will email you some code :)

  518. Thanks again for an amazing plugin – this one & your secure contact form have helped me out a bunch of times already!

    Any plans to provide the option to show the latest posts all together as opposed to the latest posts by category?

  519. [...] Wow—that’s some response! You can download the said plug-in here, which is described thus: This plugin displays a list of the latest post from each category of your WordPress installation. It can be added to a post or page, or used directly in a template file. In the plugin’s options page you can choose the sort order, show or hide the dates, select the date formatting, show the first X characters of the content, as well as other options. [...]

  520. John: If there was what between them? Currently there is a line break between them. (If you tried to type some code, be sure to wrap code tags around it so I can see).

  521. 8
    John

    One minor “fix” would make it even better. When the “Show first X characters of posts” option is turned on. It would be nice if there was between the topic and the excerpt :)

  522. Bruce: No problem :) Thanks for the blog post. I noticed your feature request and implemented it.

    Version 1.2 has been released – adding an option to turn cat names into links :)

  523. Admin, I’m very grateful for your knocking this together so quickly, I never expected to have a working version on the same day I asked if you fancied a challenge! That has to be a record. It’s now live an kicking on my blog.

  524. Thank you very much!

    Awesome :) Just noticed the update. Thanks!

  525. Version 1.1 has been released! (Yes, already *grin*)

    It adds a few new options – take a look at the changelog for more info.

  526. John: I will see about adding in some options for those things :)

    About the options – I just tested mine again, and I can set them with no problems. You are changing it in the options page, and not in the plugin file itself right? The plugin file only contains the default values, which are used when it is first installed.

  527. [...] Dagon Design [...]

  528. Hi,
    Thanks for a great plugin!

    A few comments / questions. Would it be possible to order the posts by date posted? Also it would be nice to be able to show a longer excerpts from the posts. That would make for a great intro / homepage in some cases.

    Ps. I tried to change the settings but didn’t notice any difference. I’d like to change the topic (changed from the settings and somehow it didn’t update) and the date to show only numbers (for example 31.5.2006).

    Thanks!

Leave a Comment

Before you comment: If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.


Be sure to wrap all code in <code></code> tags.