WordPress plugins, themes, tips and hacks

Archive for the ‘Shorties’ Category

Challenge: how to display only authors who have written in a specific category?

Thursday, March 27th, 2008

Hi all - I was wondering if one of you can help us find a solution to a feature we would like to add to a WordPress site:

The site in question has multiple contributors. Most are dedicated to certain categories. We would like to automatically display on a category page only the authors who have written articles in that particular category.

For example, let’s say we have a category called “Cucumbers” and a category called “Tomatoes.” When someone clicks on the Cucumbers category we would like only the authors who have written posts categorized as Cucumber posts to appear, and on the Tomatoes category page, we would like only the authors who have written Tomato category posts to appear. There may be some overlap between the pages, since some authors may write posts for both the Cucumber and the Tomato categories.

One solution we thought of is to call the category we want and the number of posts from that category and then display the list of authors. The problem is it shows duplicate authors. Here’s the code:

<?php query_posts('showposts=20&cat=3'); ?>
<?php while (have_posts()) : the_post(); ?>

<?php the_author_posts_link (); ?>

<div style="clear:both"></div>
<?php endwhile;?>

Is there a way to prevent duplicate authors from appearing? Or is there a better way?

Thanks in advance for your help.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Ryan at WordPress mentions Farsi and Hebrew developers for their work on WP admin

Monday, March 24th, 2008

Ryan on the WordPress development blog (which is running on Prologue, very nicely I might add) has basically congratulated the “Farsi and Hebrew translation folks” for their hard work making the WordPress admin look good in right-to-left languages.

I’d like to take this opportunity to say that the Hebrew version of WordPress exists mostly, of not completely,  thanks to Ran Hartstein. Ran always makes sure the Hebrew speaking audience gets their Hebrew version of WordPress as quickly as possible. Of course, the extended Israeli WordPress community adds a lot of value to the usage of WordPress, with many right-to-left themes, plugins, and the vibrant and helpful wpheb google group.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Security problem with Search Unleashed plugin

Friday, February 15th, 2008

Security Focus has reported a security problem with the Search Unleashed plugin. The plugin stores search queries, but does not validate stored data and sends it back “raw” to the browser.

Read more at SecurityFocus

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Make your WordPress theme iPhone friendly with iWPhone WordPress plugin and theme

Tuesday, February 12th, 2008

I recently wrote about a plugin that made the WordPress admin more accessible from an iPhone. Now there’s the iWPhone plugin/theme package that “automatically reformats your blog’s content for optimized viewing on Apple’s iPhone and iPod touch. It detects the iPhone/iPod touch’s User Agent and serves up the content with the special theme only to iPhone and iPod touch visitors, all other browsers will view your WordPress blog with your current theme.”

iWPhone WordPress Plugin and Theme

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Guide to converting your XHTML CSS layout to a WordPress theme

Sunday, February 10th, 2008

Updated Feb. 14, 2008

Deziner Folio has a really useful step-by-step guide to taking your XHTML/CSS layout and converting it to a WordPress theme. They say this whole process can be completed in 30-40 minutes!

Developing a Wordpress Theme

Another option is DevBox’s Wireframe WordPress theme, which is available for download on their site. This is basically a barebones theme that you can use to easily take a XHTML/CSS layout and convert it into a WordPress theme.

Test Theme Wireframe WordPress Theme

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
Premium News Themes