Title: sgmunson's Replies | WordPress.org

---

# sgmunson

  [  ](https://wordpress.org/support/users/sgmunson/)

 *   [Profile](https://wordpress.org/support/users/sgmunson/)
 *   [Topics Started](https://wordpress.org/support/users/sgmunson/topics/)
 *   [Replies Created](https://wordpress.org/support/users/sgmunson/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/sgmunson/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/sgmunson/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/sgmunson/engagements/)
 *   [Favorites](https://wordpress.org/support/users/sgmunson/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How do I export content to a Dreamweaver site?](https://wordpress.org/support/topic/how-do-i-export-content-to-a-dreamweaver-site/)
 *  [sgmunson](https://wordpress.org/support/users/sgmunson/)
 * (@sgmunson)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/how-do-i-export-content-to-a-dreamweaver-site/#post-695763)
 * You haven’t specified the complete environment, but if the WP blog is using mySQL
   to database the individual post entries, then one way to bring a window of recent
   blog posts would be to write your own mySQL query that would return X number 
   of recent posts. Look at wp-db.php and find the query function. That will help
   a little, but the key to X number of recent posts is the LIMIT clause. You could
   then have complete control over what appeared in that window, along with a set
   of data that could be presented however you see fit. If that’s not what you’re
   looking for, you’ll need to be more specific.
 * Steve
    _________________________________________ My new blog: [http://debtfreenewsblog.com](http://debtfreenewsblog.com)
   My forum: [http://iraqidinar.debtfreenewsblog.com](http://iraqidinar.debtfreenewsblog.com)
   _________________________________________
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [My site shows ALL posts instead of what WP says to show](https://wordpress.org/support/topic/my-site-shows-all-posts-instead-of-what-wp-says-to-show/)
 *  Thread Starter [sgmunson](https://wordpress.org/support/users/sgmunson/)
 * (@sgmunson)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/my-site-shows-all-posts-instead-of-what-wp-says-to-show/#post-695222)
 * I already have mods to the website that might not survive an upgrade. Until I
   have complete control of the website, I’m not going to mess with any upgrades.
 * Since I use DreamWeaver CS3, I can copy all the site files to my local machine
   anytime with just a few clicks, and it doesn’t take very long. I do this on a
   regular basis to ensure that even if I get upgraded outside of my control, I 
   still have all the mods in the local files, and can work from those if need be
   to modify an upgraded installation.
 * Steve
    (aka sgmunson)
 * [sig moderated]
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Blog Taking Way Too Long to Load](https://wordpress.org/support/topic/blog-taking-way-too-long-to-load/)
 *  [sgmunson](https://wordpress.org/support/users/sgmunson/)
 * (@sgmunson)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/blog-taking-way-too-long-to-load/#post-695094)
 * I tried it just now and it loaded nearly instantaneously. Perhaps it’s a local
   ISP performance issue, or something on your machine? A re-boot might help. By
   the way, spectacular Chopin performance. It was wonderful to listen to.
 * Steve
    (aka sgmunson) ————————– my blog site: [http://debtfreenewsblog.com](http://debtfreenewsblog.com)
   my forum: [http://iraqidinar.debtfreenewsblog.com](http://iraqidinar.debtfreenewsblog.com)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [My site shows ALL posts instead of what WP says to show](https://wordpress.org/support/topic/my-site-shows-all-posts-instead-of-what-wp-says-to-show/)
 *  Thread Starter [sgmunson](https://wordpress.org/support/users/sgmunson/)
 * (@sgmunson)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/my-site-shows-all-posts-instead-of-what-wp-says-to-show/#post-695089)
 * SimonJ,
 * You caught the site in the midst of some testing on my part, where I had a syntax
   boo-boo. Try the site now and you’ll see a huge difference in load time. I’m 
   using the adsminded theme, and have customized it sufficiently that I didn’t 
   dare switch themes because this site has already done a few odd things and I 
   didn’t particularly want to lose the effort I’d already invested until I knew
   for sure how to restore things completely back the way they were. The site has
   had the “see all posts” problem from day 1, but because I didn’t have time to
   do any customization until now, I hadn’t even seen the site for 6 months, so 
   I didn’t realize it was this way. It was having this problem totally uncustomized,
   so I know it was a day 1 problem.
 * Anyway, I finally found the code in wp-db.php where the query function resides.
   I added code to modify the $query variable to add “LIMIT xxx” to the end ONLY
   if there wasn’t already a LIMIT clause and ONLY if the FROM clause refers to 
   wp_posts as the first table in the query. The xxx can be any number, and for 
   now I’m choosing 100. Compared to before, my site is now lightning fast.
 * Just fyi, I haven’t added any plugins that weren’t included with the site from
   day 1. Also, I realize that the potential for future grief is there, so I may
   eventually have to rethink this fix, but for now, it’s working beautifully.
 * Steve
    (aka sgmunson)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Help, individual/single page showing multiple posts.](https://wordpress.org/support/topic/help-individual-page-shows-multiple-post/)
 *  [sgmunson](https://wordpress.org/support/users/sgmunson/)
 * (@sgmunson)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/help-individual-page-shows-multiple-post/#post-692758)
 * I’m not sure if this is related or not, but my site:
 * [http://debtfreenewsblog.com](http://debtfreenewsblog.com)
 * is showing a huge number of posts instead of the 10 blog entries and 10 syndication
   posts, which is supposed to be the configuration on how that works. This is causing
   the site to take anywhere from 30 to 45 seconds to load, and it’s a serious problem.
   If anyone knows exactly where in the code I can make a modification without messing
   up everything else, let me know. I can probably figure out what the query should
   look like, but how do we get the query for recent posts to be unique from any
   other query that uses $this->posts ? I’m willing to call anywhere in the USA 
   for the answer (I have unlimited long distance).
 * Steve
    (aka sgmunson)

Viewing 5 replies - 1 through 5 (of 5 total)