WordPress Related Plugin – only show when related content

I don’t know for sure if this would work but this is where I’d start: <?php $related_content = $related->show(get_the_ID()); ?> <?php if($related_content): ?> <div class=”related”><strong>Related products</strong><br /> <?php echo $related_content; ?> </div> <?php endif; ?>

Measure and limit file uploads

I would use a multi site installation for this. Give each user their own blog. Multi Site has built in disk quota functionality, and you can see how much of it is used and such in the admin area of each site. You can set the quota in the network admin: settings > network settings. … Read more

Use wp_upload_dir() correctly

It seems that you’re either calling wp_upload_dir too early, when it has not yet been included in the scope (which is nearly impossible), or calling it without WordPress being even loaded (highly probable). If you’re using some sort of iframe to provide uploadify.php directly then WordPress will not be available for it. Include wp-load.php to … Read more

Making that Admin Bar transparent or a blue color

There’s a good plugin to make the admin bar blue in both the admin and front-end: http://wordpress.org/extend/plugins/blue-admin-bar/ If those colors don’t suit, play around with the plugin to figure out how to do your own. The key thing to notice about the plugin version is that by using a hook to enqueue the stylesheets, it’s … Read more

WordPress Book Exchange Plugin Equivalent?

Custom Post Types (there are several plugins in the repo for that) Custom Meta Boxes/Fields – a good library is the »RW Meta Box« set of classes Extend the search – there are several answers that show you how to do this in the [tag:search] archive. Role Management: IMHO »Members« does the job best + … Read more

How to handle forms from sidebar widgets – Processing $_POST variables using get_field_name()

WP doesn’t provide any helper methods for creating and processing forms in the front-end. To process your front-end form simply check for $_POST-ed data. I suggest you do this from within an action, and only if the widget is active. In your constructor – the someWidget() method (which you should rename to __construct, and call … Read more