As the work continues here at Bloggers Market, I thought I would take the opportunity to polish the code and clean-up the template a bit. I ran into a nasty Feedburner coding issue that had me rebuilding a widget for the E-Mail updates to the site ( You can see it on the Homepage here at Bloggers Market; It’s the one with the “Subscribe” button on it). Now I just have to figure out how to integrate it into the template …… later!
As I near the end of the build I thought I would take the time to limit the number of posts that are visible in each of my categories. Now most everyone has a setting for the homepage that can be found in their template settings, but I was after the settings for the rest of the categories. Sooo ….. off I went in search for a plug-in or whatever. I have a killer category plug-in called the “Advanced Category Excluder” or ACE for short. However this plug-in just lets you turn categories off and on, it won’t let you set the number of posts displayed. Sooo ……… off I went in search of a hard-code.
I arrived at the Codex, only to find posts and posts of ongoing lines and lines of code to be inserted into the “category.php” file. I thought to myself that surly there has to be a numerical setting in the “category.php” file. I don’t think I have to re-build the entire file. However, I may have to originate a new file like “category id=4.php” file to cross reference or to be called from “category.php” and limit the number of posts that way.
I spent about an hour looking at this code in “category.php” just to come away with a feeling that there has to be a better way. All I need is a short line of code to limit the number of posts. Off to Mother Google again to search through all the really old code fixes just to come away with the same impression. There’s got to be a better way.
90 minutes into my coding efforts, I ran up on this truly simple mind that erroneously fantasized about how he thought the setting was in the “Settings > Reading > Blog posts show at most” area of the “Dashboard” ……. Iggeit !
I had looked all over the template settings and the “Posts > Categories > Add New Category” area of the Dashboard and I didn’t see anything that would help …… I didn’t think it would be in “Settings”, but I had nothing to lose ….. except my pride! You got it ….. there it was clear as day …… set from 10 to 3 and I’m good to go!
Hey, anytime you need me to tangle your WordPress Blog installation or trash your template, give old Yoda here a call. And remember I’m just an E-Mail Away!