lgoodbar
Forum Replies Created
-
Forum: Plugins
In reply to: activate plugin function WP 2.0 (development)Thanks very much, that was exactly what I was looking for!
LoydForum: Plugins
In reply to: WordPress Random Quote HackPS. You can see what I mean at my website blackrobes.net, now in its fourth iteration and undergoing massive construction. Using WP 1.2 and Kubrick.
Forum: Plugins
In reply to: WordPress Random Quote HackThis sounds a lot like some quote hacks I wrote back in the b2 days. I even had a quote manager for the admin interface. I found an easier way all within WP.
I created a “Random Quotes” link category with a sort order ‘rand’ and limit 1. Where I wanted the quote is under the blog name (where the description would go). I yanked out the description and put in the following code:
<div class="description"><?php /* bloginfo('description'); */ $links = get_linkobjects(2, 'rand', 1); if ($links) { foreach ($links as $link) { echo $link->link_name; } } ?></div>This was taken pretty much from the wp-links.php for the get_linkobjects() function. At the time, I was going to put the quote in the link_notes field, but decided to put it in the link_name instead, without a URL.
As an aside, now that I think about it, all the get_link* functions should use the defaults from the link info stored in the database instead of hard coded defaults in the function. I may work on that sometime…….Forum: Fixing WordPress
In reply to: Post count in archives, config’d where?OK, Thanks!