Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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: https://debtfreenewsblog.com
    My forum: https://iraqidinar.debtfreenewsblog.com
    _________________________________________

    Thread Starter sgmunson

    (@sgmunson)

    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]

    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: https://debtfreenewsblog.com
    my forum: https://iraqidinar.debtfreenewsblog.com

    Thread Starter sgmunson

    (@sgmunson)

    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)

    I’m not sure if this is related or not, but my site:

    https://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)